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 an error when handling single digit Python markers #155

Merged
merged 1 commit into from
Apr 3, 2021

Conversation

sdispater
Copy link
Member

Resolves: python-poetry/poetry#3862

Supersedes #154

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

The code responsible for this error (introduced 2 years ago python-poetry/poetry@46ad807) just needed to be removed.

This code was here to translate PEP 508 markers conditions to Poetry's internal comparison system. However, it seems that packaging interprets >3 as >3.0.0 just like Poetry does so it seems that this is no longer needed.

@pawamoy
Copy link

pawamoy commented Apr 3, 2021

I guess this would also fix python-poetry/poetry#2372?

@abn abn merged commit 8d5e5c5 into master Apr 3, 2021
@abn abn deleted the fix-single-digit-python-markers branch April 3, 2021 10:55
@sdispater sdispater mentioned this pull request Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'EmptyConstraint' object has no attribute 'min' with pytest and Python 2.7
3 participants