extra-index-url URL in generated requirements.txt syntax error
See original GitHub issueThis bug seems to be introduced between pipenv 9.0.3 and 11.8.3. I have a Pipfile with two sources:
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[[source]]
url = "https://pypi.fury.io/TOKEN/jzoo/"
verify_ssl = true
name = "jzoo"
[packages]
"e1839a8" = {path = ".", editable = true}
When installing from this using a basic pipenv install --dev
I get the following:
…
Installing 'jsonschema==2.6.0 --hash=sha256:000e68abd33c972a5248544925a0cae7d1125f9bf6c58280d37546b946769a08 --hash=sha256:6ff5f3180870836cae40f06fa10419f557208175f13ad7bc26caa77beb1f6e02 --extra-index-url https://pypi.fury.io/TOKEN/jzoo/'
$ "/Users/wichert/.local/share/virtualenvs/whitelabel.api-aXG16dXx/bin/pip" install --verbose --no-deps -r /var/folders/mq/cq4zpf2n6qz_8x4jqsmmv6b80000gn/T/pipenv-t2i8sda7-requirements/pipenv-zygz4qgt-requirement.txt --require-hashes -i https://pypi.python.org/simple --exists-action w
Installing 'jzoo.utils==1.17.0 --extra-index-url https://pypi.fury.io/TOKEN/jzoo/'
WARNING: Invalid requirement, parse error at "'--extra-'"
ABORTING INSTALL... You will have to reinstall any packages that failed to install.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:11 (4 by maintainers)
Top Results From Across the Web
ubuntu - --extra-index-url not work in python requirements.txt
In the requirements.txt file format specification, the --extra-index-url option is considered a "global option" and has to be isolated on ...
Read more >Requirements File Format - pip documentation v22.3.1
Requirements files serve as a list of items to be installed by pip, when using pip install. Files that use this format are...
Read more >Specifying dependencies in Python | Cloud Functions ...
There are two ways to specify dependencies for Cloud Functions written in Python: using the pip package manager's requirements.txt file or packaging local ......
Read more >pip install — pip 10.0.0.dev0 documentation
Any URL may use the #egg=name syntax (see VCS Support) to explicitly state the project name. ... Use pip install -r example-requirements.txt to...
Read more >Python developer reference for Azure Functions
To learn more, see local.settings.file. requirements.txt: Contains the list of Python ... you can use remote build with extra index URL.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Regenerating the lockfile indeed fixes this. I have no idea why that helps - are there any backwards compatibility guarantees for lockfiles? I couldn’t find any things in the documentation.
Trying to narrow this down:
So something in the 11.6.2 release introduced this particular error.