Skip to content

Commit da039d2

Browse files
authored
Merge pull request #35 from mraspaud/update_dask_version
Update python and dask versions
2 parents d66bfb3 + 32d3e7b commit da039d2

File tree

3 files changed

+31
-56
lines changed

3 files changed

+31
-56
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: ["ubuntu-latest"]
12-
python-version: ["3.8", "3.9", "3.10"]
12+
python-version: ["3.11", "3.12", "3.13"]
1313

1414
env:
1515
PYTHON_VERSION: ${{ matrix.python-version }}
@@ -18,26 +18,24 @@ jobs:
1818

1919
steps:
2020
- name: Checkout source
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2222

2323
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@v3
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

28-
- name: Install Poetry
29-
uses: abatilo/[email protected]
30-
with:
31-
poetry-version: 1.1.11
32-
3328
- name: Install dependencies
34-
run: poetry install
29+
run: |
30+
python -m pip install --upgrade pip
31+
python -m pip install pytest pytest-cov
32+
python -m pip install -e .
3533
3634
- name: Run pytest
37-
run: poetry run pytest --cov=pyninjotiff pyninjotiff/tests --cov-report=xml
35+
run: pytest --cov=pyninjotiff pyninjotiff/tests --cov-report=xml
3836

3937
- name: Upload unittest coverage to Codecov
40-
uses: codecov/codecov-action@v1
38+
uses: codecov/codecov-action@v4.0.1
4139
with:
4240
flags: unittests
4341
file: ./coverage.xml

pyninjotiff/version.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

pyproject.toml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
[tool.poetry]
1+
[project]
22
name = "pyninjotiff"
3-
version = "0.3.0"
3+
dynamic = ["version"]
44
description = "Python Ninjo TIFF writing library"
5-
authors = ["Martin Raspaud <[email protected]>"]
6-
license = "GPLv3"
5+
authors = [ { name = "Martin Raspaud", email = "[email protected]" } ]
6+
license = { text = "GPLv3" }
7+
requires-python = ">=3.11"
78
classifiers = [
89
"Topic :: Software Development :: Libraries :: Python Modules",
910
"Development Status :: 5 - Production/Stable",
@@ -13,23 +14,24 @@ classifiers = [
1314
"Programming Language :: Python",
1415
"Topic :: Scientific/Engineering"
1516
]
17+
dependencies = [
18+
"numpy >=1.6",
19+
"pyproj >=3.2.1",
20+
"pyresample >=1.21.1",
21+
"dask >=2024.9.0",
22+
"xarray >=0.19.0",
23+
"trollimage >=1.15.1",
24+
]
1625

17-
[tool.poetry.dependencies]
18-
python = "^3.7"
19-
numpy = ">=1.6"
20-
pyproj = "^3.2.1"
21-
pyresample = "^1.21.1"
22-
dask = {extras = ["array"], version = "^2021.9.1"}
23-
xarray = "^0.19.0"
24-
trollimage = "^1.15.1"
25-
26-
[tool.poetry.dev-dependencies]
27-
pytest = "^5.2"
28-
pytest-cov = "^3.0.0"
26+
[project.optional-dependencies]
27+
dev = ['pytest', 'pre-commit', 'pytest-cov']
2928

3029
[build-system]
31-
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
32-
build-backend = "poetry.core.masonry.api"
30+
requires = ["hatchling", "hatch-vcs"]
31+
build-backend = "hatchling.build"
32+
33+
[tool.hatch.version]
34+
source = "vcs"
3335

34-
[tool.poetry-dynamic-versioning]
35-
enable = true
36+
[tool.hatch.build.hooks.vcs]
37+
version-file = "pyninjotiff/version.py"

0 commit comments

Comments
 (0)