Skip to content

Commit

Permalink
Add Python 3.13 support (#566)
Browse files Browse the repository at this point in the history
Fixes #630.
  • Loading branch information
EnricoMi authored Oct 21, 2024
1 parent f291907 commit ba4897f
Show file tree
Hide file tree
Showing 16 changed files with 45 additions and 27 deletions.
10 changes: 5 additions & 5 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ runs:
sudo apt-get update
sudo apt-get install language-pack-en language-pack-de
shell: bash

- name: Setup Python
if: inputs.python-version != 'installed'
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}

- name: Checkout
uses: actions/checkout@v4

- name: Detect OS
id: os
env:
Expand All @@ -47,7 +47,7 @@ runs:
esac
echo "date=$(date +%Y%m%d 2> /dev/null || true)" >> $GITHUB_OUTPUT
shell: bash

- name: Cache PIP Packages
uses: actions/cache@v4
id: cache
Expand All @@ -59,7 +59,7 @@ runs:
${{ inputs.os }}-pip-test-${{ inputs.python-version }}-${{ hashFiles('**/requirements.txt', '**/constraints.txt') }}-
${{ inputs.os }}-pip-test-${{ inputs.python-version }}-
${{ inputs.os }}-pip-test-
- name: Install Python dependencies
run: |
python -m venv "$RUNNER_TEMP/venv"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: "./.github/workflows/test-os.yml"
with:
os: '["macos-12", "macos-13", "macos-14", "macos-15"]'
python-version: '["3.10", "3.11", "3.12", "installed"]'
python-version: '["3.10", "3.11", "3.12", "3.13", "installed"]'
include: >
[
{"os": "macos-12", "python-version": "3.8"},
Expand All @@ -52,7 +52,7 @@ jobs:
uses: "./.github/workflows/test-os.yml"
with:
os: '["ubuntu-20.04", "ubuntu-22.04", "ubuntu-24.04"]'
python-version: '["3.9", "3.10", "3.11", "3.12", "installed"]'
python-version: '["3.9", "3.10", "3.11", "3.12", "3.13", "installed"]'
include: >
[
{"os": "ubuntu-20.04", "python-version": "3.7"},
Expand All @@ -65,7 +65,7 @@ jobs:
uses: "./.github/workflows/test-os.yml"
with:
os: '["windows-2019", "windows-2022"]'
python-version: '["3.8", "3.9", "3.10", "3.11", "3.12", "installed"]'
python-version: '["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "installed"]'
include: '[{"os": "windows-2019", "python-version": "3.7"}]'

publish:
Expand Down
2 changes: 1 addition & 1 deletion composite/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ runs:
continue-on-error: true
with:
path: ${{ steps.os.outputs.pip-cache }}
key: enricomi-publish-action-${{ runner.os }}-${{ runner.arch }}-pip-${{ steps.python.outputs.version }}-e594996205319a7990b3a4ec677d10a3
key: enricomi-publish-action-${{ runner.os }}-${{ runner.arch }}-pip-${{ steps.python.outputs.version }}-1a7833c49f5935a970bc661e3c45aa2a

- name: Create virtualenv
id: venv
Expand Down
2 changes: 1 addition & 1 deletion linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ runs:
continue-on-error: true
with:
path: '~/.cache/pip'
key: enricomi-publish-action-${{ runner.os }}-${{ runner.arch }}-pip-${{ steps.python.outputs.version }}-e594996205319a7990b3a4ec677d10a3
key: enricomi-publish-action-${{ runner.os }}-${{ runner.arch }}-pip-${{ steps.python.outputs.version }}-1a7833c49f5935a970bc661e3c45aa2a

- name: Create virtualenv
id: venv
Expand Down
2 changes: 1 addition & 1 deletion macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ runs:
continue-on-error: true
with:
path: '~/Library/Caches/pip'
key: enricomi-publish-action-${{ runner.os }}-${{ runner.arch }}-pip-${{ steps.python.outputs.version }}-e594996205319a7990b3a4ec677d10a3
key: enricomi-publish-action-${{ runner.os }}-${{ runner.arch }}-pip-${{ steps.python.outputs.version }}-1a7833c49f5935a970bc661e3c45aa2a

- name: Create virtualenv
id: venv
Expand Down
4 changes: 2 additions & 2 deletions python/requirements-3.10.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
humanize==4.9.0
junitparser==3.1.2
lxml==5.1.0
lxml==5.3.0
psutil==5.9.8
PyGithub==2.2.0
Deprecated==1.2.14
wrapt==1.16.0
PyJWT==2.8.0
PyNaCl==1.5.0
cffi==1.16.0
cffi==1.17.1
pycparser==2.22
requests==2.32.3
certifi==2024.7.4
Expand Down
4 changes: 2 additions & 2 deletions python/requirements-3.11.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
humanize==4.9.0
junitparser==3.1.2
lxml==5.1.0
lxml==5.3.0
psutil==5.9.8
PyGithub==2.2.0
Deprecated==1.2.14
wrapt==1.16.0
PyJWT==2.8.0
PyNaCl==1.5.0
cffi==1.16.0
cffi==1.17.1
pycparser==2.22
requests==2.32.3
certifi==2024.7.4
Expand Down
4 changes: 2 additions & 2 deletions python/requirements-3.12.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
humanize==4.9.0
junitparser==3.1.2
lxml==5.1.0
lxml==5.3.0
psutil==5.9.8
PyGithub==2.2.0
Deprecated==1.2.14
wrapt==1.16.0
PyJWT==2.8.0
PyNaCl==1.5.0
cffi==1.16.0
cffi==1.17.1
pycparser==2.22
requests==2.32.3
certifi==2024.7.4
Expand Down
18 changes: 18 additions & 0 deletions python/requirements-3.13.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
humanize==4.9.0
junitparser==3.1.2
lxml==5.3.0
psutil==5.9.8
PyGithub==2.2.0
Deprecated==1.2.14
wrapt==1.16.0
PyJWT==2.8.0
PyNaCl==1.5.0
cffi==1.17.1
pycparser==2.22
requests==2.32.3
certifi==2024.7.4
charset-normalizer==3.3.2
idna==3.7
urllib3==2.2.2
typing_extensions==4.12.2
urllib3==2.2.2
2 changes: 1 addition & 1 deletion python/requirements-3.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ humanize==4.6.0
typing_extensions==4.7.1
zipp==3.15.0
junitparser==3.1.2
lxml==5.1.0
lxml==5.3.0
psutil==5.9.8
PyGithub==2.2.0
Deprecated==1.2.14
Expand Down
4 changes: 2 additions & 2 deletions python/requirements-3.8.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
humanize==4.9.0
junitparser==3.1.2
lxml==5.1.0
lxml==5.3.0
psutil==5.9.8
PyGithub==2.2.0
Deprecated==1.2.14
wrapt==1.16.0
PyJWT==2.8.0
PyNaCl==1.5.0
cffi==1.16.0
cffi==1.17.1
pycparser==2.22
requests==2.32.3
certifi==2024.7.4
Expand Down
4 changes: 2 additions & 2 deletions python/requirements-3.9.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
humanize==4.9.0
junitparser==3.1.2
lxml==5.1.0
lxml==5.3.0
psutil==5.9.8
PyGithub==2.2.0
Deprecated==1.2.14
wrapt==1.16.0
PyJWT==2.8.0
PyNaCl==1.5.0
cffi==1.16.0
cffi==1.17.1
pycparser==2.22
requests==2.32.3
certifi==2024.7.4
Expand Down
4 changes: 2 additions & 2 deletions python/requirements-post-3.7.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
humanize==4.9.0
junitparser==3.1.2
lxml==5.1.0
lxml==5.3.0
psutil==5.9.8
PyGithub==2.2.0
Deprecated==1.2.14
wrapt==1.16.0
PyJWT==2.8.0
PyNaCl==1.5.0
cffi==1.16.0
cffi==1.17.1
pycparser==2.22
requests==2.32.3
certifi==2024.7.4
Expand Down
2 changes: 1 addition & 1 deletion python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
humanize==4.6.0; python_version <= '3.7'
humanize==4.9.0; python_version > '3.7'
junitparser==3.1.2
lxml==5.1.0
lxml==5.3.0
psutil==5.9.8
PyGithub==2.2.0
2 changes: 1 addition & 1 deletion windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ runs:
continue-on-error: true
with:
path: '~\AppData\Local\pip\Cache'
key: enricomi-publish-action-${{ runner.os }}-${{ runner.arch }}-pip-${{ steps.python.outputs.version }}-e594996205319a7990b3a4ec677d10a3
key: enricomi-publish-action-${{ runner.os }}-${{ runner.arch }}-pip-${{ steps.python.outputs.version }}-1a7833c49f5935a970bc661e3c45aa2a

- name: Create virtualenv
id: venv
Expand Down
2 changes: 1 addition & 1 deletion windows/bash/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ runs:
continue-on-error: true
with:
path: '~\AppData\Local\pip\Cache'
key: enricomi-publish-action-${{ runner.os }}-${{ runner.arch }}-pip-${{ steps.python.outputs.version }}-e594996205319a7990b3a4ec677d10a3
key: enricomi-publish-action-${{ runner.os }}-${{ runner.arch }}-pip-${{ steps.python.outputs.version }}-1a7833c49f5935a970bc661e3c45aa2a

- name: Create virtualenv
id: venv
Expand Down

0 comments on commit ba4897f

Please sign in to comment.