-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
InvalidSpecifier error using pipenv to install flit #2343
Comments
Sorry for the annoyance and thanks for the detail. I can definitely reproduce this and I think based on what you provided I know exactly why this is broken (we do some funky stuff with these specifiers to allow resolution to include things for other platforms and python versions but sometimes that isn't very good) |
techalchemy
added a commit
that referenced
this issue
Jun 18, 2018
- Handle single-digit un-specified requires-python format - `Requires-Python: 3` should be functionally equivalent to `>=3,<4` - Fixes #2343 Signed-off-by: Dan Ryan <[email protected]>
techalchemy
added a commit
that referenced
this issue
Jun 18, 2018
- Handle single-digit un-specified requires-python format - `Requires-Python: 3` should be functionally equivalent to `>=3,<4` - Fixes #2343 Signed-off-by: Dan Ryan <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Be sure to check the existing issues (both open and closed!). → Done. This is the same issue as #1881, but I've been asked (in a comment on that issue) to submit it as a new issue.
Describe the issue briefly here. →
pipenv install --dev flit
fails with an errorpip9._vendor.packaging.specifiers.InvalidSpecifier: Invalid specifier: '3'
.Please run
$ python -m pipenv.help
, and paste the results here. →The above command gets an error. I installed pipenv via homebrew; maybe that's why? I've added some more results that hopefully give some information that
python -m pipenv.help
might be asking for.Expected result
No errors.
Actual result
Steps to replicate
Provide the steps to replicate (which usually at least includes the commands and the Pipfile).
$ mkdir test_project $ cd test_project $ pipenv install --dev flit
I also get an identical error if I add a line
flit = "*"
,flit = "1.0"
, orflit = ">=1.0"
to one of my existingPipenv
files, and then runpipenv install --dev
in that project. I can include that file too if that would be helpful.The error appears to be due to the presence of
Requires-Python: 3
metadata in older releases of flit. Recent releases all specifyRequires-Python: >=3
, but I'm unable to figure out how to make use of this to get pipenv to install flit. If this is correct, it's unlikely that an upstream change to flit could fix this issue.Some investigation into the history of Python version specifiers indicates that there could be other Python packages that will also trigger this issue.
The text was updated successfully, but these errors were encountered: