Skip to content

Commit 9988edd

Browse files
authored
Merge pull request #196 from pypa/sdist-includes
Ensure tests, docs, license etc. are included in sdist
2 parents 261e4d8 + dfb1335 commit 9988edd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pyproject.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ authors = [
88
{name = "Thomas Kluyver", email = "[email protected]"},
99
]
1010
readme = "README.rst"
11+
license = {file = "LICENSE"}
1112
requires-python = ">=3.7"
1213
dependencies = []
1314
classifiers = [
@@ -22,6 +23,18 @@ Source = "https://github.com/pypa/pyproject-hooks"
2223
Documentation = "https://pyproject-hooks.readthedocs.io/"
2324
Changelog = "https://pyproject-hooks.readthedocs.io/en/latest/changelog.html"
2425

26+
[tool.flit.sdist]
27+
include = [
28+
"tests/",
29+
"docs/",
30+
"dev-requirements.txt",
31+
"noxfile.py",
32+
"pytest.ini",
33+
]
34+
exclude = [
35+
"docs/_build"
36+
]
37+
2538
[tool.ruff]
2639
src = ["src", "tests"]
2740

0 commit comments

Comments
 (0)