Open scastria opened 1 week ago
I also tried verify_ssl = false
, but no change
I discovered a BIG clue to this. It seems to be related to the optional dependency of the my_utils
package called markdown
. If I remove mention of the optional dependency like this:
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[[source]]
url = "https://aws:${CODEARTIFACT_AUTH_TOKEN}@data-engineering-123456789.d.codeartifact.us-west-2.amazonaws.com/pypi/data_engineering/simple/"
verify_ssl = true
name = "data_engineering"
[packages]
my_utils = {version="==0.1.391", index="data_engineering"}
[dev-packages]
[requires]
python_version = "3.10"
then the pipenv install
command worked. It seems the optional dependency causes a problem. The optional dependency IS VALID as pipenv 2022.9.21
works just fine.
Another test is that I removed the my_utils
dependency completely from the Pipfile
and instead specified ONLY "redis[hiredis]" = "==4.6.0"
and that worked too. So optional dependencies work against PyPI
, but they do NOT work against private indicies.
I wasn't aware of the extras
keyword in Pipfile
. If I change the Pipfile
to use extras
, it DOES work. So I guess now the question is should the extras
syntax be required or can the other syntax without extras
be used?
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[[source]]
url = "https://aws:${CODEARTIFACT_AUTH_TOKEN}@data-engineering-123456789.d.codeartifact.us-west-2.amazonaws.com/pypi/data_engineering/simple/"
verify_ssl = true
name = "data_engineering"
[packages]
my_utils = {version="==0.1.391", extras=["markdown"], index="data_engineering"}
[dev-packages]
[requires]
python_version = "3.10"
I have been using
pipenv 2022.9.21
for a long time and decided to try the latest and greatest. The latest2024.0.1
appears broken when it comes to locating packages in my private AWS CodeArtifact repo.Issue description
pipenv install
fails with thisPipfile
:I thought it might be a failure in resolving the env variable referenced in the alternate source index called
data_engineering
so I hardcoded it in thePipfile
. No change.Expected result
my_utils
package is downloaded successfullyActual result
Steps to replicate
pipenv install
$ pipenv --support
Pipenv version: `'2024.0.1'` Pipenv location: `'/opt/homebrew/Cellar/pipenv/2024.0.1/libexec/lib/python3.12/site-packages/pipenv'` Python location: `'/opt/homebrew/Cellar/pipenv/2024.0.1/libexec/bin/python'` OS Name: `'posix'` User pip version: `'24.0'` user Python installations found: PEP 508 Information: ``` {'implementation_name': 'cpython', 'implementation_version': '3.12.4', 'os_name': 'posix', 'platform_machine': 'arm64', 'platform_python_implementation': 'CPython', 'platform_release': '23.5.0', 'platform_system': 'Darwin', 'platform_version': 'Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT ' '2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000', 'python_full_version': '3.12.4', 'python_version': '3.12', 'sys_platform': 'darwin'} ``` System environment variables: - `MANPATH` - `TERM_PROGRAM` - `SHELL` - `TERM` - `HISTSIZE` - `HOMEBREW_REPOSITORY` - `TMPDIR` - `GOBIN` - `TERM_PROGRAM_VERSION` - `ADOPS_PAT` - `OLDPWD` - `TERM_SESSION_ID` - `TF_VAR_postman_localhost_api_key` - `FORGE_EMAIL` - `USER` - `LDAP_USERNAME` - `CODEARTIFACT_AUTH_TOKEN` - `SSH_AUTH_SOCK` - `PATH` - `__CFBundleIdentifier` - `PWD` - `JAVA_HOME` - `LANG` - `LDAP_PASSWORD` - `FORGE_API_TOKEN` - `XPC_FLAGS` - `PS1` - `ENVIRONMENT` - `XPC_SERVICE_NAME` - `SHLVL` - `HOME` - `SHELL_SESSION_HISTORY` - `HOMEBREW_PREFIX` - `LOGNAME` - `LOCAL_MYSQL_ROOT_PASSWORD` - `GOPATH` - `INFOPATH` - `HOMEBREW_CELLAR` - `BITBUCKET_PAT` - `HISTTIMEFORMAT` - `_` - `__CF_USER_TEXT_ENCODING` - `PIP_DISABLE_PIP_VERSION_CHECK` - `PYTHONDONTWRITEBYTECODE` - `PYTHONFINDER_IGNORE_UNSUPPORTED` Pipenv–specific environment variables: Debug–specific environment variables: - `PATH`: `/opt/homebrew/bin:/opt/homebrew/sbin:/Users/shawncastrianni/.go/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/opt/liquibase` - `SHELL`: `/bin/bash` - `LANG`: `en_US.UTF-8` - `PWD`: `/Users/shawncastrianni/GIT/data_api_one` --------------------------- Contents of `Pipfile` ('/Users/shawncastrianni/GIT/data_api_one/Pipfile'): ```toml [[source]] url = "https://pypi.org/simple" verify_ssl = true name = "pypi" [[source]] url = "https://aws:${CODEARTIFACT_AUTH_TOKEN}@data-engineering-123456789.d.codeartifact.us-west-2.amazonaws.com/pypi/data_engineering/simple/" verify_ssl = true name = "data_engineering" [packages] "my_utils[markdown]" = {version="==0.1.391", index="data_engineering"} [dev-packages] [requires] python_version = "3.10" ```