Skip to content

Commit ab74336

Browse files
authored
Merge pull request #89 from bcdev/pont-88-pyproject
Move all project configuration to pyproject.toml
2 parents 41e1709 + a3c26e9 commit ab74336

File tree

9 files changed

+83
-64
lines changed

9 files changed

+83
-64
lines changed

.flake8

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[flake8]
2+
# Make line length conform to black's default
3+
max-line-length = 88
4+
# Workaround for https://github.com/PyCQA/pycodestyle/issues/373 ;
5+
# see also
6+
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#pycodestyle
7+
extend-ignore = E203

.github/workflows/tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ jobs:
2727
- name: Install dependencies
2828
run: |
2929
python -m pip install --upgrade pip
30-
pip install -r requirements-dev.txt
31-
pip install -r requirements.txt
30+
pip install .[dev,doc]
3231
- name: Lint with flake8
3332
run: |
3433
# stop the build if there are Python syntax errors or undefined names

CHANGES.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
## Version 0.7.0 (in development)
1+
## Version 0.7.1 (in development)
22

33
* Fixed link to _slice sources_ in documentation main page.
44

5+
* Moved all project configuration to `pyproject.toml` and removed
6+
`setup.cfg` and requirements files. (#88)
7+
58
## Version 0.7.0 (from 2024-03-19)
69

710
* Made writing custom slice sources easier and more flexible: (#82)

docs/start.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ version from PyPI:
99
pip install zappend
1010
```
1111

12+
You can replace `zappend` with `zappend[dev]` in the above command to also
13+
install development dependencies, with `zappend[doc]` to also install
14+
documentation-building dependencies, or with `zappend[dev,doc]` to get both
15+
additional dependency sets.
16+
1217
To install the latest version for development, clone the
1318
[repository](https://github.com/bcdev/zappend), and with the repository’s root
1419
directory as the current working directory execute:

pyproject.toml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,69 @@ requires = [
33
"setuptools >= 40.9.0",
44
]
55
build-backend = "setuptools.build_meta"
6+
7+
[project]
8+
name = "zappend"
9+
dynamic = ["version"]
10+
authors = [
11+
{name = "Norman Fomferra", email = "[email protected]"}
12+
]
13+
description = """\
14+
Tool for robustly creating and updating Zarr datacubes from smaller slices\
15+
"""
16+
keywords = [
17+
"analysis ready data", "data science", "datacube", "xarray", "zarr"
18+
]
19+
readme = {file = "README.md", content-type = "text/markdown"}
20+
license = {text = "MIT"}
21+
requires-python = ">=3.10"
22+
dependencies = [
23+
"click",
24+
"dask",
25+
"fsspec",
26+
"jsonschema",
27+
"numcodecs",
28+
"numpy",
29+
"pyyaml",
30+
"xarray",
31+
"zarr"
32+
]
33+
34+
[tool.setuptools.dynamic]
35+
version = {attr = "zappend.__version__"}
36+
37+
[tool.setuptools.packages.find]
38+
exclude = [
39+
"test*",
40+
"doc*",
41+
"site*",
42+
"htmlcov*"
43+
]
44+
45+
[project.scripts]
46+
zappend = "zappend.cli:zappend"
47+
48+
[project.optional-dependencies]
49+
dev = [
50+
"pytest",
51+
"pytest-cov",
52+
"black",
53+
"flake8",
54+
"flake8-bugbear",
55+
"h5netcdf",
56+
"s3fs",
57+
"scipy",
58+
"pyproj"
59+
]
60+
doc = [
61+
"mkdocs",
62+
"mkdocs-material",
63+
"mkdocstrings",
64+
"mkdocstrings-python"
65+
]
66+
67+
[project.urls]
68+
Documentation = "https://bcdev.github.io/zappend/"
69+
Issues = "https://github.com/bcdev/zappend/issues"
70+
Changelog = "https://github.com/bcdev/zappend/blob/main/CHANGES.md"
71+
Repository = "https://github.com/bcdev/zappend"

requirements-dev.txt

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

requirements-doc.txt

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

requirements.txt

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

setup.cfg

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

0 commit comments

Comments
 (0)