Allow Pipfile to consume environment variables
See original GitHub issueIt would be awesome if Pipfile
could be parsed to allow for environment variables.
While it’s great that pipenv
supports private indexes, it’s annoying if those indexes require credentials—it’s bad practice to store them in source control:
[[source]]
url = "https://{{ MY_USERNAME }}:{{ MY_PASSWORD }}@my_custom_repo.jfrog.io/simple"
verify_ssl = true
name = "pypi"
Happy to contribute a PR for this if this gets some thumbs.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:25 (21 by maintainers)
Top Results From Across the Web
Advanced Usage of Pipenv - Read the Docs
Pipenv will expand environment variables (if defined) in your Pipfile. ... This allows you to easily read the code you're consuming, instead of...
Read more >How do I set environment variables in pipenv?
env file at the root folder of the project, next to the Pipfile . See Automatic Loading of .env. You can run the...
Read more >Exploring More Pipenv Features
01:20 Oftentimes your project will have specific environment variables. ... Outside of the shell, you can use the pipenv run command to run...
Read more >pipenv Documentation
Pipenv will expand environment variables (if defined) in your Pipfile. ... This allows you to easily read the code you're consuming, instead of...
Read more >Configure a Pipenv environment | PyCharm Documentation
PyCharm supports environment variables, for example, PIPENV_VENV_IN_PROJECT . You can add PIPENV_VENV_IN_PROJECT=true to your ~/.profile, or ~/.bash_profile or ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It would be nice if we can have environment variables loaded throughout the entire Pipfile. E.g.
no