Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[flake8]
# Make line length conform to black's default
max-line-length = 88
# Workaround for https://github.com/PyCQA/pycodestyle/issues/373 ;
# see also
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#pycodestyle
extend-ignore = E203
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install -r requirements.txt
pip install .[dev,doc]
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
5 changes: 4 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
## Version 0.7.0 (in development)
## Version 0.7.1 (in development)

* Fixed link to _slice sources_ in documentation main page.

* Moved all project configuration to `pyproject.toml` and removed
`setup.cfg` and requirements files. (#88)

## Version 0.7.0 (from 2024-03-19)

* Made writing custom slice sources easier and more flexible: (#82)
Expand Down
5 changes: 5 additions & 0 deletions docs/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ version from PyPI:
pip install zappend
```

You can replace `zappend` with `zappend[dev]` in the above command to also
install development dependencies, with `zappend[doc]` to also install
documentation-building dependencies, or with `zappend[dev,doc]` to get both
additional dependency sets.

To install the latest version for development, clone the
[repository](https://github.com/bcdev/zappend), and with the repository’s root
directory as the current working directory execute:
Expand Down
66 changes: 66 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,69 @@ requires = [
"setuptools >= 40.9.0",
]
build-backend = "setuptools.build_meta"

[project]
name = "zappend"
dynamic = ["version"]
authors = [
{name = "Norman Fomferra", email = "[email protected]"}
]
description = """\
Tool for robustly creating and updating Zarr datacubes from smaller slices\
"""
keywords = [
"analysis ready data", "data science", "datacube", "xarray", "zarr"
]
readme = {file = "README.md", content-type = "text/markdown"}
license = {text = "MIT"}
requires-python = ">=3.10"
dependencies = [
"click",
"dask",
"fsspec",
"jsonschema",
"numcodecs",
"numpy",
"pyyaml",
"xarray",
"zarr"
]

[tool.setuptools.dynamic]
version = {attr = "zappend.__version__"}

[tool.setuptools.packages.find]
exclude = [
"test*",
"doc*",
"site*",
"htmlcov*"
]

[project.scripts]
zappend = "zappend.cli:zappend"

[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"black",
"flake8",
"flake8-bugbear",
"h5netcdf",
"s3fs",
"scipy",
"pyproj"
]
doc = [
"mkdocs",
"mkdocs-material",
"mkdocstrings",
"mkdocstrings-python"
]

[project.urls]
Documentation = "https://bcdev.github.io/zappend/"
Issues = "https://github.com/bcdev/zappend/issues"
Changelog = "https://github.com/bcdev/zappend/blob/main/CHANGES.md"
Repository = "https://github.com/bcdev/zappend"
9 changes: 0 additions & 9 deletions requirements-dev.txt

This file was deleted.

5 changes: 0 additions & 5 deletions requirements-doc.txt

This file was deleted.

9 changes: 0 additions & 9 deletions requirements.txt

This file was deleted.

38 changes: 0 additions & 38 deletions setup.cfg

This file was deleted.