I'm trying to use pdm to upload a project to a private artifactory instance. This instance has the option to generate an API key, which we use in our automation. I've used uv to do successfully this in the past, using an empty string as the username and the API key as the password. However, when I try this in pdm, I get a 401 unauthorized error.
this is the commandline I'm trying to use:
pdm publish --repository my_repository --username "" --password "<my_api_key>"
I've also tried the following for username: __token__, <username>, username@domain, all without success. The only successful option is to supply the username and password. But I'd like to keep using the API key if possible. Is there support in pdm for this method of authentication?
I'm trying to use pdm to upload a project to a private artifactory instance. This instance has the option to generate an API key, which we use in our automation. I've used uv to do successfully this in the past, using an empty string as the username and the API key as the password. However, when I try this in pdm, I get a 401 unauthorized error.
this is the commandline I'm trying to use:
pdm publish --repository my_repository --username "" --password "<my_api_key>"I've also tried the following for username:
__token__,<username>,username@domain, all without success. The only successful option is to supply the username and password. But I'd like to keep using the API key if possible. Is there support in pdm for this method of authentication?