-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Fix packaging #5624
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
Fix packaging #5624
Conversation
c97e9c6 to
bccd324
Compare
auvipy
left a comment
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.
what benefit will be added by moving under src/ ?
will that create any backward incompatibility?
|
@auvipy. The core issue is that |
|
As to backward incompatibility, there shouldn't be any issues. At the end of the day, the distribution still contains a single |
|
I don't think there'll be issue since it's just about the repository layout. |
bccd324 to
4636447
Compare
4636447 to
ba75de4
Compare
|
I'd rather punt on moving the package under a Notes to future myself about moving the package under
|
ba75de4 to
5efd7aa
Compare
carltongibson
left a comment
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.
OK. This looks good. (And fixes #5615! 🙂)
| from io import open | ||
|
|
||
| from setuptools import setup | ||
| from setuptools import setup, find_packages |
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.
Nice work!
This is something I had to overcome with I'm not sure how much tox-travis has informed your knowledge here, but I do think that I got it worked out OK there. You can check out what I did in the tox-travis |
|
Thanks @ryanhiebert. I was able to get coverage to work properly in #5656, but moving the package into a |
* Packaging should use manifest * Add schema.js template to MANIFEST
I've punted on moving the package under a
srcdirectory, and just made the minimum necessary changes. Also, fixes #5615.I don't know if we want to accept this as is, given that I moved the package contents into a
srcdirectory. If we're willing to accept that change, the move is for a good reason.toxdoes create and install the package distribution into the test environment, however this conflicts with therest_frameworkpackage that's located on the current path. Because the distribution and local files conflict, you cannot effectively test the distribution's packaged files. eg, the distribution may not be correctly configured (missing templates/static files), but the files on the local path do have them, so the tests pass erroneously.The solution is to move the package off of the path (usually into a
srcdirectory), so that the local files are not importable.The alternative would be to not move the package into
srcand accept that we may accidentally leave out files from time to time. This is probably fine, given that the manifest won't change very often.