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

Feature request: pipenv install --index myindex mypackage #1852

Closed
patrick-jones opened this issue Mar 26, 2018 · 6 comments
Closed

Feature request: pipenv install --index myindex mypackage #1852

patrick-jones opened this issue Mar 26, 2018 · 6 comments
Labels
Category: Private PyPIs 😎 Problem relates to private PyPI usage. help wanted Type: Enhancement 💡 This is a feature or enhancement request.
Milestone

Comments

@patrick-jones
Copy link

I would like to request a command line option for specifying the source during pip install. For example, given this Pipfile (from the docs):

[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[[source]]
url = "http://pypi.home.kennethreitz.org/simple"
verify_ssl = false
name = "home"

I would like to be able to invoke something like:

pipenv install --index home mypackage

Which would install from my "home" index and add this into my Pipfile:

[packages]
mypackage = {version="*", index="home"}
@techalchemy
Copy link
Member

Makes sense, although if it's a package that isn't on pypi and your index is in your pipfile already it may work just fine to leave the index off

@techalchemy techalchemy added Type: Enhancement 💡 This is a feature or enhancement request. help wanted Category: Private PyPIs 😎 Problem relates to private PyPI usage. labels Mar 26, 2018
@uranusjr
Copy link
Member

uranusjr commented Mar 27, 2018

Is this technically possible though? While there is --extra-index-url in pip, I don’t think you can specify which index to use for each dependency, only the installation as a whole. (I may be wrong.)

@jakul
Copy link

jakul commented Apr 10, 2018

The example at https://docs.pipenv.org/advanced/#specifying-package-indexes specifies a different index for each requirement, so Pipenv must already support it.

@techalchemy
Copy link
Member

Yeah good point, doesn’t this already work?

techalchemy added a commit that referenced this issue Apr 11, 2018
- Recognizes index names in pipfile
- Falls back to assuming index is a url and uses it as such
- Actually uses the index when passed at `pipenv install`
- Fixes #1852

Signed-off-by: Dan Ryan <[email protected]>
techalchemy added a commit that referenced this issue Apr 13, 2018
- Always add extra indexes when installing
- Look up indexes by key if key is given instead of url
- Fixes #1973, #1974, #1852

Signed-off-by: Dan Ryan <[email protected]>
@techalchemy
Copy link
Member

Try pip install -e git+https://github.com/pypa/pipenv.git@1973-extra-index-urls#egg=pipenv and let me know if it works

techalchemy added a commit that referenced this issue Apr 13, 2018
- Always add extra indexes when installing
- Look up indexes by key if key is given instead of url
- Fixes #1973, #1974, #1852

Signed-off-by: Dan Ryan <[email protected]>
techalchemy added a commit that referenced this issue Apr 14, 2018
- Handle extra-index-urls when resolving
- Handle extra-index-url when using `--skip-lock`
- Parse index arguments when installing individual packages
- Translate index aliases to urls
- Always include extra indexes when installing a packages
- `get_source()` falls back to `parsed_pipfile['source']` for sources when
   not present in the lockfile (#1994)
- Include index and extra-index-url arguments in `pipenv lock -r` output
- Fixes #1973, #1974, #1852, #1977, #1994

Signed-off-by: Dan Ryan <[email protected]>
techalchemy added a commit that referenced this issue Apr 14, 2018
- Always add extra indexes when installing
- Look up indexes by key if key is given instead of url
- Fixes #1973, #1974, #1852

Signed-off-by: Dan Ryan <[email protected]>
techalchemy added a commit that referenced this issue Apr 14, 2018
- Handle extra-index-urls when resolving
- Handle extra-index-url when using `--skip-lock`
- Parse index arguments when installing individual packages
- Translate index aliases to urls
- Always include extra indexes when installing a packages
- `get_source()` falls back to `parsed_pipfile['source']` for sources when
   not present in the lockfile (#1994)
- Include index and extra-index-url arguments in `pipenv lock -r` output
- Fixes #1973, #1974, #1852, #1977, #1994

Signed-off-by: Dan Ryan <[email protected]>
@techalchemy techalchemy added this to the 11.10.1 milestone Apr 14, 2018
techalchemy added a commit that referenced this issue Apr 14, 2018
- Always add extra indexes when installing
- Look up indexes by key if key is given instead of url
- Fixes #1973, #1974, #1852

Signed-off-by: Dan Ryan <[email protected]>
techalchemy added a commit that referenced this issue Apr 14, 2018
- Handle extra-index-urls when resolving
- Handle extra-index-url when using `--skip-lock`
- Parse index arguments when installing individual packages
- Translate index aliases to urls
- Always include extra indexes when installing a packages
- `get_source()` falls back to `parsed_pipfile['source']` for sources when
   not present in the lockfile (#1994)
- Include index and extra-index-url arguments in `pipenv lock -r` output
- Fixes #1973, #1974, #1852, #1977, #1994

Signed-off-by: Dan Ryan <[email protected]>
techalchemy added a commit that referenced this issue Apr 16, 2018
- Always add extra indexes when installing
- Look up indexes by key if key is given instead of url
- Fixes #1973, #1974, #1852

Signed-off-by: Dan Ryan <[email protected]>
techalchemy added a commit that referenced this issue Apr 16, 2018
- Handle extra-index-urls when resolving
- Handle extra-index-url when using `--skip-lock`
- Parse index arguments when installing individual packages
- Translate index aliases to urls
- Always include extra indexes when installing a packages
- `get_source()` falls back to `parsed_pipfile['source']` for sources when
   not present in the lockfile (#1994)
- Include index and extra-index-url arguments in `pipenv lock -r` output
- Fixes #1973, #1974, #1852, #1977, #1994

Signed-off-by: Dan Ryan <[email protected]>
techalchemy added a commit that referenced this issue Apr 16, 2018
- Always add extra indexes when installing
- Look up indexes by key if key is given instead of url
- Fixes #1973, #1974, #1852

Signed-off-by: Dan Ryan <[email protected]>
techalchemy added a commit that referenced this issue Apr 16, 2018
- Handle extra-index-urls when resolving
- Handle extra-index-url when using `--skip-lock`
- Parse index arguments when installing individual packages
- Translate index aliases to urls
- Always include extra indexes when installing a packages
- `get_source()` falls back to `parsed_pipfile['source']` for sources when
   not present in the lockfile (#1994)
- Include index and extra-index-url arguments in `pipenv lock -r` output
- Fixes #1973, #1974, #1852, #1977, #1994

Signed-off-by: Dan Ryan <[email protected]>
techalchemy added a commit that referenced this issue Apr 17, 2018
- Always add extra indexes when installing
- Look up indexes by key if key is given instead of url
- Fixes #1973, #1974, #1852

Signed-off-by: Dan Ryan <[email protected]>
techalchemy added a commit that referenced this issue Apr 17, 2018
- Handle extra-index-urls when resolving
- Handle extra-index-url when using `--skip-lock`
- Parse index arguments when installing individual packages
- Translate index aliases to urls
- Always include extra indexes when installing a packages
- `get_source()` falls back to `parsed_pipfile['source']` for sources when
   not present in the lockfile (#1994)
- Include index and extra-index-url arguments in `pipenv lock -r` output
- Fixes #1973, #1974, #1852, #1977, #1994

Signed-off-by: Dan Ryan <[email protected]>
techalchemy added a commit that referenced this issue Apr 17, 2018
- Always add extra indexes when installing
- Look up indexes by key if key is given instead of url
- Fixes #1973, #1974, #1852

Signed-off-by: Dan Ryan <[email protected]>
techalchemy added a commit that referenced this issue Apr 17, 2018
- Handle extra-index-urls when resolving
- Handle extra-index-url when using `--skip-lock`
- Parse index arguments when installing individual packages
- Translate index aliases to urls
- Always include extra indexes when installing a packages
- `get_source()` falls back to `parsed_pipfile['source']` for sources when
   not present in the lockfile (#1994)
- Include index and extra-index-url arguments in `pipenv lock -r` output
- Fixes #1973, #1974, #1852, #1977, #1994

Signed-off-by: Dan Ryan <[email protected]>
@techalchemy
Copy link
Member

closed by #1980

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Private PyPIs 😎 Problem relates to private PyPI usage. help wanted Type: Enhancement 💡 This is a feature or enhancement request.
Projects
None yet
Development

No branches or pull requests

4 participants