-
Notifications
You must be signed in to change notification settings - Fork 982
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
docs: move integration guide to user-docs #17173
Conversation
Signed-off-by: William Woodruff <william@trailofbits.com>
Signed-off-by: William Woodruff <william@trailofbits.com>
# https://www.python.org/dev/peps/pep-0491/#file-name-convention | ||
wheel_parts = { | ||
tag: re.sub(r'[^\w\d.]+', '_', part, re.UNICODE) | ||
for tag, part in locals().items() |
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.
I had never noticed this before, but this example function is pretty wonky -- it uses locals()
for building the wheel_parts
here, which is both brittle and probably harder than necessary for more junior Python devs to follow.
I can do a follow-up PR to refactor it if there's interest, or maybe find an alternative implementation of it elsewhere.
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.
I'm currently working on an improvement to pypa/packaging which should simplify this, so totally fine to leave this as is for now.
See #16541.
This is mostly a straight inclusion of
integration-guide.rst
, although I've added some links to the PyPI where previously only the PyPI mailing list was noted (for announcements).