Open stefan6419846 opened 2 months ago
@stefan6419846 Thank you for your report. Do you have a suggestion how this request can be achived just for wheels? – We have the strong demand from upstream users (Linux distros) to include the tests in the sdist, so we cannot omit them from there.
It should work by modifying https://github.com/zopefoundation/fanstatic/blob/f27d7f1f627c5014e4065c83773b1b93328ce7a8/setup.py#L45 to use the exclude
parameter accordingly: https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#finding-simple-packages
AFAIK sdists will still ship all source files and ignore this line, but you can of course verify the results when looking at the log or output files after running the build with python -m build .
to generate both the sdist and binary wheel.
I'll put it onto my list to experiment with this.
BUG/PROBLEM REPORT / FEATURE REQUEST
What I did:
python3.9 -m pip download --no-deps fanstatic --only-binary :all:
unzip fanstatic-1.4-py3-none-any.whl
What I expect to happen:
What actually happened:
The tests usually are not required for non-source downloads and just bloat the distribution size (in this case, they require over 50 % of the distribution size).
What version of Python and Zope/Addons I am using:
Python 3.9.18 with
fanstatic==1.4
.