Skip to content

Commit a390d93

Browse files
authored
chore: modernize pyproject.toml (#43)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent b284c4b commit a390d93

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

pyproject.toml

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

5-
[tool.flit.metadata]
6-
module = "pybind11_mkdoc"
7-
author = "Wenzel Jakob"
8-
author-email = "[email protected]"
9-
home-page = "https://github.com/pybind/pybind11_mkdoc"
5+
[project]
6+
name = "pybind11_mkdoc"
7+
description = "Generate documentation bindings for pybind11 modules."
8+
readme = "README.md"
9+
requires-python = ">=3.9"
10+
license = "MIT"
11+
authors = [
12+
{ name = "Wenzel Jakob", email = "[email protected]" }
13+
]
14+
urls.homepage = "https://github.com/pybind/pybind11_mkdoc"
15+
dependencies = ["clang"]
1016
classifiers = [
11-
"License :: OSI Approved :: MIT License",
1217
"Development Status :: 3 - Alpha",
1318
"Programming Language :: Python :: 3.9",
1419
"Programming Language :: Python :: 3.10",
@@ -20,16 +25,18 @@ classifiers = [
2025
"Operating System :: POSIX",
2126
"Operating System :: MacOS"
2227
]
23-
requires = ["clang"]
24-
requires-python = ">=3.9"
25-
26-
[tool.flit.scripts]
27-
pybind11-mkdoc = "pybind11_mkdoc:main"
28+
dynamic = ["version"]
2829

29-
[tool.flit.metadata.requires-extra]
30+
[project.optional-dependencies]
3031
test = [
3132
"pytest",
3233
"pybind11",
33-
"pytest-forked"
34+
"pytest-forked",
3435
]
3536

37+
[project.scripts]
38+
pybind11-mkdoc = "pybind11_mkdoc:main"
39+
40+
41+
[tool.flit.sdist]
42+
include = ["tests/**/*.py", "tests/**/*.h", ".gitignore"]

0 commit comments

Comments
 (0)