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
Repositories can be configured in pyproject.toml. The credentials are read from the OS credential stores via keyring.
Problem and Solution
Problem:
According to https://pdm-project.org/en/latest/usage/config/#configure-the-repositories-for-upload repositories are only configurable via config.toml or environment variables. If developers are working on different python projects that all need to upload to different repositories, all developers must configure the repos individually. With the option of configuring this within pyproject.toml for pdm, it would be possible to share the configuration. Use case in company.
Solution:
[[tool.pdm.repo]]
name = "company"url = "https://artifactory.company.com/artifactory/api/pypi/remote"
pdm publish --repository company to start publishing.
Keyring will read pdm-repository-company from Credential Store to receive username and password
Additional Context
No response
Are you willing to contribute to the development of this feature?
Yes, I am willing to contribute to the development of this feature.
The text was updated successfully, but these errors were encountered:
Hi @frostming, can you make an example of how this allows to include repository configuration into pyproject.toml files? I can't figure it out other than putting it into a pdm.toml file, which I would like to use only for the credentials. Thank you in advance.
Feature Description
Repositories can be configured in pyproject.toml. The credentials are read from the OS credential stores via keyring.
Problem and Solution
Problem:
According to https://pdm-project.org/en/latest/usage/config/#configure-the-repositories-for-upload repositories are only configurable via config.toml or environment variables. If developers are working on different python projects that all need to upload to different repositories, all developers must configure the repos individually. With the option of configuring this within pyproject.toml for pdm, it would be possible to share the configuration. Use case in company.
Solution:
pdm publish --repository company
to start publishing.Keyring will read pdm-repository-company from Credential Store to receive username and password
Additional Context
No response
Are you willing to contribute to the development of this feature?
The text was updated successfully, but these errors were encountered: