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

Fixing broken pip install by enforcing PEP-440 #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xopclabs
Copy link

According to PEP-440, using >= operator is only possible for >= V.N cases and not >= V.N.*. Since version 24.1 (changelog) pip enforces PEP-440 rules and simply doesn't let one install this library due to the error below.

So, this little PR simply fixes the error by enforcing PEP-440.

$ pip install andaluh
Defaulting to user installation because normal site-packages is not writeable
Collecting andaluh
  Using cached andaluh-0.2.1.tar.gz (12 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in andaluh setup command: 'python_requires' must be a string containing valid version specifiers; Invalid specifier: '>=3.5.*'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

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 this pull request may close these issues.

1 participant