Skip to content

Commit

Permalink
Support for and test of Python 3.13.0-rc.1
Browse files Browse the repository at this point in the history
Details:

* Added Python 3.13 to Trove classifiers in pyproject.toml.

* Added python version 3.13.0-rc.1 to the GitHub actions test workflow, for
  full and normal tests.

* Increased minimum versions of the following packages:
  - Babel to 2.11.0 (fix for error during Sphinx run on Python 3.13)
  - pyrsistent to 0.20.0 (for official support of Python 3.12)
  - wheel to 0.41.3 (fix for install error of wrapt for Python 3.13 on Windows)
  - wrapt to 1.15 (for platform independent wheel archive to avoid build for
    Python 3.13)
  - PyYAML to 6.0.2 (fix install error for Python 3.13 on Windows. That
    version provides wheel archives for Python 3.13 on Windows)

Signed-off-by: Andreas Maier <[email protected]>
  • Loading branch information
andy-maier committed Sep 29, 2024
1 parent 93de1c9 commit 379da5c
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 11 deletions.
32 changes: 31 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
if [[ "${{ github.event_name }}" == "schedule" || "${{ github.head_ref }}" =~ ^release_ ]]; then \
echo "matrix={ \
\"os\": [ \"ubuntu-latest\", \"macos-latest\", \"windows-latest\" ], \
\"python-version\": [ \"3.8\", \"3.9\", \"3.10\", \"3.11\", \"3.12\" ], \
\"python-version\": [ \"3.8\", \"3.9\", \"3.10\", \"3.11\", \"3.12\", \"3.13.0-rc.1\" ], \
\"package_level\": [ \"minimum\", \"latest\" ] \
}" >> $GITHUB_OUTPUT; \
else \
Expand All @@ -54,15 +54,45 @@ jobs:
\"python-version\": \"3.9\", \
\"package_level\": \"latest\" \
}, \
{ \
\"os\": \"ubuntu-latest\", \
\"python-version\": \"3.13.0-rc.1\", \
\"package_level\": \"minimum\" \
}, \
{ \
\"os\": \"ubuntu-latest\", \
\"python-version\": \"3.13.0-rc.1\", \
\"package_level\": \"latest\" \
}, \
{ \
\"os\": \"macos-latest\", \
\"python-version\": \"3.9\", \
\"package_level\": \"minimum\" \
}, \
{ \
\"os\": \"macos-latest\", \
\"python-version\": \"3.13.0-rc.1\", \
\"package_level\": \"minimum\" \
}, \
{ \
\"os\": \"macos-latest\", \
\"python-version\": \"3.13.0-rc.1\", \
\"package_level\": \"latest\" \
}, \
{ \
\"os\": \"windows-latest\", \
\"python-version\": \"3.8\", \
\"package_level\": \"latest\" \
}, \
{ \
\"os\": \"windows-latest\", \
\"python-version\": \"3.13.0-rc.1\", \
\"package_level\": \"minimum\" \
}, \
{ \
\"os\": \"windows-latest\", \
\"python-version\": \"3.13.0-rc.1\", \
\"package_level\": \"latest\" \
} \
] \
}" >> $GITHUB_OUTPUT; \
Expand Down
2 changes: 2 additions & 0 deletions changes/62.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Support for and test of Python 3.13.0-rc.1. Needed to increase the minimum
versions of PyYAML to 6.0.2.
4 changes: 2 additions & 2 deletions minimum-constraints-develop.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ sphinxcontrib-serializinghtml==1.1.5; python_version == '3.8'
sphinxcontrib-serializinghtml==1.1.9; python_version >= '3.9'
sphinxcontrib-websupport==1.2.4
autodocsumm==0.2.12
Babel==2.9.1
Babel==2.11.0

# PyLint (no imports, invoked via pylint script):
pylint==3.0.1
astroid==3.0.1
lazy-object-proxy==1.4.3
wrapt==1.14
wrapt==1.15
platformdirs==4.1.0
isort==4.3.8
tomlkit==0.10.1
Expand Down
6 changes: 3 additions & 3 deletions minimum-constraints-install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pip==23.3
setuptools==70.0.0
# Note on not specifying 'setuptools-scm[toml]': Extras cannot be in constraints files
setuptools-scm==8.1.0
wheel==0.38.1
wheel==0.41.3


# ------------------------------------------------------------------------------
Expand All @@ -20,7 +20,7 @@ wheel==0.38.1
zhmcclient==1.16.1

attrs==22.2.0
PyYAML==5.3.1
PyYAML==6.0.2
python-dateutil==2.8.2
requests==2.32.2
jsonschema==3.1.0
Expand Down Expand Up @@ -50,7 +50,7 @@ immutable-views==0.6.0
importlib-resources==5.12.0
nocasedict==2.0.3
pkgutil_resolve_name==1.3.10
pyrsistent==0.19.3
pyrsistent==0.20.0
pytz==2024.1
six==1.16.0
stomp.py==8.1.2
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ requires = [
# minimum-constraints-install.txt
"setuptools>=70.0.0",
"setuptools-scm[toml]>=8.1.0",
"wheel>=0.38.1"
"wheel>=0.41.3"
]
build-backend = "setuptools.build_meta"

Expand Down Expand Up @@ -64,6 +64,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.8"
dynamic = ["version", "dependencies"]
Expand Down
2 changes: 1 addition & 1 deletion requirements-base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
pip>=23.3
setuptools>=70.0.0
setuptools-scm[toml]>=8.1.0
wheel>=0.38.1
wheel>=0.41.3
4 changes: 2 additions & 2 deletions requirements-develop.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ sphinxcontrib-serializinghtml>=1.1.5; python_version == '3.8'
sphinxcontrib-serializinghtml>=1.1.9; python_version >= '3.9'
sphinxcontrib-websupport>=1.2.4
autodocsumm>=0.2.12
Babel>=2.9.1
Babel>=2.11.0

# PyLint (no imports, invoked via pylint script)
# Pylint requires astroid
pylint>=3.0.1
astroid>=3.0.1
lazy-object-proxy>=1.4.3
wrapt>=1.14
wrapt>=1.15
# platformdirs is also used by tox
platformdirs>=4.1.0
# isort 4.3.8 fixes an issue with py310 and works on py310 (Note that isort 5.10.0 has official support for py310)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ zhmcclient>=1.16.1
# zhmcclient @ git+https://github.com/zhmcclient/python-zhmcclient.git@master

attrs>=22.2.0
PyYAML>=5.3.1
PyYAML>=6.0.2
python-dateutil>=2.8.2
requests>=2.31.0
jsonschema>=3.1.0
Expand Down

0 comments on commit 379da5c

Please sign in to comment.