-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Add 'dist' build #5656
Add 'dist' build #5656
Conversation
On first sight I'm not in favour of us having to change a several year-long layout, in order to address tooling issues. |
Could we do something like ensure that the script cd's into a different directory when testing the distribution? Any other options? |
TBH, I'm fine with this. Other options are possibly worst in my opinion. |
Changing directories won't have an effect, but we could add a flag to |
I'd far prefer that, yup. If we can make a more minimal change, then we should. |
Sounds good. I'll update the PR later. |
Okey doke. I suppose either rebase, or issue a new PR and close this. |
909ba98
to
e0a77ce
Compare
Okay, this should be good to go now. There was an issue in that pytest would re-add the package's root directory after it had been removed. The solution is to just import Also, I temporarily committed 909ba98 to demonstrate the packaging failures (see: failing build). |
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. Nice. Very neatly done. 👏
Description
This is a continuation of #5624, proposing that the package be moved under a
src
dir. To recap:This iteration fixes issues with coverage data. Most of the builds do use the local files via an editable install. As such, all coverage data is under
/src/rest_framework
instead of spread across multiple venvs. Testing the distribution is done wit a single build that doesn't collect coverage data.As far as I can tell, the only potential downside is that git blame will be hampered a bit, given the file moves.
Changes
Moved package undersrc
dirdist
build.