0.3.0: Support for non-run invocations
By switching from on_run
to on_invoke
, pdm-dotenv
will now load environment variables whenever you call a pdm
subcommand.
As an example of where this might be useful:
Calling pdm publish
with a flit
backend, with the FLIT_PASSWORD
and FLIT_USERNAME
environment variables set in your .env
file.
This could be a breaking change for some people, but I think the previous behavior was confusing and missed out on a lot of usecases