-
-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dinamically set env variable #2993
Comments
Have you seen the pdm-dotenv plugin from the awesome-pdm list? Maybe you can utilize it to define your |
hi @o-moe , thanks for your suggestion. Moreso that my understanding is that In any case your suggestion bring me to do some additional tests, and it seems that I can recycle env variables in the But it seems to me that Do you think there are some paths I've missed? |
Hi, it's me again. I've tried to find a workaround, and I've summarized my work on https://github.com/ZeeD/pdm-dotenv-test and indeed it "works": it's possible to just clone the repo, run The idea was to leverage Yet, I have some questions:
In any case, I still think that it would make sense for |
oh, thanks! |
Is your feature/enhancement proposal related to a problem? Please describe.
I am starting an airflow project.
I successfully used pdm to install airflow, my dependencies, etc...
my goal is to set
AIRFLOW_HOME
to a folder of my project (basically I want a layout like the following one)and also, I am trying to leverage
pdm
scripts support.basically I want to set
but airflow expect an absolute path for
AIRFLOW_HOME
and I don't want to hardcode that in thepyproject.toml
fileDescribe the solution you'd like
There are many tricks that could help me, but at the end I want to be able to set an environmental variable dinamically, and not with a literal.
pdm
could expose${PROJECT_ROOT}
as an env variable AND let me setAIRFLOW_HOME = "${PROJECT_ROOT}/airflow"
pdm
let me invoke a command, so I could write something likeAIRFLOW_HOME = "$({pdm} info --where)/airflow"
but at the moment the values are treated as literals
The text was updated successfully, but these errors were encountered: