Skip to content

Commit f9fba83

Browse files
authored
fix: remove dead authenticator code (#5889)
1 parent 9932e26 commit f9fba83

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/poetry/publishing/publisher.py

-9
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,6 @@ def publish(
7474
resolved_cert = cert or certificates.cert or certificates.verify
7575
resolved_client_cert = client_cert or certificates.client_cert
7676

77-
# Requesting missing credentials but only if there is not a client cert defined.
78-
if not resolved_client_cert and hasattr(self._io, "ask"):
79-
if username is None:
80-
username = self._io.ask("Username:")
81-
82-
# skip password input if no username is provided, assume unauthenticated
83-
if username and password is None:
84-
password = self._io.ask_hidden("Password:")
85-
8677
self._uploader.auth(username, password)
8778

8879
if repository_name == "pypi":

0 commit comments

Comments
 (0)