thousands-plumber-33255
04/19/2023, 2:41 PM__defaults__(
{
python_tests: dict(
dependencies=[
"django/django_core/settings.py",
"django:pytest-django",
],
extra_env_vars=env_vars_test_django(),
)
}
)
My goal here is to set a list of environments as defined in a macro. Now, I would like to run pants run django/manage.py -- makemigrations --check
, but I am not able to set this list of environments as the field is unregonized for a pex_binary
target.
1. How can I adress this? Is env in 2.16 the equivalent?
2. Can I pass the macro function in in a CLI argument as well or only in a BUILD file? pants run --env=env_vars_test_django() django/manage.py -- makemigrations --check
happy-kitchen-89482
04/19/2023, 3:34 PMhappy-kitchen-89482
04/19/2023, 3:35 PMrun
will take env vars from the ambient environment, so you can just set them therethousands-plumber-33255
04/20/2023, 6:32 AMthousands-plumber-33255
04/21/2023, 8:54 AMhappy-kitchen-89482
04/21/2023, 6:13 PM