Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove tests folder from wheels #159

Merged
merged 3 commits into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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="[email protected]",
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,
sigmavirus24 marked this conversation as resolved.
Show resolved Hide resolved
python_requires=">=3.7",
install_requires=[
"typing_extensions; python_version < '3.8'",
Expand Down