Skip to content
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

Fix version union constraint not properly generated (non PEP508 compliant) #1767

Conversation

tomzx
Copy link
Contributor

@tomzx tomzx commented Dec 18, 2019

When we have a union of constraints, those were not properly generated.
For example, ^1.2.3,!=1.3.5 would be converted to ^1.2.3,!=1.3.5 (same
string) under PEP508, which is not valid. This PR will instead produce
>1.2.3,<2.0.0,!=1.3.5.

The approach may not be the best/cleanest, so I'm open to hear suggestions of improvements.

Thanks!

Note: Should fix #1522.

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

@tomzx tomzx force-pushed the fixes/version-union-constraint-pep-508-name branch from b322601 to 26070a1 Compare December 18, 2019 21:54
When we have a union of constraints, those were not properly generated.
For example, ^1.2.3,!=1.3.5 would be converted to ^1.2.3,!=1.3.5 (same
string) under PEP508, which is not valid.
@tomzx tomzx force-pushed the fixes/version-union-constraint-pep-508-name branch from 26070a1 to e7c0ce2 Compare December 18, 2019 22:50
@finswimmer finswimmer added the kind/bug Something isn't working as expected label Dec 23, 2019
@finswimmer finswimmer requested a review from a team February 9, 2020 19:52
@finswimmer
Copy link
Member

Hello @tomzx ,

would be happy to review this PR. Can you rebase onto the current master please, to fix the conflicts?

Thanks a lot your contribution! 👍

fin swimmer

@tomzx
Copy link
Contributor Author

tomzx commented Sep 6, 2020

Hey @finswimmer, I've migrated the code over to poetry-core, see python-poetry/poetry-core#79.

I'll leave this issue open as a reminder to merge the poetry-core dependency once the fix has been merged, ok?

@finswimmer finswimmer closed this Sep 7, 2020
Copy link

github-actions bot commented Mar 1, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Intersection requirement in pyproject.toml rendered incorrectly in setup.py
2 participants