question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pipenv workflow for private authenticated package indexes like Artifactory

See original GitHub issue

Hi there, I’m looking to switch from plain old pip to pipenv but I’m having trouble finding a comparable workflow for private package indexes that require HTTP Basic Auth specified in the index URL.

With plain old pip (9.0.1), it’s quite easy to point to a package index with basic auth using ~/.pip/pip.conf or $VIRTUAL_ENV/pip.conf:

[global]
index-url = https://MY_USERNAME:MY_PASSWORD@some.artifactory.mycorp.com/artifactory/api/pypi/python/simple

Because of the basic auth in the URL, it’s actually beneficial that this is kept separate from our dependencies. We track our requirements in git; meanwhile the creds are kept in an untracked config file that varies for each member of our team (since they’ll all have their own personal creds).

Can pipenv support a workflow like this?

FWIW I tried removing the [[sources]] section in hopes that it would fall back to pip.conf, but no such luck. At least for us, this would be quite amenable as every package is expected to be pulled from our single private index anyway.

Thanks!

Describe your environment
  1. OSX 10.12
  2. Python version: 3.6.2
  3. Pipenv version: 9.0.3

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
tyler-8commented, Apr 30, 2018

+1’d OP as this has become something very needed for those of us in more secured environments where an internal “proxy” pip (like Artifactory) is the only way to get external pip packages.

0reactions
tyler-8commented, May 2, 2018

Thanks @techalchemy - I see the way to accomplish this now. https://docs.pipenv.org/advanced/#specifying-package-indexes

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I pull a Python package from private authenticated ...
Try replacing --index with --index-url - this is what will work for the public PyPi repository as well as PyPi compliant alternatives such ......
Read more >
PyPI packages in the Package Registry - GitLab Docs
Before you can publish to the Package Registry, you must authenticate. ... If you want pip to access your private registry, add the...
Read more >
Advanced Usage of Pipenv - Python Packaging Authority
There are some known issues with using private indexes, related to hashing. We're actively working to solve this problem. You may have great...
Read more >
Pipenv: Python Dev Workflow for Humans — pipenv 2020.6.2 ...
It automatically creates and manages a virtualenv for your projects, as well as adds/removes packages from your Pipfile as you install/uninstall packages.
Read more >
Quickstart: Store Python packages in Artifact Registry
This quickstart shows you how to set up a private Artifact Registry Python repository, upload a package, and then install the package.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found