Skip to content

Pipenv install w/ Keychain Support on Private Registry Fails to find package #5719

Description

@smittysmee

Be sure to check the existing issues (both open and closed!), and make sure you are running the latest version of Pipenv.

Check the diagnose documentation for common issues before posting! We may close your issue if it is very similar to one of them. Please be considerate, or be on your way.

Make sure to mention your debugging experience if the documented solution failed.

Issue description

While leverage Google Artifact Registry under pipenv version 2023.4.29 all is well and system validated with oauth2accesstoken as expected.

Upgrade pipenv to either version 2023.5.19 or 2023.6.2, the system is unable to find the previously found package.

Expected result

Describe what you expected.

ERROR: Could not find a version that satisfies the requirement REDACTED==3.0.2 (from versions: none)
ERROR: No matching distribution found for REDACTED==3.0.2

Actual result

When possible, provide the verbose output (--verbose), especially for locking and dependencies resolving issues.

Steps to replicate

Pipfile

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

[[source]]
url = "https://oauth2accesstoken@us-python.pkg.dev/PROJECT/REDACTED/simple/"
verify_ssl = true
name = "REDACTED"

[pipenv]
disable_pip_input = false

[packages]
some_private_lib = {version = "*", index = "REDACTED"}

[dev-packages]
pytest = "*"

Commands:

gcloud artifacts print-settings python --project=REDACTED \
    --repository=REDACTED \
    --location=us > ~/.pypirc

pip install --upgrade pip
pip install pipenv keyring keyrings.google-artifactregistry-auth --upgrade
gcloud auth application-default login
pipenv install --dev

Please run $ pipenv --support, and paste the results here. Don't put backticks (`) around it! The output already contains Markdown formatting.

If you're on macOS, run the following:

$ pipenv --support | pbcopy

If you're on Windows, run the following:

> pipenv --support | clip

If you're on Linux, run the following:

$ pipenv --support | xclip

Unable to send output due to sensitive information about the environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions