Skip to content

Commit a165108

Browse files
authored
Require Python>=3.11 per nep-0029 (#462)
1 parent 1dd3b7b commit a165108

File tree

6 files changed

+17
-10
lines changed

6 files changed

+17
-10
lines changed

.github/workflows/ci_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
platform: [windows-latest, macos-latest, ubuntu-latest]
15-
python-version: ["3.10", "3.14"]
15+
python-version: ["3.11", "3.14"]
1616
runs-on: ${{ matrix.platform }}
1717

1818
steps:

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up python
2020
uses: actions/setup-python@v6
2121
with:
22-
python-version: 3.11
22+
python-version: 3.13
2323

2424
- name: Install dependencies / build sdist
2525
run: |

.readthedocs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ sphinx:
88
fail_on_warning: false
99

1010
build:
11-
os: "ubuntu-22.04"
11+
os: "ubuntu-24.04"
1212
tools:
13-
python: "3.10"
13+
python: "3.12"
1414

1515
python:
1616
install:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Documentation of the PEtab format in general is available at
1717

1818
## Installation
1919

20-
The PEtab library is available on [pypi](https://pypi.org/project/petab/)
20+
The PEtab library is available on [PyPI](https://pypi.org/project/petab/)
2121
and the easiest way to install it is running
2222

2323
pip3 install petab
2424

25-
It will require Python>=3.10 to run. (We are following the
26-
[numpy Python support policy](https://numpy.org/neps/nep-0029-deprecation_policy.html)).
25+
`petab` requires Python>=3.11. We are following
26+
[NumPy's Python support policy](https://numpy.org/neps/nep-0029-deprecation_policy.html).
2727

2828
Development versions of the PEtab library can be installed using
2929

petab/v2/core.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@
1414
from math import nan
1515
from numbers import Number
1616
from pathlib import Path
17-
from typing import TYPE_CHECKING, Annotated, Any, Generic, TypeVar, get_args
17+
from typing import (
18+
TYPE_CHECKING,
19+
Annotated,
20+
Any,
21+
Generic,
22+
Self,
23+
TypeVar,
24+
get_args,
25+
)
1826

1927
import numpy as np
2028
import pandas as pd
@@ -31,7 +39,6 @@
3139
field_validator,
3240
model_validator,
3341
)
34-
from typing_extensions import Self
3542

3643
from .._utils import _generate_path
3744
from ..v1 import (

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
99
name = "petab"
1010
dynamic = ["version", "readme"]
1111
description = "Parameter estimation tabular data"
12-
requires-python = ">=3.10"
12+
requires-python = ">=3.11"
1313
dependencies = [
1414
"numpy>=1.15.1",
1515
"pandas>=1.2.0",

0 commit comments

Comments
 (0)