Skip to content

Commit 411b6e7

Browse files
committed
Move almost all project config into pyproject.toml
Remove requirements.txt, requirements-doc.txt, requirements-dev.txt, and setup.cfg and replace them with equivalent content in pyproject.toml. Currently flake8 configuration is missing -- this was configured in setup.cfg and cannot currently be configured in pyproject.toml (see PyCQA/flake8#234 ).
1 parent 41e1709 commit 411b6e7

File tree

5 files changed

+66
-61
lines changed

5 files changed

+66
-61
lines changed

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)