Skip to content

Invalid python_requires in setup.py - ">=3.4.*" not allowed #779

@ColinKennedy

Description

@ColinKennedy

Reference issue:
AcademySoftwareFoundation/rez#876

Steps to reproduce

  • Install astroid
python3.6 -m pip install astroid==2.2.0 --user
  • Run this
import os from distlib import database def main(): """Run the main execution of the current script.""" path = os.path.join(os.path.expanduser("~"), ".local", "lib", "python3.6", "site-packages") distribution = database.DistributionPath([path]) distributions = list(distribution.get_distributions()) if __name__ == "__main__": main()

Current behavior

  • Raises this exception - ValueError: '.*' not allowed for u'>=' constraints

Expected behavior

distributions should be a non-empty list, containing at least astroid 2.2.0 as one of its entries

python -c "from astroid import __pkginfo__; print(__pkginfo__.version)" output

$ python3 -c "from astroid import __pkginfo__; print(__pkginfo__.version)" 2.3.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions