Skip to content

Commit

Permalink
fix(.bashrc): prevent implicit usage of keyring for python
Browse files Browse the repository at this point in the history
When using poetry I recently ran into an issue as described here:
 python-poetry/poetry#1917
It seems that the poetry authors enabled the automatic support of
 keyring. This does not check if keyring is actually used.

I decided to apply this fix here, since I think of poetry as a useful
 tool to steer my python projects. Maybe this is fixed within the next
 poetry release anyhow. Then I'll just remove it. Otherwise this fix is
 useful across this system, since I don't use keyring up to now that
 much. Worst case I can deactivate it on specific systems.
  • Loading branch information
LuzianHahn committed Oct 26, 2023
1 parent 05f3d9a commit f4a5a14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,6 @@ alias cfg='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
alias cfgedit='GIT_DIR=$HOME/.cfg GIT_WORK_TREE=$HOME vim'

export PATH="$HOME/.local/bin:$PATH"

# Prevent usage of Keyring within Poetry
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring

0 comments on commit f4a5a14

Please sign in to comment.