question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow Pipfile to consume environment variables

See original GitHub issue

It 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:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:25 (21 by maintainers)

github_iconTop GitHub Comments

7reactions
njgrisaficommented, Apr 22, 2019

It would be nice if we can have environment variables loaded throughout the entire Pipfile. E.g.

[dev-packages]
my-package = {path="${PATH_TO_REPO}", editable = true}
3reactions
kennethreitzcommented, Mar 14, 2018

no

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found