Skip to content

Commit d60cf8b

Browse files
committed
Update requirements: drop requests
This also removes RequestsFetcher from tuf.ngclient.__init__.py: Otherwise we can't drop the requests dependency. This means RequestsFetcher is not currently public. Signed-off-by: Jussi Kukkonen <[email protected]>
1 parent 899c676 commit d60cf8b

File tree

4 files changed

+2
-13
lines changed

4 files changed

+2
-13
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ classifiers = [
4545
"Topic :: Software Development",
4646
]
4747
dependencies = [
48-
"requests>=2.19.1",
4948
"securesystemslib~=1.0",
5049
"urllib3<3,>=1.21.1",
5150
]

requirements/main.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
# triggers CI/CD builds to automatically test against updated dependencies.
88
#
99
securesystemslib[crypto]
10-
requests
10+
urllib3

requirements/pinned.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,13 @@
44
#
55
# pip-compile --output-file=requirements/pinned.txt --strip-extras requirements/main.txt
66
#
7-
certifi==2025.1.31
8-
# via requests
97
cffi==1.17.1
108
# via cryptography
11-
charset-normalizer==3.4.1
12-
# via requests
139
cryptography==44.0.0
1410
# via securesystemslib
15-
idna==3.10
16-
# via requests
1711
pycparser==2.22
1812
# via cffi
19-
requests==2.32.3
20-
# via -r requirements/main.txt
2113
securesystemslib==1.2.0
2214
# via -r requirements/main.txt
2315
urllib3==2.3.0
24-
# via requests
16+
# via -r requirements/main.txt

tuf/ngclient/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@
88
# requests_fetcher is public but comes from _internal for now (because
99
# sigstore-python 1.0 still uses the module from there). requests_fetcher
1010
# can be moved out of _internal once sigstore-python 1.0 is not relevant.
11-
from tuf.ngclient._internal.requests_fetcher import RequestsFetcher
1211
from tuf.ngclient._internal.urllib3_fetcher import Urllib3Fetcher
1312
from tuf.ngclient.config import UpdaterConfig
1413
from tuf.ngclient.fetcher import FetcherInterface
1514
from tuf.ngclient.updater import Updater
1615

1716
__all__ = [ # noqa: PLE0604
1817
FetcherInterface.__name__,
19-
RequestsFetcher.__name__,
2018
Urllib3Fetcher.__name__,
2119
TargetFile.__name__,
2220
Updater.__name__,

0 commit comments

Comments
 (0)