Skip to content

Allow PEP 440 direct references in requirements (dist_utils.py) #722

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

Merged
merged 2 commits into from
Jul 17, 2022

Conversation

cognifloyd
Copy link
Member

@cognifloyd cognifloyd commented Jul 17, 2022

This adds support for PEP 440 requirements instead of using the pip-specific VCS format.
see: https://peps.python.org/pep-0440/\#direct-references

This facilitates using newer tooling that does not support using the legacy pip VCS format.

Here is a VCS style requirement:

git+https://github.com/StackStorm/st2-auth-backend-pam.git@master#egg=st2-auth-backend-pam

Here is a PEP 440 requirement:

st2-auth-backend-pam@ git+https://github.com/StackStorm/st2-auth-backend-pam.git@master

This PR is based on StackStorm/st2#5673 and must be merged before StackStorm/st2#5673 CI can pass. This can safely be merged before StackStorm/st2#5673 is ready w/ approvals, however, as it adds support for PEP 440 without removing support for the old pip VCS requirements. In other words, we don't need to synchronize merging both PRs at the same time.

NB: I'm not changing packages/st2/in-requirements.txt in this PR because fixate-requirements does not handle that yet. We'll adjust fixate-requirements later if needed.

This adds support for PEP 440 requirements instead of using the
pip-specific VCS format.
see: https://peps.python.org/pep-0440/\#direct-references

This facilitates using newer tooling that does not support using the
legacy pip VCS format.
@cognifloyd cognifloyd added this to the 3.8.0 milestone Jul 17, 2022
@cognifloyd cognifloyd self-assigned this Jul 17, 2022
@cognifloyd cognifloyd requested a review from a team July 17, 2022 02:17
@cognifloyd cognifloyd changed the title Use PEP 440 direct references in requirements Allow PEP 440 direct references in requirements (dist_utils.py) Jul 17, 2022
@cognifloyd cognifloyd merged commit 18257aa into master Jul 17, 2022
@cognifloyd cognifloyd deleted the pep-440-reqs branch July 17, 2022 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants