Skip to content

Commit

Permalink
Update to python 3.11
Browse files Browse the repository at this point in the history
netcdf4 to minimum of 1.6.4. Added flox as requirement to speed up resampling.
  • Loading branch information
bdestombe committed Jul 28, 2023
1 parent eaa8857 commit 69fc13b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 7 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]"},
{name = "Bas des Tombe, Bart Schilperoort"}
Expand All @@ -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 = [
Expand All @@ -61,7 +62,8 @@ dependencies = [
"dask",
"toolz",
"matplotlib",
"netCDF4<=1.5.8",
"netCDF4>=1.6.4",
"flox",
"pandas",
]
dynamic = ["version"]
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit 69fc13b

Please sign in to comment.