Skip to content

Commit

Permalink
Merge branch 'deprecate-python310' into adopt-ruff-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre authored Feb 21, 2025
2 parents 13572e3 + 2093fb0 commit f82bf1e
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 25 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -407,14 +407,12 @@ jobs:
continue-on-error: true
- name: Test with pytest
run: |
python -m pytest --numprocesses=logical --durations=10 --cov=xclim --cov-report=term-missing
- name: Report coverage
run: |
coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: run-{{ matrix.python-version }}-conda
COVERALLS_PARALLEL: true
python -m pytest --numprocesses=logical --durations=10 --cov=xclim --cov-report=lcov
- name: Report Coverage
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
with:
flag-name: run-{{ matrix.python-version }}-conda
parallel: true
- name: Tests measurement
uses: green-coding-solutions/eco-ci-energy-estimation@7ff5628108e21227662ce881f10156eb9deab891 # v4.4
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ htmlcov/
.coverage.*
.cache
nosetests.xml
coverage.lcov
coverage.xml
*.cover
.hypothesis/
Expand Down
7 changes: 4 additions & 3 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ sphinx:
# - pdf

build:
os: ubuntu-22.04
os: ubuntu-24.04
tools:
python: "mambaforge-22.9"
python: "mambaforge-23.11"
jobs:
pre_create_environment:
- sed -i "s/python >=3.11,<3.14/python >=3.11,<3.13/" environment.yml
pre_build:
- sphinx-apidoc -o docs/apidoc/ --private --module-first src/xclim src/xclim/testing/tests src/xclim/indicators src/xclim/indices
- rm docs/apidoc/xclim.rst
Expand All @@ -31,7 +33,6 @@ python:

search:
ranking:

notebooks/*: 2
api_indicators.html: 1
indices.html: -1
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
Changelog
=========

v0.56.0 (unreleased)
--------------------
Contributors to this version: Trevor James Smith (:user:`Zeitsperre`).

Breaking changes
^^^^^^^^^^^^^^^^
* `xclim` no longer supports Python 3.10. The minimum required version is now Python 3.11. (:pull:`2082`).
* The minimum versions of several key dependencies have been raised (`numpy` >=1.24.0; `scikit-learn` >=1.2.0; `scipy` >=1.11.0). (:pull:`2082`).

Internal changes
^^^^^^^^^^^^^^^^
* `black`, `isort`, and `nbqa` have all been dropped from the development dependencies. (:issue:`1805`, :pull:`2082`).

v0.55.0 (2025-02-17)
--------------------
Contributors to this version: Juliette Lavoie (:user:`juliettelavoie`), Trevor James Smith (:user:`Zeitsperre`), Sascha Hofmann (:user:`saschahofmann`), Pascal Bourgault (:user:`aulemahal`), Éric Dupuis (:user:`coxipi`), Baptiste Hamon (:user:`baptistehamon`), Sarah Gammon (:user:`SarahG-579462`).
Expand Down
2 changes: 1 addition & 1 deletion docs/references.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. only:: html
.. only:: not latex

============
Bibliography
Expand Down
5 changes: 2 additions & 3 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ dependencies:
- cairosvg >=2.6.0
- codespell >=2.4.1
- coverage >=7.5.0
- coveralls >=4.0.1 # Note: coveralls is not yet compatible with Python 3.13
- deptry =0.23.0
- deptry >=0.23.0
- distributed >=2.0
- flake8 >=7.1.1
- flake8-rst-docstrings >=0.3.0
Expand Down Expand Up @@ -64,7 +63,7 @@ dependencies:
- pytest-socket >=0.6.0
- pytest-xdist >=3.2
- ruff >=0.9.6
- sphinx >=7.0.0
- sphinx >=7.1.0,<8.2
- sphinx-autobuild >=2024.4.16
- sphinx-autodoc-typehints
- sphinx-codeautolink >=0.16.2
Expand Down
13 changes: 3 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ dev = [
"bump-my-version >=0.32.1",
"codespell >=2.4.1",
"coverage[toml] >=7.5.0",
"deptry ==0.23.0",
"deptry >=0.23.0",
"flake8 >=7.1.1",
"flake8-rst-docstrings ==0.3.0",
"h5netcdf>=1.3.0",
Expand Down Expand Up @@ -100,9 +100,9 @@ docs = [
"nc-time-axis >=1.4.1",
"pooch >=1.8.0",
"pybtex >=0.24.0",
"sphinx >=7.0.0",
"sphinx >=8.2.0",
"sphinx-autobuild >=2024.4.16",
"sphinx-autodoc-typehints",
"sphinx-autodoc-typehints >=3.1.0",
"sphinx-codeautolink >=0.16.2",
"sphinx-copybutton",
"sphinx-mdinclude",
Expand All @@ -126,13 +126,6 @@ xclim = "xclim.cli:cli"

[tool]

[tool.black]
target-version = [
"py311",
"py312",
"py313"
]

[tool.bumpversion]
current_version = "0.55.1-dev.0"
commit = true
Expand Down

0 comments on commit f82bf1e

Please sign in to comment.