Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDon't install unittest code by default #1027
Closed
Labels
Comments
Thanks for bringing this up! I agree with the sentiment and believe it would be preferable not to package and install test files. Maybe these can be excluded during packaging? Help is greatly appreciated, as I only remember the incredible pain that |
I'm pretty sure that this is possible - I think it requires just some magic in setup.py and the MANIFEST.in. I'll see if I could come up with a PR for it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When doing
python3 setup.py install
on a local checkout of the code, files fromgit/test
will be installed into the standard site-packages directory.This mean that theoretically even the requirements from
test-requirements.txt
are mandatory for the base package and secondly it isn't necessary as the chances that an user is actually using the test code are pretty low.So overall it doesn't make much sense to me.
Is there any way to avoid having the test files installed via setuptools?