diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 12425b87b2..2b8034387d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,7 +23,7 @@ jobs: uses: actions/setup-python@v5 with: # Python version should be the minimum supported version - python-version: "3.10" + python-version: "3.11" - name: Install build tools run: | diff --git a/.github/workflows/pytest-remote-data.yml b/.github/workflows/pytest-remote-data.yml index b82d872062..f0ce8c04c3 100644 --- a/.github/workflows/pytest-remote-data.yml +++ b/.github/workflows/pytest-remote-data.yml @@ -56,10 +56,10 @@ jobs: strategy: fail-fast: false # don't cancel other matrix jobs when one fails matrix: - python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.11", "3.12", "3.13", "3.14"] suffix: [''] # the alternative to "-min" include: - - python-version: "3.10" + - python-version: "3.11" suffix: -min runs-on: ubuntu-latest @@ -107,7 +107,7 @@ jobs: run: pytest tests/iotools --cov=./ --cov-report=xml --remote-data - name: Upload coverage to Codecov - if: matrix.python-version == '3.10' && matrix.suffix == '' + if: matrix.python-version == '3.11' && matrix.suffix == '' uses: codecov/codecov-action@v4 with: fail_ci_if_error: true diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 0008571d2b..fc5dd0e49e 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -12,12 +12,12 @@ jobs: fail-fast: false # don't cancel other matrix jobs when one fails matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.11", "3.12", "3.13", "3.14"] environment-type: [conda, bare] suffix: [''] # placeholder as an alternative to "-min" include: - os: ubuntu-latest - python-version: "3.10" + python-version: "3.11" environment-type: conda suffix: -min exclude: @@ -83,7 +83,7 @@ jobs: pytest tests --cov=./ --cov-report=xml --ignore=tests/iotools - name: Upload coverage to Codecov - if: matrix.python-version == '3.10' && matrix.suffix == '' && matrix.os == 'ubuntu-latest' && matrix.environment-type == 'conda' + if: matrix.python-version == '3.11' && matrix.suffix == '' && matrix.os == 'ubuntu-latest' && matrix.environment-type == 'conda' uses: codecov/codecov-action@v4 with: fail_ci_if_error: true diff --git a/benchmarks/asv.conf.json b/benchmarks/asv.conf.json index 3b2cee200e..322374a9f7 100644 --- a/benchmarks/asv.conf.json +++ b/benchmarks/asv.conf.json @@ -113,19 +113,19 @@ "include": [ // minimum supported versions { - "python": "3.10", + "python": "3.11", "build": "", - "numpy": "1.21.5", - "pandas": "1.4.1", // first anaconda version to support py 3.10 - "scipy": "1.7.2", + "numpy": "1.23.5", + "pandas": "1.5.1", // first anaconda version to support py 3.11 + "scipy": "1.9.3", // first anaconda version to support py 3.11 // Note: these don't have a minimum in setup.py - "h5py": "3.6.0", // first version to support py 3.10 - "ephem": "4.1.1", // first version to support py 3.10 - "numba": "0.55.0", // first version to support py 3.10 + "h5py": "3.9.0", // first anaconda version to support py 3.11 + "ephem": "4.1.5", // first anaconda version to support py 3.11 + "numba": "0.57.0", // first anaconda version to support py 3.11 }, // latest versions available { - "python": "3.10", + "python": "3.11", "build": "", "numpy": "", "pandas": "", diff --git a/ci/requirements-py3.10.yml b/ci/requirements-py3.10.yml deleted file mode 100644 index 444b7b58fe..0000000000 --- a/ci/requirements-py3.10.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: test_env -channels: - - defaults - - conda-forge -dependencies: - - coveralls - - cython - - ephem - - h5py - - numba - - numpy >= 1.21.2 - - pandas >= 1.3.3 - - pip - - pytest - - pytest-cov - - pytest-mock - - requests-mock - - pytest-timeout - - pytest-rerunfailures - - conda-forge::pytest-remotedata # version in default channel is old - - python=3.10 - - pytz - - requests - - scipy >= 1.7.2 - - statsmodels - - pip: - - nrel-pysam>=2.0 - - solarfactors diff --git a/ci/requirements-py3.10-min.yml b/ci/requirements-py3.11-min.yml similarity index 71% rename from ci/requirements-py3.10-min.yml rename to ci/requirements-py3.11-min.yml index a6fa18dffb..8057c426b3 100644 --- a/ci/requirements-py3.10-min.yml +++ b/ci/requirements-py3.11-min.yml @@ -8,14 +8,14 @@ dependencies: - pytest-cov - pytest-mock - pytest-timeout - - python=3.10 + - python=3.11 - pytz - requests - pip: - - h5py==3.6.0 - - numpy==1.21.2 - - pandas==1.3.3 # min version of pvlib - - scipy==1.7.2 + - h5py==3.8.0 + - numpy==1.23.2 + - pandas==1.5.0 + - scipy==1.9.2 - pytest-rerunfailures # conda version is >3.6 - pytest-remotedata # conda package is 0.3.0, needs > 0.3.1 - requests-mock diff --git a/docs/sphinx/source/whatsnew/v0.16.0.rst b/docs/sphinx/source/whatsnew/v0.16.0.rst index 537521069f..babb5b34a6 100644 --- a/docs/sphinx/source/whatsnew/v0.16.0.rst +++ b/docs/sphinx/source/whatsnew/v0.16.0.rst @@ -122,6 +122,12 @@ Benchmarking Requirements ~~~~~~~~~~~~ +* Increase minimum requirements to (:pull:`2860`): + + - python: 3.11 + - numpy: 1.23.2 + - pandas: 1.5.0 + - scipy: 1.9.2 Maintenance diff --git a/pvlib/singlediode.py b/pvlib/singlediode.py index 974d59dff8..a511f9ebf4 100644 --- a/pvlib/singlediode.py +++ b/pvlib/singlediode.py @@ -345,8 +345,7 @@ def vd_from_brent(voc, v, iph, isat, rs, rsh, gamma, d2mutau, NsVbi, except ModuleNotFoundError as e: # TODO remove this when our minimum scipy version is >=1.15 msg = ( - "method='chandrupatla' requires scipy v1.15 or greater " - "(available for Python 3.10+). " + "method='chandrupatla' requires scipy v1.15 or greater. " "Select another method, or update your version of scipy." ) raise ImportError(msg) from e @@ -517,8 +516,7 @@ def vd_from_brent(voc, i, iph, isat, rs, rsh, gamma, d2mutau, NsVbi, except ModuleNotFoundError as e: # TODO remove this when our minimum scipy version is >=1.15 msg = ( - "method='chandrupatla' requires scipy v1.15 or greater " - "(available for Python 3.10+). " + "method='chandrupatla' requires scipy v1.15 or greater. " "Select another method, or update your version of scipy." ) raise ImportError(msg) from e @@ -684,8 +682,7 @@ def fmpp(x, *a): except ModuleNotFoundError as e: # TODO remove this when our minimum scipy version is >=1.15 msg = ( - "method='chandrupatla' requires scipy v1.15 or greater " - "(available for Python 3.10+). " + "method='chandrupatla' requires scipy v1.15 or greater. " "Select another method, or update your version of scipy." ) raise ImportError(msg) from e diff --git a/pyproject.toml b/pyproject.toml index 5884b4506d..de7fbb7fb8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,13 +9,13 @@ description = "A set of functions and classes for simulating the performance of authors = [ { name = "pvlib python Developers", email = "pvlib-admin@googlegroups.com" }, ] -requires-python = ">=3.10" +requires-python = ">=3.11" dependencies = [ - 'numpy >= 1.21.2', - 'pandas >= 1.3.3', + 'numpy >= 1.23.2', + 'pandas >= 1.5.0', 'pytz', 'requests', - 'scipy >= 1.7.2', + 'scipy >= 1.9.2', 'h5py', 'tzdata', # ensure all timezones are available in all installs for consistency GH#2795 ]