Pipenv: Support --(extra-)index-url when importing from requirements.txt

Created on 21 Sep 2017  路  10Comments  路  Source: pypa/pipenv

While there a multiple related closed issues, I'm unclear about what the last stance on supporting --(extra-)index-url when importing from requirements.txt is. IMO, it's am important migration scenario to support these to help adoption of pipenv. Also, it should be pretty much straight forward to add. If -i or --index-url is present in requirements.txt, the default [[source]] URL of https://pypi.python.org/simple in Pipfile should be replaced with whatever is given as the index URL. If one or more --extra-index-url are present, there should be additional [[source]] URLs pointing at the given locations.

Type

Most helpful comment

It would be nice to have --extra-index-url or --index-url parsed and added to the source automatically.

All 10 comments

Hey @sschuberth, could we please get an example requirements.txt with -i in use? I've used it in the command line but am unfamiliar with the syntax used in a file.

The syntax is as simple as:

-i http://my.private.server.com/ptpi/devpi/dev/+simple/

jinja2
nose-xunitmp

Great, thanks @sschuberth! I think this is something we could definitely parse for, but I'm going to tag @kennethreitz in to get his thoughts.

We're not going to be able to support hashes against those.

What do you mean by "hashes" in this context?

implemented!

... not really. Only -i seems to be implemented, not its alias --index-url, nor is support for the --extra-index-url option.

you only asked for -i :)

It would be nice to have --extra-index-url or --index-url parsed and added to the source automatically.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leileigong picture leileigong  路  3Comments

hynek picture hynek  路  3Comments

jeyraof picture jeyraof  路  3Comments

Californian picture Californian  路  3Comments

jacek-jablonski picture jacek-jablonski  路  3Comments