Skip to content

Commit cea70e2

Browse files
committed
Move to new-style pyproject.toml metadata
1 parent 1f25335 commit cea70e2

File tree

1 file changed

+36
-12
lines changed

1 file changed

+36
-12
lines changed

pyproject.toml

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
[build-system]
2-
requires = ["flit_core >=2,<4"]
2+
requires = ["flit_core >=3.2,<4"]
33
build-backend = "flit_core.buildapi"
44

5-
[tool.flit.metadata]
6-
dist-name = "cascade-config"
7-
module = "cascade_config"
8-
author = "RalfG"
9-
author-email = "ralf@gabriels.dev"
10-
home-page = "https://github.com/RalfG/cascade-config"
11-
description-file = "README.md"
5+
[project]
6+
name = "cascade-config"
7+
description = "Cascading configuration from the CLI and config files."
8+
readme = "README.md"
9+
license = {file = "LICENSE"}
10+
authors = [
11+
{name = "Ralf Gabriels", email = "ralf@gabriels.dev"}
12+
]
13+
keywords = [
14+
"configuration",
15+
"command line interface",
16+
"configuration files",
17+
"JSON"
18+
]
1219
classifiers = [
1320
"License :: OSI Approved :: Apache Software License",
1421
"Intended Audience :: Developers",
@@ -17,11 +24,28 @@ classifiers = [
1724
"Topic :: Software Development",
1825
"Topic :: Utilities"
1926
]
20-
requires = ["jsonschema>=3,<4"]
27+
dynamic = ["version"]
2128
requires-python = ">=3.6"
22-
keywords = "configuration, command line interface, configuration files, JSON"
29+
dependencies = [
30+
"jsonschema>=3",
31+
]
2332

33+
[project.urls]
34+
GitHub = "https://github.com/RalfG/cascade-config"
35+
ReadTheDocs = "https://cascade-config.readthedocs.io/en/stable/"
2436

25-
[tool.flit.metadata.requires-extra]
37+
[project.optional-dependencies]
2638
test = ["pytest>=6,<7", "pytest-cov>=2,<3"]
27-
dev = []
39+
docs = [
40+
"sphinx",
41+
"numpydoc>=1,<2",
42+
"recommonmark",
43+
"sphinx-mdinclude",
44+
"toml",
45+
"semver>=2",
46+
"sphinx_rtd_theme",
47+
"sphinx-autobuild",
48+
]
49+
50+
[tool.flit.module]
51+
name = "cascade_config"

0 commit comments

Comments
 (0)