From 69fc13baddc04f08453c4ddd22d6db533fd856eb Mon Sep 17 00:00:00 2001 From: Bas des Tombe Date: Fri, 28 Jul 2023 12:16:31 +0200 Subject: [PATCH] Update to python 3.11 netcdf4 to minimum of 1.6.4. Added flox as requirement to speed up resampling. --- .github/workflows/build.yml | 2 +- CHANGELOG.rst | 3 +++ pyproject.toml | 11 +++++++---- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ba481194..3faac415 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,7 +39,7 @@ jobs: fail-fast: false matrix: os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] - python-version: ['3.9', '3.10'] + python-version: ['3.9', '3.10', '3.11'] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 9ecbeeef..99128993 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -7,10 +7,13 @@ dev New features * Improved the functionality of `merge_double_ended`, by adding a check that handles measurements missing in one channel while present in the other ([#171](https://github.com/dtscalibration/python-dts-calibration/pull/171)) +* Support for Python 3.11 +* Requiring netcdf4 >= 1.6.4 Bug fixes * Single-ended measurements with `fix_alpha` failed due to a bug introduced in v2.0.0 ([#173](https://github.com/dtscalibration/python-dts-calibration/pull/173)). +* Flox included in requirements to speed up resampling via xarray ([Xarray #5734](https://github.com/pydata/xarray/pull/5734)). Introduced limitations diff --git a/pyproject.toml b/pyproject.toml index 1e896d88..b0904034 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ name = "dtscalibration" description = "A Python package to load raw DTS files, perform a calibration, and plot the result." readme = "README.rst" license = "BSD-3-Clause" -requires-python = ">=3.9, <3.11" +requires-python = ">=3.9, <=3.11" authors = [ {email = "bdestombe@gmail.com"}, {name = "Bas des Tombe, Bart Schilperoort"} @@ -48,6 +48,7 @@ classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Topic :: Utilities", ] dependencies = [ @@ -61,7 +62,8 @@ dependencies = [ "dask", "toolz", "matplotlib", - "netCDF4<=1.5.8", + "netCDF4>=1.6.4", + "flox", "pandas", ] dynamic = ["version"] @@ -117,7 +119,7 @@ build = [ features = ["dev"] [[tool.hatch.envs.matrix_test.matrix]] -python = ["3.9", "3.10"] +python = ["3.9", "3.10", "3.11"] [tool.hatch.envs.matrix_test.scripts] test = ["pytest ./src/ ./tests/",] # --doctest-modules @@ -155,7 +157,8 @@ line-length = 88 exclude = ["docs", "build"] # Allow unused variables when underscore-prefixed. dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" -target-version = "py38" +# Minimum supported Python version +target-version = "py39" [tool.ruff.per-file-ignores] "tests/**" = ["D"]