Skip to content

Commit

Permalink
drop python3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
RondeauG committed Sep 18, 2024
1 parent 89ba7bd commit c175626
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 18 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ jobs:
environment-file: environment-dev.yml
create-args: >-
python=${{ matrix.python-version }}
- name: Downgrade intake-esm
if: matrix.python-version == '3.9'
run: |
micromamba install -y -c conda-forge intake-esm=2023.11.10
- name: Conda and Mamba versions
run: |
echo "micromamba $(micromamba --version)"
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
rev: v3.17.0
hooks:
- id: pyupgrade
args: [ '--py39-plus' ]
args: [ '--py310-plus' ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
Expand Down Expand Up @@ -77,10 +77,10 @@ repos:
rev: 1.8.5
hooks:
- id: nbqa-pyupgrade
args: [ '--py39-plus' ]
args: [ '--py310-plus' ]
additional_dependencies: [ 'pyupgrade==3.17.0' ]
- id: nbqa-black
args: [ '--target-version=py39' ]
args: [ '--target-version=py310' ]
additional_dependencies: [ 'black==24.8.0' ]
- id: nbqa-isort
additional_dependencies: [ 'isort==5.13.2' ]
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ Before you submit a pull request, check that it meets these guidelines:

#. The pull request should not break the templates.

#. The pull request should work for all currently supported Python versions. Check the `pyproject.toml` or `tox.ini` files for the list of supported versions.
#. The pull request should work for all currently supported Python versions. Check the `pyproject.toml` or `tox.ini` files for the list of supported versions. We aim to follow the support and drop schedule of Python versions as recommended by the NumPy NEP calendar: https://numpy.org/neps/nep-0029-deprecation_policy.html

Tips
----
Expand Down
2 changes: 1 addition & 1 deletion environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: xscen-dev
channels:
- conda-forge
dependencies:
- python >=3.9,<3.13
- python >=3.10,<3.13
# Don't forget to sync changes between environment.yml, environment-dev.yml, and pyproject.toml!
# Also consider updating the list in xs.utils.show_versions if you add a new package.
# Main packages
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: xscen
channels:
- conda-forge
dependencies:
- python >=3.9,<3.13
- python >=3.10,<3.13
# Don't forget to sync changes between environment.yml, environment-dev.yml, and pyproject.toml!
# Also consider updating the list in xs.utils.show_versions if you add a new package.
# Main packages
Expand Down
13 changes: 5 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ maintainers = [
]
description = "A climate change scenario-building analysis framework, built with xclim/xarray."
readme = "README.rst"
requires-python = ">=3.9.0"
requires-python = ">=3.10.0"
keywords = ["xscen"]
classifiers = [
"Development Status :: 4 - Beta",
Expand All @@ -30,7 +30,6 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand All @@ -50,8 +49,7 @@ dependencies = [
"geopandas",
"h5netcdf",
"h5py",
"intake-esm >=2023.07.07,<v2024.2.6; python_version == '3.9'",
"intake-esm >=2023.07.07; python_version >= '3.10'",
"intake-esm >=2023.07.07",
"matplotlib",
"netCDF4 <1.7",
"numcodecs",
Expand Down Expand Up @@ -127,7 +125,6 @@ all = ["xscen[dev]", "xscen[docs]", "xscen[extra]"]

[tool.black]
target-version = [
"py39",
"py310",
"py311",
"py312"
Expand Down Expand Up @@ -205,11 +202,11 @@ source = ["xscen"]
append_only = true
known_first_party = "xscen"
profile = "black"
py_version = 39
py_version = 310

[tool.mypy]
files = "."
python_version = 3.9
python_version = 3.10
show_error_codes = true
strict = true
warn_no_return = true
Expand Down Expand Up @@ -261,7 +258,7 @@ markers = ["requires_netcdf: marks tests that require netcdf files to run"]
[tool.ruff]
src = ["src/xscen"]
line-length = 150
target-version = "py39"
target-version = "py310"
exclude = [
".eggs",
".git",
Expand Down

0 comments on commit c175626

Please sign in to comment.