Support for .env files
See original GitHub issue- I have searched the issues of this repo and believe that this is not a duplicate.
Issue
First off I really like poetry- I’d actually only recently migrated over to pipenv but I already see the advantages of poetry and would ideally like to use it full time.
I primarily work with Django and other web frameworks that can require a large amount of configuration which- when following 12 factor app practices- involves lots of environment variables that necessitates the use of a .env
file.
Is there a possibility of adding in .env
file support, specifically for poetry’s run
command so that the resulting command runs both in the virtualenv and with the environment as configured in the .env
file?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:94
- Comments:71 (11 by maintainers)
Top Results From Across the Web
env files support - IntelliJ IDEs Plugin - JetBrains Marketplace
Go to declaration(in . env file) and usages(in code), by Ctrl(Cmd)+click or hot key(Ctrl(Cmd)-B, etc.)
Read more >Managing .env files and setting variables - Prisma
Learn how to manage .env files and set environment variables.
Read more >We need to talk about the .env | Platform.sh
.env files are a surrogate environment variable for local development only, but should never be committed to Git. Understand your application!
Read more >Resolution of environment variables - Serverless Framework
The framework loads variables from only one .env file (if stage-specific .env is found, default .env is not loaded); The framework does not...
Read more >Environment variables in Compose | Docker Documentation
If you have multiple environment variables, you can substitute them by adding them to a default environment variable file named .env or by...
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 FreeTop 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
Top GitHub Comments
Like I said above this is beyond the scope of Poetry so I am closing this issue.
I don’t think this is in the scope of Poetry.
Since Poetry is not configured via environment variables there are no reasons for it to load a
.env
file.If the libraries you use need it, it’s their responsability to load it not Poetry’s.