Skip to content

Commit f80a498

Browse files
authored
Drop Python 3.9 (#2547)
* drop py 3.9, update min numpy and scipy * drop unnecessary test warning filters * whatsnew * revise numpy and scipy versions * pandas too * drop py 3.9 from test workflows * bump publish workflow to 3.10 * fix broken pytest and asv jobs * try fixing asv again * more asv fix * bump py3.10-min h5py to 3.6.0 * tweaks
1 parent 73b828d commit f80a498

File tree

12 files changed

+40
-68
lines changed

12 files changed

+40
-68
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: actions/setup-python@v5
2424
with:
2525
# Python version should be the minimum supported version
26-
python-version: "3.9"
26+
python-version: "3.10"
2727

2828
- name: Install build tools
2929
run: |

.github/workflows/pytest-remote-data.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ jobs:
5656
strategy:
5757
fail-fast: false # don't cancel other matrix jobs when one fails
5858
matrix:
59-
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
59+
python-version: ["3.10", "3.11", "3.12", "3.13"]
6060
suffix: [''] # the alternative to "-min"
6161
include:
62-
- python-version: 3.9
62+
- python-version: "3.10"
6363
suffix: -min
6464

6565
runs-on: ubuntu-latest
@@ -103,7 +103,7 @@ jobs:
103103
run: pytest tests/iotools --cov=./ --cov-report=xml --remote-data
104104

105105
- name: Upload coverage to Codecov
106-
if: matrix.python-version == 3.9 && matrix.suffix == ''
106+
if: matrix.python-version == "3.10" && matrix.suffix == ''
107107
uses: codecov/codecov-action@v4
108108
with:
109109
fail_ci_if_error: true

.github/workflows/pytest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
fail-fast: false # don't cancel other matrix jobs when one fails
1313
matrix:
1414
os: [ubuntu-latest, macos-latest, windows-latest]
15-
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
15+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1616
environment-type: [conda, bare]
1717
suffix: [''] # placeholder as an alternative to "-min"
1818
include:
1919
- os: ubuntu-latest
20-
python-version: 3.9
20+
python-version: "3.10"
2121
environment-type: conda
2222
suffix: -min
2323
exclude:
@@ -83,7 +83,7 @@ jobs:
8383
pytest tests --cov=./ --cov-report=xml --ignore=tests/iotools
8484
8585
- name: Upload coverage to Codecov
86-
if: matrix.python-version == 3.9 && matrix.suffix == '' && matrix.os == 'ubuntu-latest' && matrix.environment-type == 'conda'
86+
if: matrix.python-version == "3.10" && matrix.suffix == '' && matrix.os == 'ubuntu-latest' && matrix.environment-type == 'conda'
8787
uses: codecov/codecov-action@v4
8888
with:
8989
fail_ci_if_error: true

benchmarks/asv.conf.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,19 @@
113113
"include": [
114114
// minimum supported versions
115115
{
116-
"python": "3.9",
116+
"python": "3.10",
117117
"build": "",
118-
"numpy": "1.19.5",
119-
"pandas": "1.3.0",
120-
"scipy": "1.6.0",
118+
"numpy": "1.21.5",
119+
"pandas": "1.4.1", // first anaconda version to support py 3.10
120+
"scipy": "1.7.2",
121121
// Note: these don't have a minimum in setup.py
122-
"h5py": "3.1.0",
123-
"ephem": "4.0.0.1", // first version to support py 3.9
124-
"numba": "0.53.0", // first version to support py 3.9
122+
"h5py": "3.6.0", // first version to support py 3.10
123+
"ephem": "4.1.1", // first version to support py 3.10
124+
"numba": "0.55.0", // first version to support py 3.10
125125
},
126126
// latest versions available
127127
{
128-
"python": "3.9",
128+
"python": "3.10",
129129
"build": "",
130130
"numpy": "",
131131
"pandas": "",

ci/requirements-py3.9-min.yml renamed to ci/requirements-py3.10-min.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ dependencies:
88
- pytest-cov
99
- pytest-mock
1010
- pytest-timeout
11-
- python=3.9
11+
- python=3.10
1212
- pytz
1313
- requests
1414
- pip:
15-
- h5py==3.0.0
16-
- numpy==1.19.3
17-
- pandas==1.3.0 # min version of pvlib
18-
- scipy==1.6.0
15+
- h5py==3.6.0
16+
- numpy==1.21.2
17+
- pandas==1.3.3 # min version of pvlib
18+
- scipy==1.7.2
1919
- pytest-rerunfailures # conda version is >3.6
2020
- pytest-remotedata # conda package is 0.3.0, needs > 0.3.1
2121
- requests-mock

ci/requirements-py3.10.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ dependencies:
88
- ephem
99
- h5py
1010
- numba
11-
- numpy >= 1.17.3
12-
- pandas >= 1.3.0
11+
- numpy >= 1.21.2
12+
- pandas >= 1.3.3
1313
- pip
1414
- pytest
1515
- pytest-cov
@@ -21,7 +21,7 @@ dependencies:
2121
- python=3.10
2222
- pytz
2323
- requests
24-
- scipy >= 1.6.0
24+
- scipy >= 1.7.2
2525
- statsmodels
2626
- pip:
2727
- nrel-pysam>=2.0

ci/requirements-py3.11.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ dependencies:
88
- ephem
99
- h5py
1010
- numba
11-
- numpy >= 1.17.3
12-
- pandas >= 1.3.0
11+
- numpy >= 1.21.2
12+
- pandas >= 1.3.3
1313
- pip
1414
- pytest
1515
- pytest-cov
@@ -21,7 +21,7 @@ dependencies:
2121
- python=3.11
2222
- pytz
2323
- requests
24-
- scipy >= 1.6.0
24+
- scipy >= 1.7.2
2525
- statsmodels
2626
- pip:
2727
- nrel-pysam>=2.0

ci/requirements-py3.12.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ dependencies:
88
- ephem
99
- h5py
1010
- numba
11-
- numpy >= 1.17.3
12-
- pandas >= 1.3.0
11+
- numpy >= 1.21.2
12+
- pandas >= 1.3.3
1313
- pip
1414
- pytest
1515
- pytest-cov
@@ -21,7 +21,7 @@ dependencies:
2121
- python=3.12
2222
- pytz
2323
- requests
24-
- scipy >= 1.6.0
24+
- scipy >= 1.7.2
2525
- statsmodels
2626
- pip:
2727
- nrel-pysam>=2.0

ci/requirements-py3.13.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ dependencies:
88
- ephem
99
- h5py
1010
- numba
11-
- numpy >= 1.17.3
12-
- pandas >= 1.3.0
11+
- numpy >= 1.21.2
12+
- pandas >= 1.3.3
1313
- pip
1414
- pytest
1515
- pytest-cov
@@ -21,7 +21,7 @@ dependencies:
2121
- python=3.13
2222
- pytz
2323
- requests
24-
- scipy >= 1.6.0
24+
- scipy >= 1.7.2
2525
- statsmodels
2626
- pip:
2727
- nrel-pysam>=2.0

ci/requirements-py3.9.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)