Skip to content

Running hashin with Python versions >= 3.10 raises PackageError('No releases can be found....') #184

@vishnuwazoku

Description

@vishnuwazoku

The issue seems to stem from this piece of code.

def expand_python_version(version):
    if not re.match(r"^\d\.\d$", version):
        return [version]

The above regular expression assumes the minor version number can have only a single digit. Therefore the result will be incorrect for Python versions >= 3.10.

We probably want to change it to

    if not re.match(r"^\d\.\d*\d$", version)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions