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

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

Closed
ColinKennedy opened this issue Apr 30, 2020 · 0 comments · Fixed by #780
Closed

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

ColinKennedy opened this issue Apr 30, 2020 · 0 comments · Fixed by #780

Comments

@ColinKennedy
Copy link
Contributor

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
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 a pull request may close this issue.

1 participant