Skip to content

Bad version parsing in Python 3.10 #4602

@tucked

Description

@tucked

pep508checker.py assumes that Python will always use a single digit for the minor version.

"python_version": platform.python_version()[:3],

Steps to replicate

edit Pipfile
[requires]
python_version = "3.10"
pipenv check --verbose
Checking PEP 508 requirements...
Running command: $ /home/tucked/.local/share/virtualenvs/tmp.VtEw2GLJ9V-cilwcAZk/bin/python /home/tucked/.local/pipx/venvs/pipenv/lib/python3.6/site-packages/pipenv/pep508checker.py
Command output: {"os_name": "posix", "sys_platform": "linux", "platform_machine": "x86_64", "platform_python_implementation": "CPython", "platform_release": "4.15.0-134-generic", "platform_system": "Linux", "platform_version": "#138-Ubuntu SMP Fri Jan 15 10:52:18 UTC 2021", "python_version": "3.1", "python_full_version": "3.10.0a2+", "implementation_name": "cpython", "implementation_version": "3.10.0a2"}

Specifier python_version does not match 3.10 (3.1).
Failed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions