-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POETRY_PYPI_TOKEN_PYPI KeyRingError in GitHub Actions #5189
Comments
I will try to do a little more digging, but just a quick update that I think I narrowed it down to keyring>=23.2.0 (which is now allowed in 1.1.3)... |
I ended up opening this issue: jaraco/keyring#561 Not sure if that's the right idea or if other solutions come to mind for anyone. |
I suspect the issue is the logic here. poetry/src/poetry/utils/password_manager.py Lines 169 to 174 in 4423fd6
If keyring is available env vars are not checked when uploading. |
But why would keyring be available if later we get an error when trying to get it? |
Wait why would we assign the value of True for the _is_available just upon the creation of the PoetryKeyrying when it is actually determined if it's available when we actually call the get method? poetry/src/poetry/utils/password_manager.py Lines 61 to 75 in 4423fd6
|
* add checking for env variable in pypi token getter * add unit tests for env pypi token * add checking for env variable in pypi token getter * add unit tests for env pypi token * add info to the changelog * refactor the structure * fix unit tests * undo changelog addition * change docstring format to sphinx * delete uncrsy unit test * Delete unscry funtion call Co-authored-by: Bjorn Neergaard <[email protected]> * Update src/poetry/utils/password_manager.py Co-authored-by: Bartosz Sokorski <[email protected]> * fix unit tests * lol * fix type hints Co-authored-by: Bjorn Neergaard <[email protected]> Co-authored-by: Bartosz Sokorski <[email protected]>
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
From what I can tell, the latest release isn't picking up the
POETRY_PYPI_TOKEN_PYPI
environment variable like it did before? I can't find anything else that would have changed from how I had it working previously, other than a new Poetry release.Here's a link to a GitHub Action run I have testing it with
poetry publish —dry-run
:https://github.com/dropseed/workhorse/runs/5158999743?check_suite_focus=true#step:3:176
Here's the workflow: https://github.com/dropseed/workhorse/blob/69a7e144960c9ef961dbdd172b4115095564a44a/.github/workflows/poetry-test.yml
Thanks for your help and maintaining poetry! Let me know if there's anything else I can do to help on this.
The text was updated successfully, but these errors were encountered: