-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
📦 Move packaging to PEP 517 in-tree backend #893
📦 Move packaging to PEP 517 in-tree backend #893
Conversation
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.
NOTE: for some reason, pure-python wheels get an .so
file too. Needs investigation.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #893 +/- ##
=======================================
Coverage 99.74% 99.74%
=======================================
Files 4 4
Lines 772 772
Branches 219 219
=======================================
Hits 770 770
Misses 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@mjpieters this still needs work, but you're welcome to poke around. Also, I'm not going to fix linting errors right now since the formatters are too invasive and make incorrect changes sometimes. |
That's fine for now. I'd be interested in examples of incorrect changes, if you have any? |
d20e7a4
to
c610139
Compare
@mjpieters like moving -from ._backend import ( # noqa: WPS436 # Re-exporting PEP 517 hooks
+from ._backend import ( # Re-exporting PEP 517 hooks |
packaging/pep517_backend/hooks.py
Outdated
from ._backend import ( # noqa: WPS436 # Re-exporting PEP 660 hooks | ||
build_editable, | ||
get_requires_for_build_editable, | ||
prepare_metadata_for_build_editable, | ||
) |
Check notice
Code scanning / CodeQL
Unused import Note
Import of 'get_requires_for_build_editable' is not used.
Import of 'prepare_metadata_for_build_editable' is not used.
Status update: I made the packaging work. Will have to polish stuff before undrafting the PR. But in general, I'm pretty happy with the interface here. |
So while working on this, I realized that introducing a |
21e2abe
to
7d1836b
Compare
08362f4
to
93a5c4d
Compare
92f59a8
to
18d49b2
Compare
This essentially allows the cythonization opt-out be controlled by the `--pure-python` PEP 517 config setting that can be passed to the corresponding build frontends via their respective CLIs.
18d49b2
to
70b26b6
Compare
This essentially allows the cythonization opt-out to be controlled by the
--pure-python
PEP 517 config setting that can be passed to the corresponding build frontends via their respective CLIs.Are there changes in behavior for the user?
Yes, the users, and packagers are now supposed to explicitly pass the
--pure-python
config setting to their PEP 517 build frontends in use, when they need to make pure-python wheels.Related issue number
N/A
Checklist
CHANGES
folder<issue_id>.<type>
(e.g.588.bugfix
)issue_id
change it to the pr id after creating the PR.feature
: Signifying a new feature..bugfix
: Signifying a bug fix..doc
: Signifying a documentation improvement..removal
: Signifying a deprecation or removal of public API..misc
: A ticket has been closed, but it is not of interest to users.Fix issue with non-ascii contents in doctest text files.