From b7b9ca20b107b48dcbddb9709c5668ae333439f3 Mon Sep 17 00:00:00 2001 From: dosisod <39638017+dosisod@users.noreply.github.com> Date: Thu, 13 Apr 2023 23:04:44 -0700 Subject: [PATCH 1/2] Remove `tests` folder from wheels: I have verified on my local machine that the source distributions still include the tests folder. Closes #158. --- setup.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 76db443..7c6eb4f 100644 --- a/setup.py +++ b/setup.py @@ -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.7", install_requires=[ "typing_extensions; python_version < '3.8'", From b094f06361002c154268acdeaab18facf0d93bd4 Mon Sep 17 00:00:00 2001 From: dosisod <39638017+dosisod@users.noreply.github.com> Date: Thu, 13 Apr 2023 23:19:58 -0700 Subject: [PATCH 2/2] Add newsfragment --- newsfragments/158.misc.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 newsfragments/158.misc.rst diff --git a/newsfragments/158.misc.rst b/newsfragments/158.misc.rst new file mode 100644 index 0000000..d55c70c --- /dev/null +++ b/newsfragments/158.misc.rst @@ -0,0 +1 @@ +Remove the `tests` folder from wheel files. This reduces the zipped file size by 20KB (about 30%).