Skip to content

0.3.0: Support for non-run invocations

Compare
Choose a tag to compare
@znd4 znd4 released this 13 Nov 16:58
· 18 commits to main since this release
f371c26

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