Skip to content

Commit

Permalink
Use system keyring for passwords when available
Browse files Browse the repository at this point in the history
This change introduces the use of system keyring to store repository
passwords when one is available. Passwords are added to and removed from
the keyring using the config command.

Resolves: python-poetry#210
  • Loading branch information
abn committed Jan 4, 2019
1 parent 3c26c8d commit 32a739c
Show file tree
Hide file tree
Showing 6 changed files with 365 additions and 13 deletions.
4 changes: 4 additions & 0 deletions docs/docs/repositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ If you do not specify the password you will be prompted to write it.
You can also specify the username and password when using the `publish` command
with the `--username` and `--password` options.

If a system keyring is available and supported, the password is stored to and retrieved from the keyring. In the above example, the credential will be stored using the name `poetry-repository-pypi`. If access to keyring fails or is unsupported, this will fall back to writing the password to the `auth.toml` file along with the username.

Keyring support is enabled using the [keyring library](https://pypi.org/project/keyring/). For more information on supported backends refer to the [library documentation](https://keyring.readthedocs.io/en/latest/?badge=latest).

### Install dependencies from a private repository

Now that you can publish to your private repository, you need to be able to
Expand Down
Loading

0 comments on commit 32a739c

Please sign in to comment.