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 reading whitespaces and add support for entries with multiple version requirements #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sharkwouter
Copy link

With this change libyear is able to read entries like the following:

requests[security] <= 2.8.1, == 2.8.*; python_version < "2.7"
xmltodict == 0.10.0
pydantic == 1.*

None of these currently read correctly. It was not able to work with spaces. Then I found that when 2 conditions are used, a less than and a wildcard equals, the wildcard entry would always be picked.

This resolves both issues. I even added some tests.

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.

1 participant