Skip to content

Commit

Permalink
Remove tests folder from wheels
Browse files Browse the repository at this point in the history
Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com>
  • Loading branch information
dosisod and sethmlarson committed Mar 2, 2024
1 parent 0c08b7c commit cc87dfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions newsfragments/158.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove the `tests` folder from wheel files. This reduces the zipped file size by 20KB (about 30%).
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@
author="Nathaniel J. Smith",
author_email="njs@pobox.com",
license="MIT",
packages=find_packages(),
packages=find_packages(exclude=["h11.tests"]),
package_data={'h11': ['py.typed']},
url="https://github.com/python-hyper/h11",
# This means, just install *everything* you see under h11/, even if it
# doesn't look like a source file, so long as it appears in MANIFEST.in:
include_package_data=True,
python_requires=">=3.8",
classifiers=[
"Development Status :: 3 - Alpha",
Expand Down

0 comments on commit cc87dfc

Please sign in to comment.