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

Fully exclude tests modules in setup.py #602

Merged
merged 1 commit into from Jan 28, 2017

Conversation

AdamWill
Copy link
Contributor

Just excluding 'tests' doesn't seem to be enough: it results in
tests/rest_framework being installed systemwide when you run
python setup.py install. Excluding 'tests*' seems to do the
trick.

@rpkilby
Copy link
Collaborator

rpkilby commented Jan 21, 2017

👍 although it needs to be rebased. It probably wouldn't hurt to also remove the following from MANIFEST.in.

recursive-include tests *

@AdamWill
Copy link
Contributor Author

Well, personally I'd prefer the tests to be in the release tarball, as it allows us to run the tests downstream in the Fedora package build. It's just when actually installing that they should be excluded.

Just excluding 'tests' doesn't seem to be enough: it results in
tests/rest_framework being installed systemwide when you run
`python setup.py install`. Excluding 'tests*' seems to do the
trick.
@carltongibson
Copy link
Owner

OK. We'll stick. Thanks for there input @AdamWill!

@carltongibson carltongibson merged commit 70e1548 into carltongibson:develop Jan 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants