You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some plugins rely on settings which should not necessarily be part of the pyproject.toml, e.g. pypi-mirror (ref. #5958).
Currently settings cannot be configured using poetry config, because they do not exist (in the hardcoded list of settings).
There should be an interface to define plugin settings with default values and read them at runtime. Users should be able to configure these using poetry config.
They might be scoped to plugins.[plugin_name].[setting_key], where plugin_name is the name of the plugin package or poetry.(application.)plugin entrypoint.
Maybe they can be defined and read with something like this:
Providing this capability enables the use of machine/user global plugin settings (e.g. a private PyPi mirror with poetry-plugin-pypi-mirror) with a "native" configuration interface (poetry config).
Workarounds
Plugin settings can be manually added to the relevant config files poetry.toml or the users config.toml.
Validation of entered values has to be handled by each plugin, normalization must be done manually by the user.
The text was updated successfully, but these errors were encountered:
Issue Kind
Brand new capability
Description
Some plugins rely on settings which should not necessarily be part of the pyproject.toml, e.g. pypi-mirror (ref. #5958).
Currently settings cannot be configured using
poetry config
, because they do not exist (in the hardcoded list of settings).There should be an interface to define plugin settings with default values and read them at runtime. Users should be able to configure these using
poetry config
.They might be scoped to
plugins.[plugin_name].[setting_key]
, whereplugin_name
is the name of the plugin package orpoetry.(application.)plugin
entrypoint.Maybe they can be defined and read with something like this:
Impact
Providing this capability enables the use of machine/user global plugin settings (e.g. a private PyPi mirror with poetry-plugin-pypi-mirror) with a "native" configuration interface (
poetry config
).Workarounds
Plugin settings can be manually added to the relevant config files
poetry.toml
or the usersconfig.toml
.Validation of entered values has to be handled by each plugin, normalization must be done manually by the user.
The text was updated successfully, but these errors were encountered: