Skip to content

Comments

Fix an error when handling single digit Python markers#155

Merged
abn merged 1 commit intomasterfrom
fix-single-digit-python-markers
Apr 3, 2021
Merged

Fix an error when handling single digit Python markers#155
abn merged 1 commit intomasterfrom
fix-single-digit-python-markers

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