question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use .pypirc for authentication

See original GitHub issue

Twine can use a .pypirc (for example ~/.pypirc) to authenticate against the repository. It would be nice if poetry used it.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
sdispatercommented, Mar 2, 2019

This is not something that is planned. I prefer Poetry to be self sufficient and not to depend on other configuration files than its own.

10reactions
osteelecommented, Jun 13, 2018

It can be done through the CLI, but i don’t remember how…

It’s documented in Repositories > Configuring Credentials on the web site:

poetry config http-basic.pypi username password

(It actually took me a while to find it, because I didn’t realize the website had additional information about poetry config that wasn’t in the README. I’m hesitant to submit an issue or PR, since I don’t know if that’s an issue with the README or just with me…)

Read more comments on GitHub >

github_iconTop Results From Across the Web

The .pypirc file - Python Packaging User Guide
The .pypirc file¶. A .pypirc file allows you to define the configuration for package indexes (referred to here as “repositories”), so that you...
Read more >
Use .pypirc for authentication #111 - python-poetry ... - GitHub
Twine can use a .pypirc (for example ~/.pypirc) to authenticate against the repository. It would be nice if poetry used it.
Read more >
Twine is asking for my password each time - Stack Overflow
With -r <name> it lookups ~/.pypirc for the URL, user name and password. If you omit -r <name> , twine uses the first...
Read more >
Set up authentication to Python package repositories | Artifact ...
You must authenticate to Artifact Registry when you use a third-party application to connect to a ... Add the following settings to the...
Read more >
Passwords, PyPI Uploads, twine, and .pypirc - GitHub Pages
Another annoyance is that setuptools relies on ~/.pypirc for authentication information, and it's a bit stupid about it. If there's no authentication info ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found