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.5.*" not allowed #3555

Closed
ColinKennedy opened this issue May 1, 2020 · 1 comment
Closed

Invalid python_requires in setup.py - ">=3.5.*" not allowed #3555

ColinKennedy opened this issue May 1, 2020 · 1 comment
Assignees
Labels

Comments

@ColinKennedy
Copy link

This is a duplicate of pylint-dev/astroid#779 (astroid and pylint have the same issue related to their setup.py file.

Steps to reproduce

  • Install pylint
python3.6 -m pip install pylint==2.5.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

pylint --version output

pylint 2.5.0
astroid 2.5.0
Python 3.6.8 (default, Aug  7 2019, 17:28:10)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
@Pierre-Sassoulas
Copy link
Member

Closing because it was done in #3739

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants