Skip to content

Conversation

techalchemy
Copy link
Member

if c.requires_python:
# Old specifications had people setting this to single digits
# which is effectively the same as '>=digit,<digit+1'
if len(c.requires_python) == 1 and c.requires_python.isdigit():
Copy link
Member

@uranusjr uranusjr Jun 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The len(c.requires_python) ==1 part looks redundant to me, just isdigit() is enough. It does not matter practically, but if Python ever gets to 10.0 we probably want to support that as well.

- Handle single-digit un-specified requires-python format
- `Requires-Python: 3` should be functionally equivalent to `>=3,<4`
- Fixes #2343

Signed-off-by: Dan Ryan <dan@danryan.co>
Signed-off-by: Dan Ryan <dan@danryan.co>
@techalchemy techalchemy force-pushed the 2343-requires-python branch from 58c3f98 to 71ff857 Compare June 18, 2018 16:00
@techalchemy techalchemy merged commit 9195d3a into master Jun 18, 2018
@techalchemy techalchemy deleted the 2343-requires-python branch June 18, 2018 20:09
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.

2 participants