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

Environment variables in Pipfile does not resolve over private package #5033

Open
Tlaloc-Es opened this issue Apr 6, 2022 · 10 comments
Open
Labels
Category: Private PyPIs 😎 Problem relates to private PyPI usage. triage Type: Possible Bug This issue describes a possible bug in pipenv.

Comments

@Tlaloc-Es
Copy link

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

Pipenv doesnt load password over a private source

Expected result

Pipenv should put replace the password and install the packages without put the password in Pipfile.lock

Actual result

Pipfile.lock (f041c4) out of date, updating to (5f1c9b)...
Locking [dev-packages] dependencies...
Building requirements...
Resolving dependencies...
✔ Success! 
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✘ Locking Failed! 

CRITICAL:pipenv.patched.notpip._internal.resolution.resolvelib.factory:Could not find a version that satisfies the requirement data-models (from versions: none)
[ResolutionFailure]:   File "/home/user/.local/lib/python3.8/site-packages/pipenv/resolver.py", line 743, in _main
[ResolutionFailure]:       resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
[ResolutionFailure]:   File "/home/user/.local/lib/python3.8/site-packages/pipenv/resolver.py", line 704, in resolve_packages
[ResolutionFailure]:       results, resolver = resolve(
[ResolutionFailure]:   File "/home/user/.local/lib/python3.8/site-packages/pipenv/resolver.py", line 685, in resolve
[ResolutionFailure]:       return resolve_deps(
[ResolutionFailure]:   File "/home/user/.local/lib/python3.8/site-packages/pipenv/utils.py", line 1377, in resolve_deps
[ResolutionFailure]:       results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps(
[ResolutionFailure]:   File "/home/user/.local/lib/python3.8/site-packages/pipenv/utils.py", line 1106, in actually_resolve_deps
[ResolutionFailure]:       resolver.resolve()
[ResolutionFailure]:   File "/home/user/.local/lib/python3.8/site-packages/pipenv/utils.py", line 884, in resolve
[ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: No matching distribution found for data-models

Any idea about how can I solve this I follow the docs but doesnt work.

Steps to replicate

I had a similar issue,

With the following source

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

[[source]]
url = "https://${GITLAB_USER}:'${GITLAB_TOKEN}'@gitlab.com/api/v4/projects/projectId/packages/pypi/simple"
verify_ssl = true
name = "gitlab"

[packages]
data-models = {version = "*", index="gitlab"}
cassandra-driver = "~=3.25.0"

I loaded the .env with the env variables that contain USER and TOKEN, I tried token with several ways like

  • '${GITLAB_TOKEN}' - Not work
  • ${GITLAB_TOKEN} - Not work
  • $GITLAB_TOKEN - Not Work
  • the password directly - Work, but I don't want to put the password directly in the Pipfile

Provide the steps to replicate (which usually at least includes the commands and the Pipfile).


$ pipenv --support

Pipenv version: '2022.1.8'

Pipenv location: '/home/user/.local/lib/python3.8/site-packages/pipenv'

Python location: '/usr/bin/python3'

Python installations found:

  • 3.8.10: /home/user/.pyenv/versions/3.8.10/bin/python
  • 3.8.10: /usr/bin/python3
  • 3.8.10: /usr/bin/python3.8
  • 3.8.10: /bin/python3
  • 3.8.10: /bin/python3.8
  • 3.6.15: /home/user/.pyenv/versions/3.6.15/bin/python3.6
  • 3.6.0: /home/user/.pyenv/versions/3.6.0/bin/python3.6

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.8.10',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '5.13.0-40-generic',
 'platform_system': 'Linux',
 'platform_version': '#45~20.04.1-Ubuntu SMP Mon Apr 4 09:38:31 UTC 2022',
 'python_full_version': '3.8.10',
 'python_version': '3.8',
 'sys_platform': 'linux'}

System environment variables:

  • SHELL
  • SESSION_MANAGER
  • QT_ACCESSIBILITY
  • COLORTERM
  • XDG_CONFIG_DIRS
  • NVM_INC
  • XDG_MENU_PREFIX
  • TERM_PROGRAM_VERSION
  • GNOME_DESKTOP_SESSION_ID
  • GNOME_SHELL_SESSION_MODE
  • SSH_AUTH_SOCK
  • XMODIFIERS
  • DESKTOP_SESSION
  • SSH_AGENT_PID
  • GTK_MODULES
  • PWD
  • KRB5CCNAME
  • XDG_SESSION_DESKTOP
  • LOGNAME
  • XDG_SESSION_TYPE
  • GPG_AGENT_INFO
  • XAUTHORITY
  • VSCODE_GIT_ASKPASS_NODE
  • GJS_DEBUG_TOPICS
  • WINDOWPATH
  • HOME
  • USERNAME
  • IM_CONFIG_PHASE
  • LANG
  • LS_COLORS
  • XDG_CURRENT_DESKTOP
  • GIT_ASKPASS
  • INVOCATION_ID
  • MANAGERPID
  • CHROME_DESKTOP
  • GJS_DEBUG_OUTPUT
  • NVM_DIR
  • VSCODE_GIT_ASKPASS_EXTRA_ARGS
  • LESSCLOSE
  • XDG_SESSION_CLASS
  • TERM
  • LESSOPEN
  • USER
  • VSCODE_GIT_IPC_HANDLE
  • DISPLAY
  • SHLVL
  • NVM_CD_FLAGS
  • QT_IM_MODULE
  • XDG_RUNTIME_DIR
  • PYENV_ROOT
  • VSCODE_GIT_ASKPASS_MAIN
  • JOURNAL_STREAM
  • XDG_DATA_DIRS
  • GDK_BACKEND
  • PATH
  • GDMSESSION
  • ORIGINAL_XDG_CURRENT_DESKTOP
  • DBUS_SESSION_BUS_ADDRESS
  • NVM_BIN
  • GIO_LAUNCHED_DESKTOP_FILE_PID
  • GIO_LAUNCHED_DESKTOP_FILE
  • TERM_PROGRAM
  • _
  • OLDPWD
  • P9K_TTY
  • _P9K_TTY
  • ZSH
  • PAGER
  • LESS
  • LSCOLORS
  • P9K_SSH
  • NOMAD_ADDR
  • NOMAD_CLIENT_CERT
  • NOMAD_CLIENT_KEY
  • NOMAD_CACERT
  • NOMAD_TOKEN
  • CONSUL_HTTP_ADDR
  • CONSUL_HTTP_SSL
  • CONSUL_HTTP_SSL_VERIFY
  • CONSUL_CLIENT_CERT
  • CONSUL_CLIENT_KEY
  • CONSUL_CACERT
  • CONSUL_HTTP_TOKEN
  • KAFKA_BIN
  • KAFKA_CONFIG
  • GOPATH
  • PYENV_SHELL
  • PIP_DISABLE_PIP_VERSION_CHECK
  • PYTHONDONTWRITEBYTECODE
  • PIP_PYTHON_PATH
  • PYTHONFINDER_IGNORE_UNSUPPORTED
  • PIPENV_ACTIVE
  • PS1
  • PIP_SHIMS_BASE_MODULE

Pipenv–specific environment variables:

  • PIPENV_ACTIVE: 1

Debug–specific environment variables:

  • PATH: /home/user/Software/Kafka/bin:/home/user/Software/Kafka/bin:/home/user/.nvm/versions/node/v16.14.0/bin:/home/user/.poetry/bin:/home/user/.poetry/bin:/home/user/.pyenv/shims:/home/user/.pyenv/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user/.fzf/bin:/usr/local/go/bin:/home/user/go/bin:/usr/local/go/bin:/home/user/go/bin
  • SHELL: /bin/bash
  • LANG: es_ES.UTF-8
  • PWD: /home/user/Repos/data-models

Contents of Pipfile ('/home/user/Repos/data-models/Pipfile'):

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

[[source]]
url = "https://${GITLAB_USER}:'${GITLAB_TOKEN}'@gitlab.com/api/v4/projects/projectId/packages/pypi/simple"
verify_ssl = true
name = "gitlab"

[packages]
data-models = {version = "*", index="gitlab"}
cassandra-driver = "~=3.25.0"
pandas = "==1.0.3"
pyargparse = "==0.1.8"
setuptools = "~=58.0.4"
argparse = "~=1.4.0"

[dev-packages]
pipenv-setup = "*"
pytest = "==6.2.5"

[requires]
python_version = "3.8"

[scripts]
var = "echo $GITLAB_USER"

Contents of Pipfile.lock ('/home/user/Repos/-data-models/Pipfile.lock'):

{
    "_meta": {
        "hash": {
            "sha256": "1bac9dc84b6e091d766fc5b03dfc1c2bf681d727c386f5aae7d7bda1e7f041c4"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.8"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "argparse": {
            "hashes": [
                "sha256:62b089a55be1d8949cd2bc7e0df0bddb9e028faefc8c32038cc84862aefdd6e4",
                "sha256:c31647edb69fd3d465a847ea3157d37bed1f95f19760b11a47aa91c04b666314"
            ],
            "index": "pypi",
            "version": "==1.4.0"
        },
        "cassandra-driver": {
            "hashes": [
                "sha256:1d50b92b88fbc8745fea3eaaf31bbfec7ffa90528c3a08951ed6ecd2d6642d93",
                "sha256:3166d33d8c63991c349ed09a2ef31242a6eb48b588fc144f16a350e1b1335f29",
                "sha256:3287f1e1f4aea6543221d418389e0708ad44650e7e2db70daa7beab701747a82",
                "sha256:3a0bd62855cf04c81975b8bf66589d044f7d58f3b54c280cd5be27af635aecef",
                "sha256:42e7870d9f770af9707ebb790df1f729a05b5dd9dc1865ebe84d225d13b6497e",
                "sha256:5e22bd0af470e47b5a97e92116fdd6b37d1143575a0eeec2b1eabeda44d30b41",
                "sha256:66f347b6f0d208c894459e8389138b2eb07a7bc36b8dc7eea3b8ec62ca89d379",
                "sha256:7ea4cf45e9e9fe7f9cf33ed4698e0592880563c642fa2d61879a1d6789fd45f0",
                "sha256:8ad7d7c090eb1cac6110b3bfc1fd2d334ac62f415aac09350ebb8d241b7aa7ee",
                "sha256:9202da218f1f6bc5dbc3e8079e9d9f88213aca2b3397908a6850fb3179ee86b4",
                "sha256:94c12060b313c8a3ee6f6ce7293c3e99f100688c204f8c9c97877caf36287213",
                "sha256:96829a7a5b9255e6ad1eef1c2558599a3b282330cbed3755c349762756425294",
                "sha256:a11b1a7ae6f40d67f7258f162c1ddce1c6dc3e749ad4cb7f3cdb6b9bbdae5a9e",
                "sha256:c2eff4ad029fe297b89487f7c5f29bd391786fd4a4ba51197030eb986cc18f9c",
                "sha256:cc8431973235783a910e8e3864bdd2815194914e937ce6408d66d7a1c07eee78",
                "sha256:ce452de8ed0440f75979f2a904b4c69181e422d08b6fd55a2b707817d311f3c1",
                "sha256:cfb8f79268e58e9569f41457b670757add6a80b6325a848a6a59a1039f31022c",
                "sha256:e37dd75fc2f3223b05b80aa72cc8a4b64a5e950a9ff9703ebcc20b134a6fd0eb",
                "sha256:f3e80235d3949eadd273f0fc36ca4b9e7ed657007336f62b2e7e10321e322bfb",
                "sha256:f80101afe711f5648c267a4657df6f5b1d77a317c985757a55689ed741c972e6"
            ],
            "index": "pypi",
            "version": "==3.25.0"
        },
        "click": {
            "hashes": [
                "sha256:24e1a4a9ec5bf6299411369b208c1df2188d9eb8d916302fe6bf03faed227f1e",
                "sha256:479707fe14d9ec9a0757618b7a100a0ae4c4e236fac5b7f80ca68028141a1a72"
            ],
            "markers": "python_version >= '3.7'",
            "version": "==8.1.2"
        },
        "geomet": {
            "hashes": [
                "sha256:87ae0fc42e532b9e98969c0bbf895a5e0b2bb4f6f775cf51a74e6482f1f35c2b",
                "sha256:91d754f7c298cbfcabd3befdb69c641c27fe75e808b27aa55028605761d17e95",
                "sha256:a41a1e336b381416d6cbed7f1745c848e91defaa4d4c1bdc1312732e46ffad2b"
            ],
            "markers": "python_version >= '2.7' and python_version != '3.3' and python_version < '4'",
            "version": "==0.2.1.post1"
        },
        "numpy": {
            "hashes": [
                "sha256:07a8c89a04997625236c5ecb7afe35a02af3896c8aa01890a849913a2309c676",
                "sha256:08d9b008d0156c70dc392bb3ab3abb6e7a711383c3247b410b39962263576cd4",
                "sha256:201b4d0552831f7250a08d3b38de0d989d6f6e4658b709a02a73c524ccc6ffce",
                "sha256:2c10a93606e0b4b95c9b04b77dc349b398fdfbda382d2a39ba5a822f669a0123",
                "sha256:3ca688e1b9b95d80250bca34b11a05e389b1420d00e87a0d12dc45f131f704a1",
                "sha256:48a3aecd3b997bf452a2dedb11f4e79bc5bfd21a1d4cc760e703c31d57c84b3e",
                "sha256:568dfd16224abddafb1cbcce2ff14f522abe037268514dd7e42c6776a1c3f8e5",
                "sha256:5bfb1bb598e8229c2d5d48db1860bcf4311337864ea3efdbe1171fb0c5da515d",
                "sha256:639b54cdf6aa4f82fe37ebf70401bbb74b8508fddcf4797f9fe59615b8c5813a",
                "sha256:8251ed96f38b47b4295b1ae51631de7ffa8260b5b087808ef09a39a9d66c97ab",
                "sha256:92bfa69cfbdf7dfc3040978ad09a48091143cffb778ec3b03fa170c494118d75",
                "sha256:97098b95aa4e418529099c26558eeb8486e66bd1e53a6b606d684d0c3616b168",
                "sha256:a3bae1a2ed00e90b3ba5f7bd0a7c7999b55d609e0c54ceb2b076a25e345fa9f4",
                "sha256:c34ea7e9d13a70bf2ab64a2532fe149a9aced424cd05a2c4ba662fd989e3e45f",
                "sha256:dbc7601a3b7472d559dc7b933b18b4b66f9aa7452c120e87dfb33d02008c8a18",
                "sha256:e7927a589df200c5e23c57970bafbd0cd322459aa7b1ff73b7c2e84d6e3eae62",
                "sha256:f8c1f39caad2c896bc0018f699882b345b2a63708008be29b1f355ebf6f933fe",
                "sha256:f950f8845b480cffe522913d35567e29dd381b0dc7e4ce6a4a9f9156417d2430",
                "sha256:fade0d4f4d292b6f39951b6836d7a3c7ef5b2347f3c420cd9820a1d90d794802",
                "sha256:fdf3c08bce27132395d3c3ba1503cac12e17282358cb4bddc25cc46b0aca07aa"
            ],
            "markers": "python_version >= '3.8'",
            "version": "==1.22.3"
        },
        "pandas": {
            "hashes": [
                "sha256:07c1b58936b80eafdfe694ce964ac21567b80a48d972879a359b3ebb2ea76835",
                "sha256:0ebe327fb088df4d06145227a4aa0998e4f80a9e6aed4b61c1f303bdfdf7c722",
                "sha256:11c7cb654cd3a0e9c54d81761b5920cdc86b373510d829461d8f2ed6d5905266",
                "sha256:12f492dd840e9db1688126216706aa2d1fcd3f4df68a195f9479272d50054645",
                "sha256:167a1315367cea6ec6a5e11e791d9604f8e03f95b57ad227409de35cf850c9c5",
                "sha256:1a7c56f1df8d5ad8571fa251b864231f26b47b59cbe41aa5c0983d17dbb7a8e4",
                "sha256:1fa4bae1a6784aa550a1c9e168422798104a85bf9c77a1063ea77ee6f8452e3a",
                "sha256:32f42e322fb903d0e189a4c10b75ba70d90958cc4f66a1781ed027f1a1d14586",
                "sha256:387dc7b3c0424327fe3218f81e05fc27832772a5dffbed385013161be58df90b",
                "sha256:6597df07ea361231e60c00692d8a8099b519ed741c04e65821e632bc9ccb924c",
                "sha256:743bba36e99d4440403beb45a6f4f3a667c090c00394c176092b0b910666189b",
                "sha256:858a0d890d957ae62338624e4aeaf1de436dba2c2c0772570a686eaca8b4fc85",
                "sha256:863c3e4b7ae550749a0bb77fa22e601a36df9d2905afef34a6965bed092ba9e5",
                "sha256:a210c91a02ec5ff05617a298ad6f137b9f6f5771bf31f2d6b6367d7f71486639",
                "sha256:ca84a44cf727f211752e91eab2d1c6c1ab0f0540d5636a8382a3af428542826e",
                "sha256:d234bcf669e8b4d6cbcd99e3ce7a8918414520aeb113e2a81aeb02d0a533d7f7"
            ],
            "index": "pypi",
            "version": "==1.0.3"
        },
        "pyargparse": {
            "hashes": [
                "sha256:5b3cdfcc4bad71b47c482fe039ef9e6b02dbafee1f1babff29cbe17c8cc4132e",
                "sha256:b26ac4c01dcd48cb8452f468a9556ad419638b55e35ebd885b8a015649d2cc81"
            ],
            "index": "pypi",
            "version": "==0.1.8"
        },
        "python-dateutil": {
            "hashes": [
                "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86",
                "sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
            "version": "==2.8.2"
        },
        "pytz": {
            "hashes": [
                "sha256:1e760e2fe6a8163bc0b3d9a19c4f84342afa0a2affebfaa84b01b978a02ecaa7",
                "sha256:e68985985296d9a66a881eb3193b0906246245294a881e7c8afe623866ac6a5c"
            ],
            "version": "==2022.1"
        },
        "pyyaml": {
            "hashes": [
                "sha256:0283c35a6a9fbf047493e3a0ce8d79ef5030852c51e9d911a27badfde0605293",
                "sha256:055d937d65826939cb044fc8c9b08889e8c743fdc6a32b33e2390f66013e449b",
                "sha256:07751360502caac1c067a8132d150cf3d61339af5691fe9e87803040dbc5db57",
                "sha256:0b4624f379dab24d3725ffde76559cff63d9ec94e1736b556dacdfebe5ab6d4b",
                "sha256:0ce82d761c532fe4ec3f87fc45688bdd3a4c1dc5e0b4a19814b9009a29baefd4",
                "sha256:1e4747bc279b4f613a09eb64bba2ba602d8a6664c6ce6396a4d0cd413a50ce07",
                "sha256:213c60cd50106436cc818accf5baa1aba61c0189ff610f64f4a3e8c6726218ba",
                "sha256:231710d57adfd809ef5d34183b8ed1eeae3f76459c18fb4a0b373ad56bedcdd9",
                "sha256:277a0ef2981ca40581a47093e9e2d13b3f1fbbeffae064c1d21bfceba2030287",
                "sha256:2cd5df3de48857ed0544b34e2d40e9fac445930039f3cfe4bcc592a1f836d513",
                "sha256:40527857252b61eacd1d9af500c3337ba8deb8fc298940291486c465c8b46ec0",
                "sha256:473f9edb243cb1935ab5a084eb238d842fb8f404ed2193a915d1784b5a6b5fc0",
                "sha256:48c346915c114f5fdb3ead70312bd042a953a8ce5c7106d5bfb1a5254e47da92",
                "sha256:50602afada6d6cbfad699b0c7bb50d5ccffa7e46a3d738092afddc1f9758427f",
                "sha256:68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2",
                "sha256:77f396e6ef4c73fdc33a9157446466f1cff553d979bd00ecb64385760c6babdc",
                "sha256:819b3830a1543db06c4d4b865e70ded25be52a2e0631ccd2f6a47a2822f2fd7c",
                "sha256:897b80890765f037df3403d22bab41627ca8811ae55e9a722fd0392850ec4d86",
                "sha256:98c4d36e99714e55cfbaaee6dd5badbc9a1ec339ebfc3b1f52e293aee6bb71a4",
                "sha256:9df7ed3b3d2e0ecfe09e14741b857df43adb5a3ddadc919a2d94fbdf78fea53c",
                "sha256:9fa600030013c4de8165339db93d182b9431076eb98eb40ee068700c9c813e34",
                "sha256:a80a78046a72361de73f8f395f1f1e49f956c6be882eed58505a15f3e430962b",
                "sha256:b3d267842bf12586ba6c734f89d1f5b871df0273157918b0ccefa29deb05c21c",
                "sha256:b5b9eccad747aabaaffbc6064800670f0c297e52c12754eb1d976c57e4f74dcb",
                "sha256:c5687b8d43cf58545ade1fe3e055f70eac7a5a1a0bf42824308d868289a95737",
                "sha256:cba8c411ef271aa037d7357a2bc8f9ee8b58b9965831d9e51baf703280dc73d3",
                "sha256:d15a181d1ecd0d4270dc32edb46f7cb7733c7c508857278d3d378d14d606db2d",
                "sha256:d4db7c7aef085872ef65a8fd7d6d09a14ae91f691dec3e87ee5ee0539d516f53",
                "sha256:d4eccecf9adf6fbcc6861a38015c2a64f38b9d94838ac1810a9023a0609e1b78",
                "sha256:d67d839ede4ed1b28a4e8909735fc992a923cdb84e618544973d7dfc71540803",
                "sha256:daf496c58a8c52083df09b80c860005194014c3698698d1a57cbcfa182142a3a",
                "sha256:e61ceaab6f49fb8bdfaa0f92c4b57bcfbea54c09277b1b4f7ac376bfb7a7c174",
                "sha256:f84fbc98b019fef2ee9a1cb3ce93e3187a6df0b2538a651bfb890254ba9f90b5"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==6.0"
        },
        "setuptools": {
            "hashes": [
                "sha256:69cc739bc2662098a68a9bc575cd974a57969e70c1d58ade89d104ab73d79770",
                "sha256:f10059f0152e0b7fb6b2edd77bcb1ecd4c9ed7048a826eb2d79f72fd2e6e237b"
            ],
            "index": "pypi",
            "version": "==58.0.4"
        },
        "six": {
            "hashes": [
                "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926",
                "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
            "version": "==1.16.0"
        }
    },
    "develop": {
        "attrs": {
            "hashes": [
                "sha256:2d27e3784d7a565d36ab851fe94887c5eccd6a463168875832a1be79c82828b4",
                "sha256:626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'",
            "version": "==21.4.0"
        },
        "cached-property": {
            "hashes": [
                "sha256:9fa5755838eecbb2d234c3aa390bd80fbd3ac6b6869109bfc1b499f7bd89a130",
                "sha256:df4f613cf7ad9a588cc381aaf4a512d26265ecebd5eb9e1ba12f1319eb85a6a0"
            ],
            "version": "==1.5.2"
        },
        "cerberus": {
            "hashes": [
                "sha256:d1b21b3954b2498d9a79edf16b3170a3ac1021df88d197dc2ce5928ba519237c"
            ],
            "version": "==1.3.4"
        },
        "certifi": {
            "hashes": [
                "sha256:78884e7c1d4b00ce3cea67b44566851c4343c120abd683433ce934a68ea58872",
                "sha256:d62a0163eb4c2344ac042ab2bdf75399a71a2d8c7d47eac2e2ee91b9d6339569"
            ],
            "version": "==2021.10.8"
        },
        "chardet": {
            "hashes": [
                "sha256:0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa",
                "sha256:f864054d66fd9118f2e67044ac8981a54775ec5b67aed0441892edb553d21da5"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'",
            "version": "==4.0.0"
        },
        "charset-normalizer": {
            "hashes": [
                "sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597",
                "sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df"
            ],
            "markers": "python_version >= '3'",
            "version": "==2.0.12"
        },
        "colorama": {
            "hashes": [
                "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b",
                "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'",
            "version": "==0.4.4"
        },
        "distlib": {
            "hashes": [
                "sha256:6564fe0a8f51e734df6333d08b8b94d4ea8ee6b99b5ed50613f731fd4089f34b",
                "sha256:e4b58818180336dc9c529bfb9a0b58728ffc09ad92027a3f30b7cd91e3458579"
            ],
            "version": "==0.3.4"
        },
        "idna": {
            "hashes": [
                "sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff",
                "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"
            ],
            "markers": "python_version >= '3'",
            "version": "==3.3"
        },
        "iniconfig": {
            "hashes": [
                "sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3",
                "sha256:bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32"
            ],
            "version": "==1.1.1"
        },
        "orderedmultidict": {
            "hashes": [
                "sha256:04070bbb5e87291cc9bfa51df413677faf2141c73c61d2a5f7b26bea3cd882ad",
                "sha256:43c839a17ee3cdd62234c47deca1a8508a3f2ca1d0678a3bf791c87cf84adbf3"
            ],
            "version": "==1.0.1"
        },
        "packaging": {
            "hashes": [
                "sha256:5b327ac1320dc863dca72f4514ecc086f31186744b84a230374cc1fd776feae5",
                "sha256:67714da7f7bc052e064859c05c595155bd1ee9f69f76557e21f051443c20947a"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
            "version": "==20.9"
        },
        "pep517": {
            "hashes": [
                "sha256:931378d93d11b298cf511dd634cf5ea4cb249a28ef84160b3247ee9afb4e8ab0",
                "sha256:dd884c326898e2c6e11f9e0b64940606a93eb10ea022a2e067959f3a110cf161"
            ],
            "version": "==0.12.0"
        },
        "pip": {
            "hashes": [
                "sha256:b3a9de2c6ef801e9247d1527a4b16f92f2cc141cd1489f3fffaf6a9e96729764",
                "sha256:c6aca0f2f081363f689f041d90dab2a07a9a07fb840284db2218117a52da800b"
            ],
            "markers": "python_version >= '3.7'",
            "version": "==22.0.4"
        },
        "pip-shims": {
            "hashes": [
                "sha256:116466de9f6bd9a5799cf5f16fe383cd07a45073f2f7e3390af0b73ed3675317",
                "sha256:de39106ae4e43f3b7c98e4edf74efb71da308c3ae41b33dc484ba7965bcc1a52"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==0.7.0"
        },
        "pipenv-setup": {
            "hashes": [
                "sha256:0def7ec3363f58b38a43dc59b2078fcee67b47301fd51a41b8e34e6f79812b1a",
                "sha256:6ceda7145a3088494d8ca68fded4b0473022dc62eb786a021c137632c44298b5"
            ],
            "index": "pypi",
            "version": "==3.2.0"
        },
        "pipfile": {
            "hashes": [
                "sha256:f7d9f15de8b660986557eb3cc5391aa1a16207ac41bc378d03f414762d36c984"
            ],
            "version": "==0.0.2"
        },
        "platformdirs": {
            "hashes": [
                "sha256:7535e70dfa32e84d4b34996ea99c5e432fa29a708d0f4e394bbcb2a8faa4f16d",
                "sha256:bcae7cab893c2d310a711b70b24efb93334febe65f8de776ee320b517471e227"
            ],
            "markers": "python_version >= '3.7'",
            "version": "==2.5.1"
        },
        "plette": {
            "extras": [
                "validation"
            ],
            "hashes": [
                "sha256:46402c03e36d6eadddad2a5125990e322dd74f98160c8f2dcd832b2291858a26",
                "sha256:d6c9b96981b347bddd333910b753b6091a2c1eb2ef85bb373b4a67c9d91dca16"
            ],
            "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'",
            "version": "==0.2.3"
        },
        "pluggy": {
            "hashes": [
                "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159",
                "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==1.0.0"
        },
        "py": {
            "hashes": [
                "sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719",
                "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'",
            "version": "==1.11.0"
        },
        "pyparsing": {
            "hashes": [
                "sha256:18ee9022775d270c55187733956460083db60b37d0d0fb357445f3094eed3eea",
                "sha256:a6c06a88f252e6c322f65faf8f418b16213b51bdfaece0524c1c1bc30c63c484"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==3.0.7"
        },
        "pytest": {
            "hashes": [
                "sha256:131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89",
                "sha256:7310f8d27bc79ced999e760ca304d69f6ba6c6649c0b60fb0e04a4a77cacc134"
            ],
            "index": "pypi",
            "version": "==6.2.5"
        },
        "python-dateutil": {
            "hashes": [
                "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86",
                "sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
            "version": "==2.8.2"
        },
        "requests": {
            "hashes": [
                "sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61",
                "sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'",
            "version": "==2.27.1"
        },
        "requirementslib": {
            "hashes": [
                "sha256:7986c9797df08e68f6dfbb6c6e948b1e108363ef70da82cb21fe219a965b2859",
                "sha256:b7d62aaa5177b85ba3cfa0ef6d0ebdf405787dd0660f38b2b6401f7c32e6529c"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==1.6.1"
        },
        "setuptools": {
            "hashes": [
                "sha256:69cc739bc2662098a68a9bc575cd974a57969e70c1d58ade89d104ab73d79770",
                "sha256:f10059f0152e0b7fb6b2edd77bcb1ecd4c9ed7048a826eb2d79f72fd2e6e237b"
            ],
            "index": "pypi",
            "version": "==58.0.4"
        },
        "six": {
            "hashes": [
                "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926",
                "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
            "version": "==1.16.0"
        },
        "toml": {
            "hashes": [
                "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b",
                "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"
            ],
            "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'",
            "version": "==0.10.2"
        },
        "tomli": {
            "hashes": [
                "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc",
                "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==2.0.1"
        },
        "tomlkit": {
            "hashes": [
                "sha256:3c517894eadef53e9072d343d37e4427b8f0b6200a70b7c9a19b2ebd1f53b951",
                "sha256:3eba517439dcb2f84cf39f4f85fd2c3398309823a3c75ac3e73003638daf7915"
            ],
            "markers": "python_version >= '3.6' and python_version < '4'",
            "version": "==0.10.1"
        },
        "urllib3": {
            "hashes": [
                "sha256:44ece4d53fb1706f667c9bd1c648f5469a2ec925fcf3a776667042d645472c14",
                "sha256:aabaf16477806a5e1dd19aa41f8c2b7950dd3c746362d7e3223dbe6de6ac448e"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'",
            "version": "==1.26.9"
        },
        "vistir": {
            "hashes": [
                "sha256:a37079cdbd85d31a41cdd18457fe521e15ec08b255811e81aa061fd5f48a20fb",
                "sha256:eff1d19ef50c703a329ed294e5ec0b0fbb35b96c1b3ee6dcdb266dddbe1e935a"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
            "version": "==0.5.2"
        },
        "wheel": {
            "hashes": [
                "sha256:4bdcd7d840138086126cd09254dc6195fb4fc6f01c050a1d7236f2630db1d22a",
                "sha256:e9a504e793efbca1b8e0e9cb979a249cf4a0a7b5b8c9e8b65a5e39d49529c1c4"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'",
            "version": "==0.37.1"
        }
    }
}
@matteius matteius added Type: Possible Bug This issue describes a possible bug in pipenv. Category: Private PyPIs 😎 Problem relates to private PyPI usage. triage labels Apr 6, 2022
@Tlaloc-Es
Copy link
Author

If I merge the values of the two env variable in to one, works for example

GITLAB_AUTH=user:password

[[source]]
url = "https://${GITLAB_AUTH}@gitlab.com/api/v4/projects/projectId/packages/pypi/simple"
verify_ssl = true
name = "gitlab"

works

@noudin-ledger
Copy link

Confirmed on my side with Gemfury Pypi private repos :)

@noudin-ledger
Copy link

My bad it works on the development version (main branch on github) but and on v2022.4.8 but not on the former version I had.

@GroovyCarrot
Copy link

this is fixed for me by reverting to 2022.1.8 as #4873 (comment)

@matteius
Copy link
Member

matteius commented May 19, 2022

Your issue with the newer version most likely stems from package index restrictions to enhance the security of pipenv. There have been other related discussions that talk about how to pin your index or put the private index first in the Pipfile. Please see: #5053 (comment)

EDIT: Unless I misunderstand that you are actually seeing a regression related to environment variables only?

@matteius
Copy link
Member

@Tlaloc-Es I just tried an example, granted its not 1:1 because my example doesn't have auth, but I used an environment variable as the domain and it locked fine, which leads me to believe it should work for you if you do: url = "https://${GITLAB_USER}:${GITLAB_TOKEN}@gitlab.com/api/v4/projects/projectId/packages/pypi/simple"

Assuming that the rest of the URL is correct and those environment variables are set properly -- is the URL really have projectId in it?

matte@LAPTOP-N5VSGIBD MINGW64 ~/Projects/pipenv-triage/pytorch
$ export PYTORCH=download.pytorch.org

matte@LAPTOP-N5VSGIBD MINGW64 ~/Projects/pipenv-triage/pytorch
$ vim Pipfile

matte@LAPTOP-N5VSGIBD MINGW64 ~/Projects/pipenv-triage/pytorch
$ pipenv lock -v
Locking [packages] dependencies...
           Building requirements...
Resolving dependencies...
Reporter.starting()
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting()
Reporter.adding_requirement(SpecifierRequirement('requests'), None)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('requests'), None)
Reporter.adding_requirement(SpecifierRequirement('torch'), None)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('torch'), None)
Reporter.starting_round(0)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(0)
Reporter.adding_requirement(SpecifierRequirement('certifi>=2017.4.17'), LinkCandidate('https://files.pythonhosted.org/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.2
8.1-py3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.7, <4)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('certifi>=2017.4.17'), LinkCandidate('https://files.pythonhosted.org/packages/ca/91/6d9b8cca
cd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.28.1-py3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.7, <4)'))
Reporter.adding_requirement(SpecifierRequirement('charset-normalizer<3,>=2'), LinkCandidate('https://files.pythonhosted.org/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/reques
ts-2.28.1-py3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.7, <4)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('charset-normalizer<3,>=2'), LinkCandidate('https://files.pythonhosted.org/packages/ca/91/6d
9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.28.1-py3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.7, <4)'))
Reporter.adding_requirement(SpecifierRequirement('urllib3<1.27,>=1.21.1'), LinkCandidate('https://files.pythonhosted.org/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-
2.28.1-py3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.7, <4)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('urllib3<1.27,>=1.21.1'), LinkCandidate('https://files.pythonhosted.org/packages/ca/91/6d9b8
ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.28.1-py3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.7, <4)'))
Reporter.adding_requirement(SpecifierRequirement('idna<4,>=2.5'), LinkCandidate('https://files.pythonhosted.org/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.28.1-py
3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.7, <4)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('idna<4,>=2.5'), LinkCandidate('https://files.pythonhosted.org/packages/ca/91/6d9b8ccacd0412
c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.28.1-py3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.7, <4)'))
Reporter.pinning(LinkCandidate('https://files.pythonhosted.org/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.28.1-py3-none-any.whl (from https://pypi.org/simple/requ
ests/) (requires-python:>=3.7, <4)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandidate('https://files.pythonhosted.org/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/re
quests-2.28.1-py3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.7, <4)'))
Reporter.ending_round(0, state)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending_round(0, state)
Reporter.starting_round(1)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(1)
Reporter.adding_requirement(SpecifierRequirement('typing-extensions'), LinkCandidate('https://download.pytorch.org/whl/cu111/torch-1.10.2%2Bcu111-cp38-cp38-win_amd64.whl (from https://download.pytorch.org/w
hl/cu111/torch/)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.adding_requirement(SpecifierRequirement('typing-extensions'), LinkCandidate('https://download.pytorch.org/whl/cu111/torch-1.10.2%2Bc
u111-cp38-cp38-win_amd64.whl (from https://download.pytorch.org/whl/cu111/torch/)'))
Reporter.pinning(LinkCandidate('https://download.pytorch.org/whl/cu111/torch-1.10.2%2Bcu111-cp38-cp38-win_amd64.whl (from https://download.pytorch.org/whl/cu111/torch/)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandidate('https://download.pytorch.org/whl/cu111/torch-1.10.2%2Bcu111-cp38-cp38-win_amd64.whl (from https://download.py
torch.org/whl/cu111/torch/)'))
Reporter.ending_round(1, state)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending_round(1, state)
Reporter.starting_round(2)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(2)
Reporter.pinning(LinkCandidate('https://files.pythonhosted.org/packages/e9/06/d3d367b7af6305b16f0d28ae2aaeb86154fa91f144f036c2d5002a5a202b/certifi-2022.6.15-py3-none-any.whl (from https://pypi.org/simple/ce
rtifi/) (requires-python:>=3.6)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandidate('https://files.pythonhosted.org/packages/e9/06/d3d367b7af6305b16f0d28ae2aaeb86154fa91f144f036c2d5002a5a202b/ce
rtifi-2022.6.15-py3-none-any.whl (from https://pypi.org/simple/certifi/) (requires-python:>=3.6)'))
Reporter.ending_round(2, state)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending_round(2, state)
Reporter.starting_round(3)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(3)
Reporter.pinning(LinkCandidate('https://files.pythonhosted.org/packages/db/51/a507c856293ab05cdc1db77ff4bc1268ddd39f29e7dc4919aa497f0adbec/charset_normalizer-2.1.1-py3-none-any.whl (from https://pypi.org/si
mple/charset-normalizer/) (requires-python:>=3.6.0)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandidate('https://files.pythonhosted.org/packages/db/51/a507c856293ab05cdc1db77ff4bc1268ddd39f29e7dc4919aa497f0adbec/ch
arset_normalizer-2.1.1-py3-none-any.whl (from https://pypi.org/simple/charset-normalizer/) (requires-python:>=3.6.0)'))
Reporter.ending_round(3, state)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending_round(3, state)
Reporter.starting_round(4)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(4)
Reporter.pinning(LinkCandidate('https://files.pythonhosted.org/packages/04/a2/d918dcd22354d8958fe113e1a3630137e0fc8b44859ade3063982eacd2a4/idna-3.3-py3-none-any.whl (from https://pypi.org/simple/idna/) (req
uires-python:>=3.5)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandidate('https://files.pythonhosted.org/packages/04/a2/d918dcd22354d8958fe113e1a3630137e0fc8b44859ade3063982eacd2a4/id
na-3.3-py3-none-any.whl (from https://pypi.org/simple/idna/) (requires-python:>=3.5)'))
Reporter.ending_round(4, state)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending_round(4, state)
Reporter.starting_round(5)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(5)
Reporter.pinning(LinkCandidate('https://files.pythonhosted.org/packages/6f/de/5be2e3eed8426f871b170663333a0f627fc2924cc386cd41be065e7ea870/urllib3-1.26.12-py2.py3-none-any.whl (from https://pypi.org/simple/
urllib3/) (requires-python:>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandidate('https://files.pythonhosted.org/packages/6f/de/5be2e3eed8426f871b170663333a0f627fc2924cc386cd41be065e7ea870/ur
llib3-1.26.12-py2.py3-none-any.whl (from https://pypi.org/simple/urllib3/) (requires-python:>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4)'))
Reporter.ending_round(5, state)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending_round(5, state)
Reporter.starting_round(6)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(6)
Reporter.pinning(LinkCandidate('https://files.pythonhosted.org/packages/ed/d6/2afc375a8d55b8be879d6b4986d4f69f01115e795e36827fd3a40166028b/typing_extensions-4.3.0-py3-none-any.whl (from https://pypi.org/sim
ple/typing-extensions/) (requires-python:>=3.7)'))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.pinning(LinkCandidate('https://files.pythonhosted.org/packages/ed/d6/2afc375a8d55b8be879d6b4986d4f69f01115e795e36827fd3a40166028b/ty
ping_extensions-4.3.0-py3-none-any.whl (from https://pypi.org/simple/typing-extensions/) (requires-python:>=3.7)'))
Reporter.ending_round(6, state)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending_round(6, state)
Reporter.starting_round(7)
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.starting_round(7)
Reporter.ending(State(mapping=OrderedDict([('requests', LinkCandidate('https://files.pythonhosted.org/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.28.1-py3-none-any
.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.7, <4)')), ('torch', LinkCandidate('https://download.pytorch.org/whl/cu111/torch-1.10.2%2Bcu111-cp38-cp38-win_amd64.whl (from https://downl
oad.pytorch.org/whl/cu111/torch/)')), ('certifi', LinkCandidate('https://files.pythonhosted.org/packages/e9/06/d3d367b7af6305b16f0d28ae2aaeb86154fa91f144f036c2d5002a5a202b/certifi-2022.6.15-py3-none-any.whl
 (from https://pypi.org/simple/certifi/) (requires-python:>=3.6)')), ('charset-normalizer', LinkCandidate('https://files.pythonhosted.org/packages/db/51/a507c856293ab05cdc1db77ff4bc1268ddd39f29e7dc4919aa497
f0adbec/charset_normalizer-2.1.1-py3-none-any.whl (from https://pypi.org/simple/charset-normalizer/) (requires-python:>=3.6.0)')), ('idna', LinkCandidate('https://files.pythonhosted.org/packages/04/a2/d918d
cd22354d8958fe113e1a3630137e0fc8b44859ade3063982eacd2a4/idna-3.3-py3-none-any.whl (from https://pypi.org/simple/idna/) (requires-python:>=3.5)')), ('urllib3', LinkCandidate('https://files.pythonhosted.org/p
ackages/6f/de/5be2e3eed8426f871b170663333a0f627fc2924cc386cd41be065e7ea870/urllib3-1.26.12-py2.py3-none-any.whl (from https://pypi.org/simple/urllib3/) (requires-python:>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3
.3.*, !=3.4.*, !=3.5.*, <4)')), ('typing-extensions', LinkCandidate('https://files.pythonhosted.org/packages/ed/d6/2afc375a8d55b8be879d6b4986d4f69f01115e795e36827fd3a40166028b/typing_extensions-4.3.0-py3-no
ne-any.whl (from https://pypi.org/simple/typing-extensions/) (requires-python:>=3.7)'))]), criteria={'requests': Criterion((SpecifierRequirement('requests'), via=None)), 'torch': Criterion((SpecifierRequire
ment('torch'), via=None)), 'certifi': Criterion((SpecifierRequirement('certifi>=2017.4.17'), via=LinkCandidate('https://files.pythonhosted.org/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f
618b6f8a1b42/requests-2.28.1-py3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.7, <4)'))), 'charset-normalizer': Criterion((SpecifierRequirement('charset-normalizer<3,>=2'), via
=LinkCandidate('https://files.pythonhosted.org/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.28.1-py3-none-any.whl (from https://pypi.org/simple/requests/) (requires
-python:>=3.7, <4)'))), 'urllib3': Criterion((SpecifierRequirement('urllib3<1.27,>=1.21.1'), via=LinkCandidate('https://files.pythonhosted.org/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f
618b6f8a1b42/requests-2.28.1-py3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.7, <4)'))), 'idna': Criterion((SpecifierRequirement('idna<4,>=2.5'), via=LinkCandidate('https://fi
les.pythonhosted.org/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.28.1-py3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.7, <4)'))), 't
yping-extensions': Criterion((SpecifierRequirement('typing-extensions'), via=LinkCandidate('https://download.pytorch.org/whl/cu111/torch-1.10.2%2Bcu111-cp38-cp38-win_amd64.whl (from https://download.pytorch
.org/whl/cu111/torch/)')))}, backtrack_causes=[]))
INFO:pipenv.patched.pip._internal.resolution.resolvelib.reporter:Reporter.ending(State(mapping=OrderedDict([('requests', LinkCandidate('https://files.pythonhosted.org/packages/ca/91/6d9b8ccacd0412c08820f72c
ebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.28.1-py3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.7, <4)')), ('torch', LinkCandidate('https://download.pytorch.org/whl/cu111
/torch-1.10.2%2Bcu111-cp38-cp38-win_amd64.whl (from https://download.pytorch.org/whl/cu111/torch/)')), ('certifi', LinkCandidate('https://files.pythonhosted.org/packages/e9/06/d3d367b7af6305b16f0d28ae2aaeb8
6154fa91f144f036c2d5002a5a202b/certifi-2022.6.15-py3-none-any.whl (from https://pypi.org/simple/certifi/) (requires-python:>=3.6)')), ('charset-normalizer', LinkCandidate('https://files.pythonhosted.org/pac
kages/db/51/a507c856293ab05cdc1db77ff4bc1268ddd39f29e7dc4919aa497f0adbec/charset_normalizer-2.1.1-py3-none-any.whl (from https://pypi.org/simple/charset-normalizer/) (requires-python:>=3.6.0)')), ('idna', L
inkCandidate('https://files.pythonhosted.org/packages/04/a2/d918dcd22354d8958fe113e1a3630137e0fc8b44859ade3063982eacd2a4/idna-3.3-py3-none-any.whl (from https://pypi.org/simple/idna/) (requires-python:>=3.5
)')), ('urllib3', LinkCandidate('https://files.pythonhosted.org/packages/6f/de/5be2e3eed8426f871b170663333a0f627fc2924cc386cd41be065e7ea870/urllib3-1.26.12-py2.py3-none-any.whl (from https://pypi.org/simple
/urllib3/) (requires-python:>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4)')), ('typing-extensions', LinkCandidate('https://files.pythonhosted.org/packages/ed/d6/2afc375a8d55b8be879d6b4986
d4f69f01115e795e36827fd3a40166028b/typing_extensions-4.3.0-py3-none-any.whl (from https://pypi.org/simple/typing-extensions/) (requires-python:>=3.7)'))]), criteria={'requests': Criterion((SpecifierRequirem
ent('requests'), via=None)), 'torch': Criterion((SpecifierRequirement('torch'), via=None)), 'certifi': Criterion((SpecifierRequirement('certifi>=2017.4.17'), via=LinkCandidate('https://files.pythonhosted.or
g/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.28.1-py3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.7, <4)'))), 'charset-normalizer':
 Criterion((SpecifierRequirement('charset-normalizer<3,>=2'), via=LinkCandidate('https://files.pythonhosted.org/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.28.1-py
3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.7, <4)'))), 'urllib3': Criterion((SpecifierRequirement('urllib3<1.27,>=1.21.1'), via=LinkCandidate('https://files.pythonhosted.or
g/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.28.1-py3-none-any.whl (from https://pypi.org/simple/requests/) (requires-python:>=3.7, <4)'))), 'idna': Criterion((Sp
ecifierRequirement('idna<4,>=2.5'), via=LinkCandidate('https://files.pythonhosted.org/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.28.1-py3-none-any.whl (from https
://pypi.org/simple/requests/) (requires-python:>=3.7, <4)'))), 'typing-extensions': Criterion((SpecifierRequirement('typing-extensions'), via=LinkCandidate('https://download.pytorch.org/whl/cu111/torch-1.10
.2%2Bcu111-cp38-cp38-win_amd64.whl (from https://download.pytorch.org/whl/cu111/torch/)')))}, backtrack_causes=[]))
[==  ] Locking...{'torch': 'downloadpytorch', 'requests': 'pypi'}

[{'url': 'https://pypi.org/simple', 'verify_ssl': True, 'name': 'pypi'}, {'url': 'https://download.pytorch.org/whl/cu111', 'verify_ssl': True, 'name': 'downloadpytorch'}, {'url': 'https://download.pytorch.o
rg/whl/cu113', 'verify_ssl': True, 'name': 'downloadpytorch-48'}]
Success!
Locking [dev-packages] dependencies...
Updated Pipfile.lock (2be9a5)!

matte@LAPTOP-N5VSGIBD MINGW64 ~/Projects/pipenv-triage/pytorch
$ cat Pipfile
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[[source]]
url = "https://${PYTORCH}/whl/cu111"
verify_ssl = true
name = "downloadpytorch"

[[source]]
url = "https://${PYTORCH}/whl/cu113"
verify_ssl = true
name = "downloadpytorch-48"

[packages]
requests = "*"
torch = {version = "*", index = "downloadpytorch"}

[dev-packages]

[requires]
python_version = "3.8"

@matteius
Copy link
Member

Any update since my last comment? I think this is probably resolved but I would like some confirmation that this is working with the variable style ${VAR_NAME} and if you agree, we can close out the issue.

@DilLip-Chowdary-Codes
Copy link

I've tried the format given in pipenv

[[source]]
url = "${CODEARTIFACT_PYPI_ENDPOINT}"
verify_ssl = true
name = "aws_codeartifact"

Getting the below error:

[pipenv.exceptions.InstallError]: Looking in indexes: $CODEARTIFACT_PYPI_ENDPOINT, https://pypi.python.org/simple
[pipenv.exceptions.InstallError]: WARNING: The index url "$CODEARTIFACT_PYPI_ENDPOINT" seems invalid, please provide a scheme.
[pipenv.exceptions.InstallError]: WARNING: Location '$CODEARTIFACT_PYPI_ENDPOINT/my-package/' is ignored: it is either a non-existing path or lacks a specific scheme.

Seems like the env var has not been evaluated, considering it as a string instead.

@matteius
Copy link
Member

@DilLip-Chowdary-Codes I don't think that it supports having the entire URL be a variable. The docs call out an example where the user and password are separate variables.
url = "https://${GITLAB_USER}:${GITLAB_TOKEN}@gitlab.com/api/v4/projects/projectId/packages/pypi/simple"

@DilLip-Chowdary-Codes
Copy link

Full URL works, I tested in the Docker environment, and I need to check out what went wrong in the local environment.

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. triage Type: Possible Bug This issue describes a possible bug in pipenv.
Projects
None yet
Development

No branches or pull requests

5 participants