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
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
OS version and name: MacOS 10.15.5 Catalina
Poetry version: 1.0.10
Link of a Gist with the contents of your pyproject.toml file: Gist
Issue
I was trying to deploy the latest version of my package, pypokedex to PyPI, using Travis CI (the link is to my build log). I'm using the following deploy config from .travis.yml
#!/usr/bin/env bashif! poetry build;thenecho"Failed to build pypokedex. Rerun 'poetry build'. Aborting."exit 1
fiecho"Built pypokedex in dist folder"# Requires rename utility with perl replace supportif! rename 's/py3/py36/' dist/pypokedex-1.5.0-py3-none-any.whl;thenecho"Unable to rename built wheel. Aborting."exit 1
fiecho"Renamed wheel"if! poetry publish;thenecho"Failed to publish pypokedex. Rerun 'poetry publish'. Aborting."exit 1
fiecho"Successfully published package to PyPI"exit 0
Notably, for my Travis build, I have set the variable POETRY_PYPI_TOKEN_PYPI to an API token from pypi.org. However, as seen from the build output, which is
Publishing pypokedex (1.5.0) to PyPI
No suitable keyring backends were found
Using a plaintext file to store and retrieve credentials
Username:
Poetry is ignoring the presence of this environment variable and asking for my username and password. The documentation states that I should be able to publish with just the token set. I initially thought that I needed my username as well, but according PyPI documentation it isn't necessary. I can produce the same behavior locally if I just set the token to an environment variable (and not a username password combo) before running poetry publish.
The text was updated successfully, but these errors were encountered:
-vvv
option).Issue
I was trying to deploy the latest version of my package, pypokedex to PyPI, using Travis CI (the link is to my build log). I'm using the following deploy config from
.travis.yml
and:
deploy.sh
Notably, for my Travis build, I have set the variable
POETRY_PYPI_TOKEN_PYPI
to an API token frompypi.org
. However, as seen from the build output, which isPoetry is ignoring the presence of this environment variable and asking for my username and password. The documentation states that I should be able to publish with just the token set. I initially thought that I needed my username as well, but according PyPI documentation it isn't necessary. I can produce the same behavior locally if I just set the token to an environment variable (and not a username password combo) before running
poetry publish
.The text was updated successfully, but these errors were encountered: