Skip to content

Commit cc87dfc

Browse files
dosisodsethmlarson
andauthored
Remove tests folder from wheels
Co-authored-by: Seth Michael Larson <[email protected]>
1 parent 0c08b7c commit cc87dfc

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

newsfragments/158.misc.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove the `tests` folder from wheel files. This reduces the zipped file size by 20KB (about 30%).

setup.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@
1212
author="Nathaniel J. Smith",
1313
author_email="[email protected]",
1414
license="MIT",
15-
packages=find_packages(),
15+
packages=find_packages(exclude=["h11.tests"]),
1616
package_data={'h11': ['py.typed']},
1717
url="https://github.com/python-hyper/h11",
18-
# This means, just install *everything* you see under h11/, even if it
19-
# doesn't look like a source file, so long as it appears in MANIFEST.in:
20-
include_package_data=True,
2118
python_requires=">=3.8",
2219
classifiers=[
2320
"Development Status :: 3 - Alpha",

0 commit comments

Comments
 (0)