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.
Here is a VCS style requirement: https://github.com/StackStorm/st2-packages/blob/6f64885cae4b89fbec21c7782b500312e6214fb8/packages/st2/in-requirements.txt#L9
Here is a PEP 440 requirement: https://github.com/StackStorm/st2-packages/blob/8e0e574a9feb3eadf86d35a844709d16b564e190/packages/st2/in-requirements.txt#L9
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.