-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Exclude tests from package discovery #6552
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6552 +/- ##
==========================================
- Coverage 92.01% 92.01% -0.01%
==========================================
Files 91 91
Lines 15114 15108 -6
==========================================
- Hits 13907 13901 -6
Misses 1207 1207
|
a08bf5e
to
38020cd
Compare
Can we just move the relevant test utils |
Yeah, much easier indeed. I will do that then, thanks :) |
38020cd
to
397301b
Compare
I repurposed this PR to only fix the spurious |
Might have broken ReadTheDocs? |
This seems to be a relic of the past when `tests/data` contained data files. It is not the case anymore.
Same issue on |
I fixed it. The problem was that |
# because of an upload-size limit by PyPI, we're temporarily removing docs from the tarball. | ||
# Also see MANIFEST.in | ||
# package_data={'docs': ['*']}, | ||
include_package_data=True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this exclude other stuff like example NBs or csv files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no more csv files in pymc
(I think they moved to pymc-examples
), and if NBs were ever included, I don't think they are not anymore. As far as I can say, building pymc
with or without this line creates the same wheel.
Thanks for the quick turn-around @Armavica! Should we release 5.1.1 now? |
@twiecki let's add back the test utilities that are used by other packages first. I'll push a PR now |
setuptools
was now picking up thetests
directory as an installable package and was installing it alongsidepymc
, which could conflict with any other package namedtests
.This PR configures
setuptools
to excludetests
from the automated package discovery.I took this opportunity to clean up some warning-generating lines in
MANIFEST.in
, and an unused option insetup.py
.Checklist
Major / Breaking Changes
New features
Bugfixes
Documentation
Maintenance