Skip to content

Commit 0142e5a

Browse files
author
Jaime Céspedes Sisniega
authored
Merge pull request #287 from IFCA-Advanced-Computing/feature-python312-support
Add Python 3.12 support
2 parents c7cdf67 + 6f7890f commit 0142e5a

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
matrix:
1313
python-version: ['3.9',
1414
'3.10',
15-
'3.11',]
15+
'3.11',
16+
'3.12',]
1617

1718
steps:
1819
- name: Checkout
@@ -26,7 +27,7 @@ jobs:
2627
- name: Install dependencies
2728
run: |
2829
python -m pip install --upgrade pip
29-
python -m pip install tox==3.24.5 tox-gh-actions==2.9.1
30+
python -m pip install setuptools==68.2.2 tox==3.24.5 tox-gh-actions==2.9.1
3031
3132
- name: Optional - Install frouros (only used by linters)
3233
if: matrix.python-version == 3.9

docs/source/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Installation
22

3-
`frouros` currently supports Python 3.9, 3.10 and 3.11.
3+
`frouros` currently supports Python 3.9, 3.10, 3.11 and 3.12.
44

55
```{tip}
6-
We highly recommend to use a [virtual environment](https://docs.python.org/3.11/tutorial/venv.html).
6+
We highly recommend to use a [virtual environment](https://docs.python.org/3.12/tutorial/venv.html).
77
```
88

99
## From PyPI

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ classifiers = [
3131
"Programming Language :: Python :: 3.9",
3232
"Programming Language :: Python :: 3.10",
3333
"Programming Language :: Python :: 3.11",
34+
"Programming Language :: Python :: 3.12",
3435
"Programming Language :: Python :: 3 :: Only",
3536
]
36-
requires-python = ">=3.9,<3.12"
37+
requires-python = ">=3.9,<3.13"
3738
dependencies = [
3839
"matplotlib>=3.6.0,<3.9",
3940
"numpy>=1.24.0,<1.27",
@@ -65,9 +66,9 @@ download = "https://pypi.org/project/frouros/"
6566

6667
[build-system]
6768
requires = [
68-
"setuptools>=60.10,<61.0",
69-
"wheel>=0.37.1<0.38",
69+
"setuptools>=61.0,<69.0",
70+
"wheel>=0.37.1,<0.43",
7071
"toml>=0.10.2,<0.11",
71-
"build>=0.7.0,<0.8",
72+
"build>=0.7.0,<1.1",
7273
]
7374
build-backend = "setuptools.build_meta"

tox.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
minversion = 3.24.5
33
envlist =
4-
py3{9, 10, 11}
4+
py3{9, 10, 11, 12}
55
linters
66

77
[base]
@@ -15,8 +15,11 @@ python =
1515
3.9: py39, linters
1616
3.10: py310
1717
3.11: py311
18+
3.12: py312
1819

1920
[testenv]
21+
# Force to upgrade pip/wheel/setuptools to the latest version
22+
download = True
2023
deps =
2124
pytest>=7.2.1,<7.3
2225
pytest-cov>=4.0.0,<4.1

0 commit comments

Comments
 (0)