Skip to content

Commit 1d4696d

Browse files
committed
Use manifest to specify sdist files
1 parent 01b5abd commit 1d4696d

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed

MANIFEST.in

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,31 @@
1-
include LICENSE
2-
include MANIFEST.in
1+
# ==================== Files to include in the sdist ====================
2+
3+
# config for project's main runnable dev automations
34
include Makefile
4-
include README*
5+
6+
# Minimum Build System spec (PEP-517/PEP-518)
57
include pyproject.toml
8+
9+
# This file, to specify what goes into the source distribution
10+
include MANIFEST.in
11+
12+
# Setup for building the project's bdist
613
include setup.cfg
14+
15+
# Requirements for running the project
716
include requirements.in
17+
18+
# Requirements for running the build system and other dev tools
819
include requirements-devtime.in
20+
21+
# Project Files
22+
include LICENSE
23+
include README*
24+
25+
# Typed marker (PEP-561)
26+
recursive-include src/ py.typed
27+
28+
# Include test configuration
29+
include test/conftest.py
30+
31+
prune .venv

setup.cfg

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ keywords =
4040
match
4141

4242
[options]
43+
include_package_data = True
4344
package_dir =
4445
= src
4546
packages = find:
@@ -48,9 +49,6 @@ python_requires = >=3.6
4849
[options.packages.find]
4950
where = src
5051

51-
[options.package_data]
52-
* = py.typed, VERSION
53-
5452
[coverage:report]
5553
exclude_lines =
5654
pragma: no cover

0 commit comments

Comments
 (0)