Skip to content

Commit ab62285

Browse files
authored
Merge pull request #67 from devitocodes/codex/update-pyrevolve-for-python-3.13-compatibility
Add Python 3.13 support
2 parents 23dea91 + 0d404a7 commit ab62285

File tree

5 files changed

+22
-13
lines changed

5 files changed

+22
-13
lines changed

.github/workflows/flake8.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v1
16-
- name: Set up Python 3.7
17-
uses: actions/setup-python@v1
15+
- uses: actions/checkout@v4
16+
- name: Set up Python 3.11
17+
uses: actions/setup-python@v5
1818
with:
19-
python-version: 3.7
19+
python-version: '3.11'
2020
- name: Install dependencies
2121
run: |
2222
python -m pip install --upgrade pip

.github/workflows/pytest-linux.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
Build-linux:
1111
runs-on: ${{ matrix.os }}
1212
env:
13-
CC: gcc-9
13+
CC: gcc
1414

1515
strategy:
1616
matrix:
17-
os: [ubuntu-20.04, ubuntu-latest]
18-
python-version: [3.8, 3.x]
17+
os: [ubuntu-22.04, ubuntu-latest]
18+
python-version: ['3.10', '3.11', '3.12', '3.13']
1919

2020
steps:
2121
- uses: actions/checkout@v4

.github/workflows/pytest-macOS.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: macos-latest
1212
strategy:
1313
matrix:
14-
python-version: [3.6-dev, 3.x]
14+
python-version: ['3.10', '3.11', '3.12', '3.13']
1515

1616
steps:
1717
- uses: actions/checkout@v4

.github/workflows/pythonpublish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v1
11+
- uses: actions/checkout@v4
1212
- name: Set up Python
13-
uses: actions/setup-python@v1
13+
uses: actions/setup-python@v5
1414
with:
1515
python-version: '3.x'
1616
- name: Install dependencies

setup.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,15 @@ def extensions():
3535
with open("README.md", "r") as fh:
3636
long_description = fh.read()
3737

38-
s_required = ["cython>=0.17,<=3.0.0", "versioneer", "flake8"]
39-
i_required = ["contexttimer"]
38+
i_required = ["contexttimer", "numpy"]
39+
s_required = ["cython>=3.0", "versioneer", "flake8"]
4040

4141
configuration = {
4242
'name': 'pyrevolve',
4343
'packages': find_packages(exclude=['examples', 'tests']),
4444
'setup_requires': s_required,
4545
'install_requires': i_required,
46+
'python_requires': '>=3.10,<3.14',
4647
'extras_require': {'compression': ['blosc2', 'pyzfp']},
4748
'ext_modules': lazy_cythonize(extensions),
4849
'version': versioneer.get_version(),
@@ -54,7 +55,15 @@ def extensions():
5455
'author': "Imperial College London",
5556
'author_email': '[email protected]',
5657
'license': 'MIT',
57-
'zip_safe': False
58+
'zip_safe': False,
59+
'classifiers': [
60+
'Programming Language :: Python :: 3',
61+
'Programming Language :: Python :: 3 :: Only',
62+
'Programming Language :: Python :: 3.10',
63+
'Programming Language :: Python :: 3.11',
64+
'Programming Language :: Python :: 3.12',
65+
'Programming Language :: Python :: 3.13'
66+
]
5867
}
5968

6069

0 commit comments

Comments
 (0)