-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Category: Private PyPIs 😎Problem relates to private PyPI usage.Problem relates to private PyPI usage.ai-triagedtriage
Description
When installing private repositories I would like to replace the authentication method between ssh and user password using environment variables as following:
"""
Setting environment variable to:
CREDENTIAL=https://user:pass
or
CREDENTIAL=ssh://git
"""
//Pipfile
[packages]
myapp = { git="${CREDENTIAL}@repo.com" }
But this will raise:
pipenv.patched.pip._vendor.packaging.requirements.InvalidRequirement: Invalid URL: git+${CRED}@repo.com
The only way I could get it to work was replacing the whole string:
#REPOSITORY=https://user:pass@repo.com
#REPOSITORY=ssh://git@repo.com
//Pipfile
[packages]
myapp = { git="${REPOSITORY}" }
Am I missing something or this is the desired behaviour?
Metadata
Metadata
Assignees
Labels
Category: Private PyPIs 😎Problem relates to private PyPI usage.Problem relates to private PyPI usage.ai-triagedtriage