Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync dependencies, update cookiecutter #45

Merged
merged 4 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/Ouranosinc/cookiecutter-pypackage",
"commit": "f750ad2185cbb56df6f7e98a269bdd8399283ea8",
"commit": "b27c2d5f8126ea1aefae29a6f5ccfdafad96395d",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
rev: v3.19.0
hooks:
- id: pyupgrade
args: [ '--py39-plus' ]
args: [ '--py310-plus' ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
Expand Down Expand Up @@ -42,7 +42,7 @@ repos:
- id: isort
exclude: ^docs/
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.1
rev: v0.8.2
hooks:
- id: ruff
args: [ '--fix' ]
Expand Down
7 changes: 4 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ Contributors: Éric Dupuis (:user:`coxipi`), Trevor James Smith (:user:`Zeitsper

Changes
^^^^^^^
* Split `sdba` from `xclim` and duplicate code where needed. (:pull:`8`)
* `units` are a copy (or almost) of given modules in `xclim`. A lot of duplicated code from xclim's `calendar` is also in xsdba's `base`. (:pull:`8`)

* Split `sdba` from `xclim` into its own standalone package. Where needed, some common functionalities were duplicated: (:pull:`8`)
* ``xsdba.units`` is an adaptation of the ``xclim.core.units`` modules.
* Many functions and definitions found in ``xclim.core.calendar`` have been adapted to ``xsdba.base``.
* Dependencies have been updated to reflect the new package structure. (:pull:`45`)

.. _changes_0.1.0:

Expand Down
48 changes: 25 additions & 23 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,44 @@ channels:
- conda-forge
- defaults
dependencies:
- python >=3.9,<3.13
- boltons
- bottleneck
- python >=3.10,<3.13
- boltons >=20.1
- bottleneck >=1.3.1
- cf_xarray >=0.10.0 # not sure if we need to be that strict
- cftime
- dask # why was this not installed? This is only pulled in by xclim, optional for xarray.
- cftime >=1.4.1
- dask >=2024.8.1
- h5netcdf >=1.3.0
- jsonpickle
- numba
- jsonpickle >=3.1.0
- numba >=0.54.1
- numpy >=1.23.0,<2.0 # to accommodate numba
- pint>=0.24.3
- scipy >=1.9.0
- statsmodels
- statsmodels >=0.14.2
- typer >=0.12.3
- xarray >=2023.11.0
- xclim >= 0.53
- yamale
- yamale >=5.0.0
# Extras
- xclim >= 0.53.2
# Dev tools and testing
- netcdf4
- pip >=24.3.1
- black ==24.10.0
- blackdoc ==0.3.9
- bump-my-version >=0.28.0
- watchdog >=4.0.0
- coverage >=7.5.0
- coveralls >=4.0.1
- flake8 >=7.1.1
- flake8-rst-docstrings >=0.3.0
- flit >=3.9.0,<4.0
- tox >=4.23.2
- coverage >=7.5.0
- coveralls >=4.0.1
- typer >=0.12.3
- pytest <8.0.0
- pytest-cov >=5.0.0
- pytest-xdist >=3.2.0
- black ==24.10.0
- blackdoc ==0.3.9
- isort ==5.13.2
- mypy
- netcdf4
- numpydoc >=1.8.0
- pip >=24.3.1
- pooch >=1.8.0
- pre-commit >=3.5.0
- ruff >=0.7.0
- pytest <8.0.0
- pytest-cov >=5.0.0
- pytest-xdist >=3.2.0
- ruff >=0.8.2
- tox >=4.23.2
- watchdog >=4.0.0
- xdoctest>=1.1.5
17 changes: 10 additions & 7 deletions environment-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@ channels:
- defaults
dependencies:
- python >=3.12,<3.13
- sphinx >=7.0.0
# Docs
- ipykernel
- ipython >=8.5.0
- jupyter_client
- nbsphinx >=0.9.5
- nc-time-axis >=1.4.1
- pandoc
- sphinx-rtd-theme >=1.0
- sphinx-autoapi
- pooch >=1.8.0
- sphinx >=7.0.0
- sphinx-autobuild >=2024.4.16
- sphinx-codeautolink
- sphinx-copybutton
- sphinx-intl
- sphinx-rtd-theme >=1.0
- sphinxcontrib-bibtex
- sphinxcontrib-napoleon
- typer >=0.12.3
- nbsphinx
- ipython
- ipykernel
74 changes: 37 additions & 37 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ requires-python = ">=3.10.0"
keywords = ["xsdba"]
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
Expand All @@ -28,73 +28,73 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
# "Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython"
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics"
]
dynamic = ["description", "version"]
dependencies = [
"boltons",
"bottleneck",
"cf_xarray>=0.10.0", # not sure if we need to be that strict
"cftime",
"dask",
"boltons >=20.1",
"bottleneck >=1.3.1",
"cf_xarray>=0.10.0",
"cftime >=1.4.1",
"dask >=2024.8.1",
"h5netcdf>=1.3.0",
"jsonpickle",
# TODO : for notebooks ... does this fall in optional deps?
"nc_time_axis",
"numba",
"jsonpickle >=3.1.0",
"numba >=0.54.1",
"numpy >=1.23.0,<2.0",
"pint>=0.24.3",
"scipy >=1.9.0",
"statsmodels",
"statsmodels >=0.14.2",
"typer >=0.12.3",
"xarray >=2023.11.0",
"yamale"
"yamale >=5.0.0"
]

[project.optional-dependencies]
dev = [
# Dev tools and testing
"pip >=24.3.1",
"black ==24.10.0",
"blackdoc ==0.3.9",
"bump-my-version >=0.28.0",
"watchdog >=4.0.0",
"coverage >=7.5.0",
"coveralls >=4.0.1",
"flake8 >=7.1.1",
"flake8-rst-docstrings >=0.3.0",
"flit >=3.9.0,<4.0",
"tox >=4.23.2",
"coverage >=7.5.0",
"coveralls >=4.0.1",
"isort ==5.13.2",
"mypy",
"netcdf4",
"numpydoc >=1.8.0; python_version >='3.9'",
"numpydoc >=1.8.0",
"pip >=24.3.1",
"pooch >=1.8.0",
"pre-commit >=3.5.0",
"pytest <8.0.0",
"pytest-cov >=5.0.0",
"pytest-xdist >=3.2.0",
"black ==24.10.0",
"blackdoc ==0.3.9",
"isort ==5.13.2",
"ruff >=0.7.0",
"pooch >=1.8.0",
"pre-commit >=3.5.0",
"xdoctest>=1.1.5",
"xclim >= 0.53.2"
"ruff >=0.8.2",
"tox >=4.23.2",
"watchdog >=4.0.0",
"xclim >= 0.53.2",
"xdoctest>=1.1.5"
]
docs = [
# Documentation and examples
"ipykernel",
"ipython >=8.5.0",
"jupyter_client",
"nbsphinx >=0.9.5",
"nc-time-axis >=1.4.1",
"pooch >=1.8.0",
"sphinx >=7.0.0",
"sphinx-autobuild >=2024.4.16",
"sphinx-autodoc-typehints",
"sphinx-codeautolink",
"sphinx-copybutton",
"sphinx-intl",
"sphinx-rtd-theme >=1.0",
"nbsphinx",
"ipython",
"ipykernel",
"jupyter_client",
# ADD
"sphinx-autobuild >=2024.4.16",
"sphinx-autodoc-typehints",
"sphinx-mdinclude",
"sphinxcontrib-bibtex",
"sphinxcontrib-svg2pdfconverter[Cairosvg]"
"sphinx-rtd-theme >=1.0",
"sphinxcontrib-bibtex"
]
all = ["xsdba[dev]", "xsdba[docs]"]

Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ deps =
isort ==5.13.2
flake8 >=7.1.1
flake8-rst-docstrings >=0.3.0
ruff >=0.7.0
ruff >=0.8.2
numpydoc >=1.8.0
commands =
make lint
Expand All @@ -36,6 +36,7 @@ allowlist_externals =
extras =
docs
commands =
make autodoc
make --directory=docs clean html
allowlist_externals =
make
Expand Down
Loading