Skip to content
Closed

V2.31.1 #7263

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
258 commits
Select commit Hold shift + click to select a range
cb7fcd7
Specify that Session.headers needs to be set to a OrderedDict in Head…
joren485 Aug 12, 2023
9b6c62e
Merge branch 'main' into spdx-conform-license
nateprewitt Aug 12, 2023
34a64bc
Merge pull request #6266 from elprimato/spdx-conform-license
sigmavirus24 Aug 12, 2023
2c193bd
Pin GHA workflows and add dependabot to keep them up to date (#6497)
nateprewitt Aug 12, 2023
8112fcc
Pre commit update (#6498)
nateprewitt Aug 12, 2023
ea49261
Bump dessant/lock-threads from 3.0.0 to 4.0.1
dependabot[bot] Aug 12, 2023
c793345
Bump actions/setup-python from 2.3.4 to 4.7.0
dependabot[bot] Aug 12, 2023
9acca90
Bump github/codeql-action from 1.1.39 to 2.21.3
dependabot[bot] Aug 12, 2023
6ad4936
Merge pull request #6499 from psf/dependabot/github_actions/dessant/l…
nateprewitt Aug 12, 2023
09a241f
Merge pull request #6500 from psf/dependabot/github_actions/actions/s…
nateprewitt Aug 12, 2023
4bd06cd
Bump actions/checkout from 2.7.0 to 3.5.3
dependabot[bot] Aug 12, 2023
9ff1a25
Merge pull request #6502 from psf/dependabot/github_actions/github/co…
nateprewitt Aug 12, 2023
d815276
Merge pull request #6501 from psf/dependabot/github_actions/actions/c…
nateprewitt Aug 12, 2023
678fca8
Upgrade to httpbin 0.10.0 (#6496)
nateprewitt Aug 13, 2023
e9fa2e2
Add 3.12 classifier and tox configuration (#6503)
nateprewitt Aug 13, 2023
d63e94f
Move to src directory (#6506)
nateprewitt Aug 13, 2023
005571d
Remove pytest-mock requirement (#6505)
nateprewitt Aug 13, 2023
89f0eb9
fix monthly download badge (#6507)
Ocupe Aug 16, 2023
2ee5b0b
Fix documentation monthly download badge (#6508)
13steinj Aug 18, 2023
bea231b
Bump actions/checkout from 3.5.3 to 3.6.0
dependabot[bot] Aug 28, 2023
16dc70d
Merge pull request #6516 from psf/dependabot/github_actions/actions/c…
sigmavirus24 Aug 28, 2023
4585a7f
remove pytest.ini since it does not exist anymore
jnhyperion Aug 29, 2023
8b560ec
Merge pull request #6517 from jnhyperion/remove-pytest-ini
sigmavirus24 Aug 29, 2023
29fc8d1
Bump actions/checkout from 3.6.0 to 4.0.0
dependabot[bot] Sep 4, 2023
8812812
Merge pull request #6519 from psf/dependabot/github_actions/actions/c…
sigmavirus24 Sep 5, 2023
6c8d9b1
Autoclose specific issue templates
sigmavirus24 Sep 13, 2023
1286261
Update models.Response.json docstring clearer
anupam-arista Sep 14, 2023
a775435
Bump actions/checkout from 4.0.0 to 4.1.0
dependabot[bot] Sep 25, 2023
ee93fac
Merge pull request #6538 from psf/dependabot/github_actions/actions/c…
nateprewitt Sep 25, 2023
f5a7aef
Fix urllib3 pin in setup.cfg (#6545)
nateprewitt Oct 6, 2023
42a3b5c
Bump github/codeql-action from 2.21.3 to 2.22.1
dependabot[bot] Oct 9, 2023
8199a2b
Merge pull request #6548 from psf/dependabot/github_actions/github/co…
nateprewitt Oct 9, 2023
f75b950
Update close comment
sigmavirus24 Oct 11, 2023
8187768
Update close-issues.yml
sigmavirus24 Oct 11, 2023
b55bb15
Merge pull request #6527 from sigmavirus24/update-templates
nateprewitt Oct 11, 2023
a8e9c1b
added assert statements into tests/test_requests/test_header_validati…
swims-hjkl Oct 18, 2023
839a8ed
Merge pull request #6552 from swims-hjkl/issue/test_header_validation
nateprewitt Oct 18, 2023
ad761ab
every chardet package maps to requests.packages.chardet.* package res…
amkarn258 Oct 30, 2023
e9b1217
added handling for chardet and charset_normalizer imports
amkarn258 Oct 31, 2023
d7490c9
Update src/requests/packages.py
amkarn258 Oct 31, 2023
89cde23
checkstyle
amkarn258 Nov 4, 2023
c32b046
Fix missing space in error message
msea1 Nov 16, 2023
9e98a87
Merge pull request #6574 from msea1/matthew/fix_space
nateprewitt Nov 16, 2023
e66a07b
Bump dessant/lock-threads from 4.0.1 to 5.0.0
dependabot[bot] Nov 20, 2023
c6de5a1
Merge pull request #6580 from psf/dependabot/github_actions/dessant/l…
sigmavirus24 Nov 20, 2023
1584994
fix docstring typo: a -> as
EFord36 Nov 22, 2023
0b4d494
Merge pull request #6581 from EFord36/typo-fix
sigmavirus24 Nov 22, 2023
f670704
Unit test for string containing multi-byte UTF-8
bruceadams Nov 27, 2023
b37878d
Too early definition added to 425 status code type
atatuzuner61 Nov 28, 2023
889910c
Added tests for status code 425 definitions.
atatuzuner61 Nov 29, 2023
ec84f2c
Fixes to test
atatuzuner61 Nov 29, 2023
3fd309a
Enhance `super_len` to count encoded bytes for str
bruceadams Nov 28, 2023
d6ffd86
Update close-issues.yml
sigmavirus24 Dec 1, 2023
769bc3a
Merge pull request #6596 from psf/fix-autoclose-automtaion
nateprewitt Dec 1, 2023
ba67dc8
Bump actions/setup-python from 4.7.0 to 5.0.0
dependabot[bot] Dec 11, 2023
a25fde6
Merge pull request #6599 from psf/dependabot/github_actions/actions/s…
nateprewitt Dec 11, 2023
a64f32b
Add note on connection timeout being larger than specified. Fix #5773
MestreLion Dec 13, 2023
c7c2ebf
Add now mandatory readthedocs config file
nsoranzo Dec 15, 2023
51d0d83
Merge pull request #6603 from nsoranzo/rtd_config
sigmavirus24 Dec 16, 2023
951dd15
Update docs/user/advanced.rst
sigmavirus24 Dec 16, 2023
92f9e43
Update docs/user/advanced.rst
sigmavirus24 Dec 16, 2023
1ddf014
Merge pull request #6600 from MestreLion/MestreLion-connection-timeou…
sigmavirus24 Dec 16, 2023
3b5978f
Merge pull request #6592 from atatuzuner61/bug/6584
sigmavirus24 Dec 16, 2023
1447bcc
fix for ##6604
jaikishpai Dec 17, 2023
421b1f1
Bump github/codeql-action from 2.22.1 to 3.22.11
dependabot[bot] Dec 18, 2023
e4c821a
Merge pull request #6607 from psf/dependabot/github_actions/github/co…
nateprewitt Dec 18, 2023
1396eb6
Merge pull request #6605 from jaikishpai/fix-#6604
nateprewitt Dec 20, 2023
242d311
docs: specify sphinx dirhtml builder
miketheman Dec 23, 2023
b5bd0f1
docs: add label to socks heading
miketheman Dec 23, 2023
f3f9784
Merge pull request #6613 from miketheman/add-socks-label
sigmavirus24 Dec 23, 2023
f23346a
Revert "Merge pull request #6605 from jaikishpai/fix-#6604"
miketheman Dec 23, 2023
bfba9dc
docs: replace concrete URLs with references
miketheman Dec 23, 2023
25939d8
add myself
miketheman Dec 23, 2023
72eccc8
Merge pull request #6612 from miketheman/fix-docs-urls
sigmavirus24 Dec 23, 2023
b0e6c9b
Bump github/codeql-action from 3.22.11 to 3.23.0
dependabot[bot] Jan 8, 2024
96b22fa
Merge pull request #6619 from psf/dependabot/github_actions/github/co…
sigmavirus24 Jan 8, 2024
3ff3ff2
Fix #6628 - JSONDecodeError are not deserializable
Tarty Jan 31, 2024
a5a0e4b
Bump github/codeql-action from 3.23.0 to 3.24.0
dependabot[bot] Feb 5, 2024
4f3f189
Merge pull request #6632 from psf/dependabot/github_actions/github/co…
sigmavirus24 Feb 6, 2024
6106a63
Cleanup defunct links from community docs page
nateprewitt Feb 20, 2024
46c1a3d
Merge pull request #6640 from nateprewitt/community_docs_cleanup
sigmavirus24 Feb 20, 2024
5fc10bf
Fix httpbin pin for test suite
nateprewitt Feb 20, 2024
28855fd
Update supported copies of PyPy
nateprewitt Feb 20, 2024
8fa4302
Update Sphinx to work with latest readthedocs requirements
nateprewitt Feb 20, 2024
9439fad
Merge pull request #6641 from nateprewitt/fix_ci
sigmavirus24 Feb 20, 2024
58cea7a
Drop support for CPython 3.7
nateprewitt Feb 20, 2024
7a13c04
Merge pull request #6642 from nateprewitt/drop_python_37
nateprewitt Feb 20, 2024
382fc2c
Merge pull request #6629 from Tarty/fix-6628-jsondecode-error-not-des…
nateprewitt Feb 22, 2024
60389df
Trim excess leading path separators
sigmavirus24 Feb 22, 2024
3587a5f
Merge pull request #6644 from sigmavirus24/bug/6643
sigmavirus24 Feb 23, 2024
b8be93a
Merge pull request #6589 from bruceadams/super_len_str_utf-8
sigmavirus24 Feb 23, 2024
0ec2780
update broken github pagination link
EFord36 Nov 24, 2023
d3b3399
update authors github link
EFord36 Nov 24, 2023
541aa80
update urllib3 docs link
EFord36 Nov 24, 2023
5f1c3c2
remove section with broken link to survey
EFord36 Nov 24, 2023
0a7f662
Make example URL format a literal rather than an actual link
EFord36 Nov 24, 2023
a0e79ba
update broken rfc link
EFord36 Nov 24, 2023
f3f2611
Merge pull request #6583 from EFord36/fix-broken-links
sigmavirus24 Feb 23, 2024
eea3bbf
Merge pull request #6562 from amkarn258/issue-6223
sigmavirus24 Feb 23, 2024
c0813a2
Use TLS settings in selecting connection pool
sigmavirus24 Mar 3, 2024
a58d7f2
Merge pull request #6655 from sigmavirus24/fix-tls-floppy
sigmavirus24 Mar 11, 2024
a94e9b5
Add local TLS server
sigmavirus24 Mar 13, 2024
eeafb6a
Merge pull request #6662 from sigmavirus24/fix-tls-floppy
sigmavirus24 Mar 14, 2024
1604e20
Fix the proxy_bypass_registry function all returning true in some cases.
flysee Dec 7, 2022
13d892b
Additional should_bypass_proxies function test cases
flysee Mar 18, 2024
8dd3b26
Merge pull request #6302 from flysee/main
sigmavirus24 Mar 18, 2024
2daa7b5
Bump actions/setup-python from 5.0.0 to 5.1.0
dependabot[bot] Apr 1, 2024
2a438c2
Merge pull request #6677 from psf/dependabot/github_actions/actions/s…
nateprewitt Apr 1, 2024
e45b428
Add rfc9110 HTTP status code names
mbeijen Apr 8, 2024
0790ea4
Merge pull request #6680 from mbeijen/rfc9110
nateprewitt Apr 11, 2024
cc23d1c
Fix compatibility with pytest 8
frenzymadness Apr 11, 2024
31ebb81
Merge pull request #6682 from frenzymadness/pytest8
sigmavirus24 Apr 11, 2024
60047ad
Bump github/codeql-action from 3.24.0 to 3.25.0
dependabot[bot] Apr 15, 2024
f1bb07d
Merge pull request #6687 from psf/dependabot/github_actions/github/co…
nateprewitt Apr 15, 2024
2d5f547
Pin 3.8 and 3.9 runners back to macos-13 (#6688)
nateprewitt Apr 23, 2024
bf24b7d
Use an invalid URI that will not cause httpbin to throw 500
franekmagiera May 12, 2024
d6dded3
Merge pull request #6700 from franekmagiera/update-redirect-to-invali…
sigmavirus24 May 12, 2024
555b870
Allow character detection dependencies to be optional in post-packagi…
nateprewitt May 14, 2024
0c030f7
Merge pull request #6702 from nateprewitt/no_char_detection
sigmavirus24 May 15, 2024
9a40d12
Avoid reloading root certificates to improve concurrent performance (…
agubelu May 15, 2024
d6ebc4a
v2.32.0
nateprewitt May 20, 2024
970e8ce
v2.32.1
nateprewitt May 20, 2024
aa1461b
Move _get_connection to get_connection_with_tls_context
nateprewitt May 21, 2024
92075b3
Add deprecation warning
nateprewitt May 21, 2024
c98e4d1
Merge pull request #6710 from nateprewitt/api_rename
nateprewitt May 21, 2024
88dce9d
v2.32.2
nateprewitt May 21, 2024
a62a2d3
Allow for overriding of specific pool key params
sigmavirus24 May 22, 2024
2e14522
Start testing on 3.13 beta
nateprewitt May 23, 2024
6badbac
Update HISTORY.md
nateprewitt May 22, 2024
b1d73dd
Don't use default SSLContext with custom poolmanager kwargs
nateprewitt May 24, 2024
145b539
Merge pull request #6716 from sigmavirus24/bug/6715
nateprewitt May 24, 2024
e188799
Don't create default SSLContext if ssl module isn't present (#6724)
nateprewitt May 29, 2024
0e322af
v2.32.3
nateprewitt May 29, 2024
06d2a38
Merge branch 'psf:main' into patch-1
anupam-arista Jul 1, 2024
f8aa36b
Test on urllib3 1.26.x
nateprewitt Jul 2, 2024
4e38364
Add conditional string encoding based on urllib3 major version
nateprewitt Jul 18, 2024
01353d3
Invert major version check
nateprewitt Jul 23, 2024
15e1f17
remove setuptools test command
branchv Jul 29, 2024
79b74ef
Merge pull request #6757 from nateprewitt/urllib-1.x-tests
nateprewitt Jul 30, 2024
877892e
Bump github/codeql-action from 3.25.0 to 3.26.0
dependabot[bot] Aug 12, 2024
a3ce6f0
Merge pull request #6787 from psf/dependabot/github_actions/github/co…
nateprewitt Aug 12, 2024
173890a
Bump actions/setup-python from 5.1.0 to 5.2.0
dependabot[bot] Sep 2, 2024
f12ccbe
Merge pull request #6797 from psf/dependabot/github_actions/actions/s…
nateprewitt Sep 2, 2024
0f5ef1b
Merge branch 'main' of github.com:psf/requests into 3.13
graingert Sep 18, 2024
83e67c4
use allow-prereleases: true instead of 3.13-dev
graingert Sep 18, 2024
92f10ce
upgrade to pytest-httpbin 2.1.0rc1
graingert Sep 18, 2024
314e7c9
upgrade to pytest-httpbin 2.1.0 final
graingert Sep 18, 2024
f519bba
add trove classifier for 3.13
graingert Sep 18, 2024
5984296
Update tox.ini
graingert Sep 18, 2024
1ae6fc3
Merge pull request #6802 from graingert/3.13
sigmavirus24 Sep 19, 2024
0bff2d9
Bump actions/checkout from 4.1.0 to 4.2.0
dependabot[bot] Sep 30, 2024
7335bbf
Merge pull request #6803 from psf/dependabot/github_actions/actions/c…
nateprewitt Sep 30, 2024
26664fa
Bump actions/setup-python from 5.2.0 to 5.3.0
dependabot[bot] Oct 28, 2024
9787d0c
Bump github/codeql-action from 3.26.0 to 3.27.0
dependabot[bot] Oct 28, 2024
1f16cff
Merge pull request #6818 from psf/dependabot/github_actions/github/co…
nateprewitt Oct 28, 2024
ed0b1b5
Merge pull request #6817 from psf/dependabot/github_actions/actions/s…
nateprewitt Oct 28, 2024
a6cf27a
Update vulnerability disclosure process (#6820)
nateprewitt Nov 2, 2024
ad959ac
Remove old macOS runners
nateprewitt Nov 10, 2024
23540c9
Merge pull request #6824 from psf/nateprewitt-patch-1
sigmavirus24 Nov 10, 2024
b653d80
Merge branch 'psf:main' into patch-1
anupam-arista Dec 12, 2024
8c36da6
Bump github/codeql-action from 3.27.0 to 3.28.5
dependabot[bot] Jan 27, 2025
fe0583b
Merge pull request #6875 from psf/dependabot/github_actions/github/co…
nateprewitt Jan 27, 2025
e361622
docs(exceptions): Remove unused exception URLRequired from documentation
jakobheine Feb 1, 2025
11f63a3
Bump actions/setup-python from 5.3.0 to 5.4.0
dependabot[bot] Feb 3, 2025
f2a6ae5
Merge pull request #6883 from psf/dependabot/github_actions/actions/s…
nateprewitt Feb 3, 2025
f761e74
Merge pull request #6880 from jakobheine/td/remove-urlrequired-from-docs
nateprewitt Feb 10, 2025
b25f2b5
Merge branch 'psf:main' into patch-1
anupam-arista Feb 11, 2025
d96f998
Update src/requests/models.py
anupam-arista Feb 11, 2025
a2fd25f
Update models.py
anupam-arista Feb 11, 2025
5d31ddb
Update src/requests/models.py
anupam-arista Feb 12, 2025
1b7c37e
Merge pull request #6529 from anupam-arista/patch-1
nateprewitt Feb 13, 2025
5074096
Add CA constraint to test CA
cjwatson Feb 17, 2025
9ebebde
Regenerate test certificates
cjwatson Feb 17, 2025
8ba805f
Merge pull request #6897 from cjwatson/fix-test-certificates
sigmavirus24 Feb 17, 2025
e946665
Update advanced.rst
duzhuoshanwai Feb 19, 2025
1764cc9
Merge pull request #6899 from duzhuoshanwai/main
nateprewitt Feb 20, 2025
2019450
Add key usage extension to test ca.crt
RichieB2B Mar 29, 2025
a5cb428
Bump actions/setup-python from 5.4.0 to 5.5.0
dependabot[bot] Mar 31, 2025
c4c8e20
Merge pull request #6925 from psf/dependabot/github_actions/actions/s…
nateprewitt Mar 31, 2025
42a1dd6
Merge pull request #6924 from RichieB2B/rfc5280
sigmavirus24 Apr 16, 2025
4ce9520
Update lint workflow to ubuntu-24.04
allrob23 Apr 23, 2025
991f05d
Bump actions/setup-python from 5.5.0 to 5.6.0
dependabot[bot] Apr 28, 2025
c54d034
Merge pull request #6939 from psf/dependabot/github_actions/actions/s…
nateprewitt Apr 28, 2025
579cd9f
Drop pypy 3.9 and add pypy 3.11 support
nateprewitt Mar 31, 2025
c65c780
Add two more tests exercising the adapter (#6936)
allrob23 May 3, 2025
c799b81
docs: fix dead links to kenreitz.org
tswast May 21, 2025
a7e1c74
Update docs/conf.py
sigmavirus24 May 31, 2025
6716d7c
remove links
tswast Jun 1, 2025
7341690
Merge pull request #6951 from tswast/patch-1
nateprewitt Jun 1, 2025
96ba401
Only use hostname to do netrc lookup instead of netloc
nateprewitt Sep 25, 2024
7bc4587
Add new test to check netrc auth leak (#6962)
danigm Jun 5, 2025
5b4b64c
Add more tests to prevent regression of CVE 2024 47081
awoimbee Jun 5, 2025
59f8aa2
Add netrc file search information to authentication documentation (#6…
pszlazak Jun 8, 2025
821770e
Bump version and add release notes for v2.32.4
sigmavirus24 Jun 9, 2025
021dc72
Polish up release tooling for last manual release
sigmavirus24 Jun 9, 2025
e57b5bf
Add Trusted Publishing Release Workflow
sigmavirus24 Jun 10, 2025
3f07f99
Fix typo in documentation for verify
jonas Oct 4, 2024
8ff173b
Clarify error description in cloning instructions
anodo123 Jul 28, 2024
90fee08
Revert caching a default SSLContext (#6767)
nateprewitt Jun 13, 2025
91a3eab
Bump github/codeql-action from 3.28.5 to 3.29.0
dependabot[bot] Jun 16, 2025
d58d8aa
docs: clarify timeout parameter uses seconds in Session.request (#6994)
killerdevildog Jul 18, 2025
fec96cd
Update Makefile rules (#6996)
abhi-jha Jul 18, 2025
2edca11
Add support for Python 3.14 and drop support for Python 3.8 (#6993)
nateprewitt Jul 25, 2025
7618dbe
Bump step-security/harden-runner from 2.12.0 to 2.13.0
dependabot[bot] Jul 28, 2025
4b9c546
Merge pull request #6999 from psf/dependabot/github_actions/step-secu…
nateprewitt Jul 28, 2025
46e939b
Update publish workflow to use `artifact-id` instead of `name`
GrantBirki Aug 6, 2025
b336cb2
Bump actions/checkout from 4.2.0 to 5.0.0
dependabot[bot] Aug 11, 2025
131e506
Merge pull request #7010 from psf/dependabot/github_actions/actions/c…
nateprewitt Aug 11, 2025
b25c87d
v2.32.5
nateprewitt Aug 18, 2025
1c49660
Bump github/codeql-action from 3.29.0 to 3.30.0
dependabot[bot] Sep 2, 2025
7d8df1d
Bump pypa/gh-action-pypi-publish from 1.12.4 to 1.13.0
dependabot[bot] Sep 8, 2025
5a270e2
Merge pull request #7025 from psf/dependabot/github_actions/pypa/gh-a…
nateprewitt Sep 9, 2025
3c8decb
Bump actions/setup-python from 5.6.0 to 6.0.0
dependabot[bot] Sep 9, 2025
420d16b
Merge pull request #7026 from psf/dependabot/github_actions/actions/s…
nateprewitt Sep 9, 2025
6e4134b
Bump github/codeql-action from 3.30.0 to 4.30.8
dependabot[bot] Oct 13, 2025
7029833
Merge pull request #7042 from psf/dependabot/github_actions/github/co…
nateprewitt Oct 15, 2025
f8bec2f
Fix CI and build failures (#7190)
nateprewitt Jan 30, 2026
a389aaa
Update maintainers in the AUTHORS.rst (#7191)
nateprewitt Jan 31, 2026
cb2c800
Migrate build system to PEP 517 (#7012)
nateprewitt Jan 31, 2026
6c88b6b
Bump actions/upload-artifact from 4.6.2 to 5.0.0
dependabot[bot] Jan 31, 2026
8e5ac8e
Merge pull request #7071 from psf/dependabot/github_actions/actions/u…
nateprewitt Jan 31, 2026
ca78ca9
Bump actions/download-artifact from 5.0.0 to 6.0.0
dependabot[bot] Jan 31, 2026
5f33bdd
Merge pull request #7073 from psf/dependabot/github_actions/actions/d…
nateprewitt Jan 31, 2026
8e39833
Bump actions/checkout from 5.0.0 to 6.0.0
dependabot[bot] Jan 31, 2026
49f8968
Merge pull request #7092 from psf/dependabot/github_actions/actions/c…
nateprewitt Jan 31, 2026
42eaeb4
Bump actions/setup-python from 6.0.0 to 6.1.0
dependabot[bot] Jan 31, 2026
0b950d8
Merge pull request #7100 from psf/dependabot/github_actions/actions/s…
nateprewitt Jan 31, 2026
9688636
Bump github/codeql-action from 4.30.8 to 4.31.6
dependabot[bot] Jan 31, 2026
421b873
Merge pull request #7101 from psf/dependabot/github_actions/github/co…
nateprewitt Jan 31, 2026
32e26af
Start testing Python 3.15 Alpha (#7195)
nateprewitt Feb 5, 2026
0c2bbe7
Drop support for Python 3.9 (#7196)
nateprewitt Feb 6, 2026
733b201
Update floors for certifi and urllib3 (#7189)
nateprewitt Feb 10, 2026
7112775
Bump dessant/lock-threads from 5.0.0 to 6.0.0
dependabot[bot] Feb 10, 2026
dedee0f
Merge pull request #7199 from psf/dependabot/github_actions/dessant/l…
nateprewitt Feb 11, 2026
514b3f2
Bump step-security/harden-runner from 2.13.0 to 2.14.2
dependabot[bot] Feb 11, 2026
1b40fdd
Merge pull request #7200 from psf/dependabot/github_actions/step-secu…
nateprewitt Feb 11, 2026
4791422
Fix empty netrc entry usage (#7205)
nateprewitt Feb 13, 2026
5f33844
Update docstring for Session.verify to include string support (#6859)…
M0d3v1 Feb 13, 2026
00600b3
Update publish workflow and add test pypi option
nateprewitt Feb 13, 2026
5e7cb71
Bump version to dev for test publish
nateprewitt Feb 13, 2026
a2ce3d8
Remove harden runner from publish workflow (#7207)
nateprewitt Feb 13, 2026
da9113c
Add CODEOWNERS file to repo (#7208)
nateprewitt Feb 14, 2026
4bd79e3
Increase chardet upper limit to 7
aminvakil Feb 22, 2026
27f8b40
Bump actions/upload-artifact from 6.0.0 to 7.0.0
dependabot[bot] Mar 2, 2026
392b01f
Bump actions/download-artifact from 7.0.0 to 8.0.0
dependabot[bot] Mar 2, 2026
b2a1d33
Increase chardet upper limit to 8
dan-blanchard Mar 2, 2026
d568f47
docs: clarify Quickstart POST example (#6960)
E8Price Mar 3, 2026
0e4ae38
docs: exclude Response.is_permanent_redirect from API docs (#7244)
mitre88 Mar 5, 2026
4d58dee
Create .DS_Store
muntzteddy Mar 11, 2026
05100d0
Merge branch 'main' into v2.31.1
muntzteddy Mar 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
8 changes: 8 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Restrict all files related to deploying to
# require lead maintainer approval.

.github/workflows/ @nateprewitt @sigmavirus24
.github/CODEOWNERS @nateprewitt @sigmavirus24
src/requests/__version__.py @nateprewitt @sigmavirus24
HISTORY.md @nateprewitt @sigmavirus24
pyproject.toml @nateprewitt @sigmavirus24
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/Custom.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
name: Request for Help
about: Guidance on using Requests.
labels:
- "Question/Not a bug"
- "actions/autoclose-qa"

---

Expand Down
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/Feature_request.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
labels:
- "Feature Request"
- "actions/autoclose-feat"

---

Expand Down
17 changes: 4 additions & 13 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
# Vulnerability Disclosure

If you think you have found a potential security vulnerability in
requests, please email [Nate](mailto:nate.prewitt@gmail.com)
and [Seth](mailto:sethmichaellarson@gmail.com) directly.
**Do not file a public issue.**

Our PGP Key fingerprints are:

- 8722 7E29 AD9C FF5C FAC3 EA6A 44D3 FF97 B80D C864 ([@nateprewitt](https://keybase.io/nateprewitt))

- EDD5 6765 A9D8 4653 CBC8 A134 51B0 6736 1740 F5FC ([@sethmlarson](https://keybase.io/sethmlarson))

You can also contact us on [Keybase](https://keybase.io) with the
profiles above if desired.
requests, please open a [draft Security Advisory](https://github.com/psf/requests/security/advisories/new)
via GitHub. We will coordinate verification and next steps through
that secure medium.

If English is not your first language, please try to describe the
problem and its impact to the best of your ability. For greater detail,
Expand Down Expand Up @@ -72,7 +63,7 @@ intended patch ahead of time, to ensure that they are able to promptly
release their downstream packages. Currently the list of people we
actively contact *ahead of a public release* is:

- Jeremy Cline, Red Hat (@jeremycline)
- Python Maintenance Team, Red Hat (python-maint@redhat.com)
- Daniele Tricoli, Debian (@eriol)

We will notify these individuals at least a week ahead of our planned
Expand Down
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
ignore:
# Ignore all patch releases as we can manually
# upgrade if we run into a bug and need a fix.
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
35 changes: 35 additions & 0 deletions .github/workflows/close-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'Autoclose Issues'

on:
issues:
types:
- labeled

permissions:
issues: write

jobs:
close_qa:
if: github.event.label.name == 'actions/autoclose-qa'
runs-on: ubuntu-latest
steps:
- env:
ISSUE_URL: ${{ github.event.issue.html_url }}
GH_TOKEN: ${{ github.token }}
run: |
gh issue close $ISSUE_URL \
--comment "As described in the template, we won't be able to answer questions on this issue tracker. Please use [Stack Overflow](https://stackoverflow.com/)" \
--reason completed
gh issue lock $ISSUE_URL --reason off_topic
close_feature_request:
if: github.event.label.name == 'actions/autoclose-feat'
runs-on: ubuntu-latest
steps:
- env:
ISSUE_URL: ${{ github.event.issue.html_url }}
GH_TOKEN: ${{ github.token }}
run: |
gh issue close $ISSUE_URL \
--comment "As described in the template, Requests is not accepting feature requests" \
--reason "not planned"
gh issue lock $ISSUE_URL --reason off_topic
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
Expand All @@ -45,7 +45,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
with:
languages: "python"
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -56,7 +56,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -70,4 +70,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ permissions:

jobs:
lint:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.x"
- name: Run pre-commit
uses: pre-commit/action@v3.0.0
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 # v3.0.0
2 changes: 1 addition & 1 deletion .github/workflows/lock-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
if: github.repository_owner == 'psf'
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v3
- uses: dessant/lock-threads@7266a7ce5c1df01b1c6db85bf8cd86c737dadbe7 # v6.0.0
with:
issue-lock-inactive-days: 90
pr-lock-inactive-days: 90
95 changes: 95 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: Publish to PyPI

on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
test-pypi-only:
description: "Publish to Test PyPI only"
type: boolean
default: true

permissions:
contents: read

jobs:
build:
name: "Build dists"
runs-on: "ubuntu-latest"
outputs:
artifact-id: ${{ steps.upload-artifact.outputs.artifact-id }}

steps:
- name: "Checkout repository"
uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
with:
persist-credentials: false

- name: "Setup Python"
uses: "actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405" # v6.2.0
with:
python-version: "3.x"

- name: "Install dependencies"
run: python -m pip install build==1.4.0

- name: "Build dists"
run: |
SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) \
python -m build

- name: "Upload dists"
uses: "actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f"
id: upload-artifact
with:
name: "dist"
path: "dist/"
if-no-files-found: error
retention-days: 5

publish:
name: "Publish"
if: startsWith(github.ref, 'refs/tags/')
needs: ["build"]
permissions:
id-token: write
runs-on: "ubuntu-latest"
environment:
name: "publish"

steps:
- name: "Download dists"
uses: "actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3" # v8.0.0
with:
artifact-ids: ${{ needs.build.outputs.artifact-id }}
path: "dist/"

- name: "Publish dists to PyPI"
uses: "pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e" # v1.13.0
with:
attestations: true

publish-test-pypi:
name: "Publish to Test PyPI"
if: github.event_name == 'workflow_dispatch'
needs: ["build"]
permissions:
id-token: write
runs-on: "ubuntu-latest"
environment:
name: "testpypi"

steps:
- name: "Download dists"
uses: "actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3" # v8.0.0
with:
artifact-ids: ${{ needs.build.outputs.artifact-id }}
path: "dist/"

- name: "Publish dists to Test PyPI"
uses: "pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e" # v1.13.0
with:
repository-url: https://test.pypi.org/legacy/
attestations: true
24 changes: 6 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,15 @@ exclude: 'docs/|ext/'

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.4.0
hooks:
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.3
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- id: ruff
args: [--fix]
- id: ruff-format
exclude: tests/test_lowlevel.py
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.1
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
29 changes: 29 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/conf.py
builder: "dirhtml"

# Optionally build your docs in additional formats such as PDF and ePub
formats:
- pdf
- epub

# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- path: .
- requirements: docs/requirements.txt
17 changes: 9 additions & 8 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
Requests was lovingly created by Kenneth Reitz.

Keepers of the Crystals
```````````````````````
Requests Maintainers
````````````````````

- Ian Stapleton Cordasco <graffatcolmingov@gmail.com> `@sigmavirus24 <https://github.com/sigmavirus24>`_.
- Nate Prewitt `@nateprewitt <https://github.com/nateprewitt>`_.
- Seth M. Larson `@sethmlarson <https://github.com/sethmlarson>`_.

Previous Keepers of Crystals
````````````````````````````
- Kenneth Reitz <me@kennethreitz.org> `@ken-reitz <https://github.com/ken-reitz>`_, reluctant Keeper of the Master Crystal.
- Cory Benfield <cory@lukasa.co.uk> `@lukasa <https://github.com/lukasa>`_
- Ian Cordasco <graffatcolmingov@gmail.com> `@sigmavirus24 <https://github.com/sigmavirus24>`_.
Previous Maintainers
````````````````````

- Kenneth Reitz <me@kennethreitz.org> `@kennethreitz <https://github.com/kennethreitz>`_, reluctant Keeper of the Master Crystal.
- Cory Benfield <cory@lukasa.co.uk> `@lukasa <https://github.com/lukasa>`_
- Seth M. Larson `@sethmlarson <https://github.com/sethmlarson>`_.

Patches and Suggestions
```````````````````````
Expand Down Expand Up @@ -192,3 +192,4 @@ Patches and Suggestions
- Alessio Izzo (`@aless10 <https://github.com/aless10>`_)
- Sylvain Marié (`@smarie <https://github.com/smarie>`_)
- Hod Bin Noon (`@hodbn <https://github.com/hodbn>`_)
- Mike Fiedler (`@miketheman <https://github.com/miketheman>`_)
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
include README.md LICENSE NOTICE HISTORY.md pytest.ini requirements-dev.txt
include README.md LICENSE NOTICE HISTORY.md requirements-dev.txt
recursive-include tests *.py
recursive-include tests/certs *
Loading