Skip to content

Commit 335a8d4

Browse files
authored
Require Python 3.9 (#200)
... and fix some related tox/flake issues
1 parent 1964ca1 commit 335a8d4

File tree

6 files changed

+22
-16
lines changed

6 files changed

+22
-16
lines changed

.flake8

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ extend-ignore =
44
F403
55
F405
66
exclude =
7-
build
8-
dist
9-
doc
10-
env
11-
venv
12-
example
13-
tmp
14-
_*
7+
build,
8+
dist,
9+
doc,
10+
env,
11+
venv,
12+
example,
13+
tmp,
14+
_*,
15+
.tox,

.github/workflows/ci_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
platform: [windows-latest, macos-latest, ubuntu-latest]
14-
python-version: ["3.8", "3.11"]
14+
python-version: ["3.9", "3.11"]
1515
runs-on: ${{ matrix.platform }}
1616

1717
steps:

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up python
1515
uses: actions/setup-python@v4
1616
with:
17-
python-version: 3.8
17+
python-version: 3.11
1818
- name: Install dependencies
1919
run: |
2020
python -m pip install --upgrade pip

.readthedocs.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ sphinx:
77
configuration: doc/conf.py
88
fail_on_warning: true
99

10+
build:
11+
os: "ubuntu-22.04"
12+
tools:
13+
python: "3.9"
1014

1115
python:
12-
version: 3.8
1316
install:
1417
- method: pip
1518
path: .

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ def absolute_links(txt):
2828
return txt
2929

3030

31-
# Python version check. We need >= 3.6 due to e.g. f-strings
32-
if sys.version_info < (3, 8, 0):
33-
sys.exit("PEtab requires at least Python version 3.8")
31+
# Python version check
32+
if sys.version_info < (3, 9, 0):
33+
sys.exit("PEtab requires at least Python version 3.9")
3434

3535
# read version from file
3636
__version__ = ""
@@ -67,7 +67,7 @@ def absolute_links(txt):
6767
"jsonschema",
6868
],
6969
include_package_data=True,
70-
python_requires=">=3.8.0",
70+
python_requires=">=3.9.0",
7171
entry_points=ENTRY_POINTS,
7272
extras_require={
7373
"tests": [

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
[tox]
2+
envlist = quality,unit
3+
isolated_build = True
24

35
[testenv]
46

@@ -12,7 +14,7 @@ description =
1214
[testenv:unit]
1315
extras = tests,reports,combine,vis
1416
commands =
15-
pytest --cov=petab --cov-report=xml --cov-append \
17+
python -m pytest --cov=petab --cov-report=xml --cov-append \
1618
tests
1719
description =
1820
Basic tests

0 commit comments

Comments
 (0)