File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ dependencies = [
4242 " rfc3986 >= 1.4.0" ,
4343 " rich >= 12.0.0" ,
4444 " packaging" ,
45+ " id" ,
4546]
4647dynamic = [" version" ]
4748
@@ -62,7 +63,6 @@ register = "twine.commands.register:main"
6263
6364[project .optional-dependencies ]
6465keyring = [" keyring >= 15.1" ]
65- trusted-publishing = [" id" ]
6666
6767[project .scripts ]
6868twine = " twine.__main__:main"
Original file line number Diff line number Diff line change 55from urllib .parse import urlparse
66
77import requests
8+ from id import detect_credential # type: ignore
89
910# keyring has an indirect dependency on PyCA cryptography, which has no
1011# pre-built wheels for ppc64le and s390x, see #1158.
1617 except ModuleNotFoundError : # pragma: no cover
1718 keyring = None
1819
19- try :
20- from id import detect_credential # type: ignore
21- except ModuleNotFoundError : # pragma: no cover
22- detect_credential = None
23-
2420from twine import exceptions
2521from twine import utils
2622
@@ -69,7 +65,6 @@ def password(self) -> Optional[str]:
6965 self .is_pypi ()
7066 and self .username == "__token__"
7167 and self .input .password is None
72- and detect_credential is not None
7368 ):
7469 logger .info (
7570 "Trying to use trusted publishing (no token was explicitly provided)"
You can’t perform that action at this time.
0 commit comments