Skip to content

Commit

Permalink
do not include tests in the sdist package
Browse files Browse the repository at this point in the history
This reduces the needlessly large package size from 5 MB uncompressed / 1 MB compressed to just 50 kB.
The user is expected to run the tests from a cloned repo rather than the installed package.
  • Loading branch information
valgur committed Nov 22, 2021
1 parent 939d489 commit 5d115c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Expand Up @@ -16,7 +16,7 @@ Added

Changed
~~~~~~~
*
* Tests are no longer included in the Python source package to significantly reduce its size.

Fixed
~~~~~
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
@@ -1,6 +1,5 @@
include LICENSE
include README.rst
include requirements.txt
recursive-include tests *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -31,8 +31,8 @@
url="https://github.com/sentinelsat/sentinelsat",
license="GPLv3+",
packages=find_packages(exclude=["ez_setup", "examples", "tests"]),
include_package_data=True,
zip_safe=False,
include_package_data=False,
zip_safe=True,
install_requires=open("requirements.txt").read().splitlines(),
extras_require={
"dev": [
Expand Down

0 comments on commit 5d115c7

Please sign in to comment.