Add Python 3.13 support (#83416)

* Add Python 3.13 support

* Add temporary work-around for yamllint test
pull/83366/head
Matt Clay 3 weeks ago committed by GitHub
parent 126ffc7947
commit cf265eb14d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -59,6 +59,7 @@ stages:
- test: '3.10'
- test: 3.11
- test: 3.12
- test: 3.13
- stage: Windows
dependsOn: []
jobs:
@ -160,6 +161,7 @@ stages:
- test: '3.10'
- test: 3.11
- test: 3.12
- test: 3.13
- stage: Generic
dependsOn: []
jobs:
@ -171,6 +173,7 @@ stages:
- test: '3.10'
- test: 3.11
- test: 3.12
- test: 3.13
- stage: Incidental_Windows
displayName: Incidental Windows
dependsOn: []

@ -0,0 +1,3 @@
minor_changes:
- ansible-test - Add support for Python 3.13.
- Add ``python3.13`` to the default ``INTERPRETER_PYTHON_FALLBACK`` list.

@ -1570,6 +1570,7 @@ _INTERPRETER_PYTHON_DISTRO_MAP:
INTERPRETER_PYTHON_FALLBACK:
name: Ordered list of Python interpreters to check for in discovery
default:
- python3.13
- python3.12
- python3.11
- python3.10

@ -1,6 +1,6 @@
base image=quay.io/ansible/base-test-container:7.0.0 python=3.12,3.8,3.9,3.10,3.11
default image=quay.io/ansible/default-test-container:10.0.0 python=3.12,3.8,3.9,3.10,3.11 context=collection
default image=quay.io/ansible/ansible-core-test-container:10.0.0 python=3.12,3.8,3.9,3.10,3.11 context=ansible-core
base image=quay.io/ansible/base-test-container:7.1.0 python=3.12,3.8,3.9,3.10,3.11,3.13
default image=quay.io/ansible/default-test-container:10.1.0 python=3.12,3.8,3.9,3.10,3.11,3.13 context=collection
default image=quay.io/ansible/ansible-core-test-container:10.1.0 python=3.12,3.8,3.9,3.10,3.11,3.13 context=ansible-core
alpine319 image=quay.io/ansible/alpine319-test-container:7.1.0 python=3.11 cgroup=none audit=none
fedora39 image=quay.io/ansible/fedora39-test-container:7.1.0 python=3.12
ubuntu2004 image=quay.io/ansible/ubuntu2004-test-container:7.1.0 python=3.8

@ -1 +1,2 @@
PyYAML == 6.0.2rc1 # temporary hack to support Python 3.13
yamllint

@ -1,4 +1,4 @@
# edit "sanity.yamllint.in" and generate with: hacking/update-sanity-requirements.py --test yamllint
pathspec==0.12.1
PyYAML==6.0.1
PyYAML==6.0.2rc1
yamllint==1.35.1

@ -13,4 +13,5 @@ CONTROLLER_PYTHON_VERSIONS = (
'3.10',
'3.11',
'3.12',
'3.13',
)

@ -43,7 +43,7 @@ def main():
constraints = raw_constraints.strip()
comment = requirement.group('comment')
is_pinned = re.search('^ *== *[0-9.]+(\\.post[0-9]+)?$', constraints)
is_pinned = re.search('^ *== *[0-9.]+(rc[0-9]+)?(\\.post[0-9]+)?$', constraints)
if is_sanity:
sanity = frozen_sanity.setdefault(name, [])

Loading…
Cancel
Save