JRubics / poetry-publish

An action to build and publish python package to pypi (https://pypi.org/) using poetry (https://github.com/sdispater/poetry)
BSD 3-Clause "New" or "Revised" License
129 stars 17 forks source link

Fix authentication when using repository parameters #3

Closed camilamaia closed 3 years ago

camilamaia commented 3 years ago

Problem

https://github.com/scanapi/scanapi/issues/249

Authentication is not working when using repository parameters

Building scanapi (1.0.5)
 - Building sdist
 - Built scanapi-1.0.5.tar.gz
 - Building wheel
 - Built scanapi-1.0.5-py3-none-any.whl
No suitable keyring backends were found
Using a plaintext file to store and retrieve credentials
Publishing scanapi (1.0.5) to testpypi
No suitable keyring backends were found
Using a plaintext file to store and retrieve credentials

[RuntimeError]
Aborted
Username: 

Solution

Use repository_name on authentication

https://github.com/scanapi/scanapi/pull/252 https://github.com/scanapi/scanapi/pull/252/checks?check_run_id=986697824 https://test.pypi.org/project/scanapi/