Skip to content

Commit ccf3c79

Browse files
committed
Merge branch 'refs/heads/main' into forman-66-how_do_i_guide
2 parents f589cf0 + f2a8222 commit ccf3c79

File tree

17 files changed

+127
-86
lines changed

17 files changed

+127
-86
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: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
## Version 0.7.0 (in development)
1+
## Version 0.7.1 (in development)
2+
3+
* The function `zappend.api.zappend()` now returns the number of slices
4+
processed. (#93)
5+
6+
* Moved all project configuration to `pyproject.toml` and removed
7+
`setup.cfg` and requirements files. (#88)
28

39
* Fixed link to _slice sources_ in documentation main page.
410

docs/about.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@ corresponding issue.
2727

2828
## Development
2929

30-
Setup development environment:
30+
To set up development environment, with repository root as current
31+
working directory:
3132

3233
```bash
33-
pip install -r requirements.txt
34-
pip install -r requirements-dev.txt
35-
pip install -r requirements-docs.txt
34+
pip install .[dev,doc]
3635
```
3736

3837
### Testing and Coverage
@@ -56,8 +55,10 @@ black zappend
5655

5756
`zappend` documentation is built using the [mkdocs](https://www.mkdocs.org/) tool.
5857

58+
With repository root as current working directory:
59+
5960
```bash
60-
pip install -r requirements-doc.txt
61+
pip install .[doc]
6162

6263
mkdocs build
6364
mkdocs serve

docs/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ zappend(os.listdir("inputs"),
7474
dry_run=True)
7575
```
7676

77-
This remainder of this guide explains the how to use the various `zappend`
77+
The remainder of this guide explains the how to use the various `zappend`
7878
[configuration](config.md) settings.
7979

8080
!!! note

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.

0 commit comments

Comments
 (0)