Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requests doesn't work in bet365 #2

Merged
merged 254 commits into from
Mar 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
254 commits
Select commit Hold shift + click to select a range
bdc00eb
Merge pull request #5755 from pdmccormick/master
sigmavirus24 Feb 17, 2021
913880c
Fix typo
andrewmwhite Feb 24, 2021
06462a6
quickstart.rst: r.json() can raise JSONDecodeError on Py3
cclauss Mar 18, 2021
4193b95
simplejson.JSONDecodeError may be raised on Py2 and Py3
cclauss Mar 18, 2021
f79d1ef
Also update requests.models.Response
cclauss Mar 18, 2021
5433656
Merge pull request #5777 from cclauss/patch-1
sigmavirus24 Mar 18, 2021
c267415
Remove call to set default value for allow_redirects
laggardkernel Mar 19, 2021
2c2138e
Update setup.py (#5780)
armangido Mar 19, 2021
c45a4df
grammar fix (#5791)
cocobennett Apr 11, 2021
05a1a21
Throw value error when serializing JSON object with NaN value (#5810)
tallalnparis4ev May 6, 2021
f6d43b0
Updated to new be-cordial-or-be-on-your-way URL and CoC now reference…
MarkCBell May 7, 2021
1466ad7
Fix GitHub links (#5835)
fmarier Jun 1, 2021
33d448e
Pin Flask to <2.0 to fix the test suite
Ousret Jul 6, 2021
2ed84f5
Switch LGPL'd chardet for MIT licensed charset_normalizer (#5797)
ashb Jul 6, 2021
2463074
Avoid zip extract racing condition by using read+write instead extrac…
gaborbernat Jul 7, 2021
5351469
Add support for brotli decoding (#5783)
dilyanpalauzov Jul 7, 2021
33cf965
Allow idna 3.x to be installed on Python 3.x
naorlivne Jul 7, 2021
f6c0619
Disable requests[security] and remove 3.5 support references
nateprewitt Jul 9, 2021
e253eba
Stop abusing pytest-httpbin to test commonName support
pquentin Jul 12, 2021
a1a6a54
v2.26.0
nateprewitt Jul 9, 2021
a5b45ed
Update api.rst (#5877)
steveberdy Jul 16, 2021
a3d54b8
Update advanced.rst (#5821)
Akay7 Jul 18, 2021
941a77f
docs: Update the Red Hat vulnerabilities contact (#5881)
jeremycline Jul 19, 2021
db575ee
Fix inconsistent exception type in response.json() method (#5856)
steveberdy Jul 26, 2021
b227e3c
Fix creating non-listening sockets in tests on some platforms (#5890)
mgorny Jul 28, 2021
d8829f9
Fix extract_zipped_paths infinite loop when provided invalid unc path…
tl-hbk Aug 3, 2021
b0e025a
Fix broken link to adapters essay (#5899)
itsadok Aug 4, 2021
2d30aeb
Add a test which verifies that ChunkedEncodingError is emitted if an …
theGOTOguy Aug 25, 2021
827b87b
Formatting (#5910)
verhovsky Aug 25, 2021
7adb868
Add thread locker workflow (#5909)
sigmavirus24 Aug 25, 2021
8ea90a5
Shorten the window before we lock threads
sigmavirus24 Aug 25, 2021
70a13e2
Fix syntax error in lock action (#5912)
nateprewitt Aug 26, 2021
b351e90
Update codeql branch target (#5913)
nateprewitt Aug 26, 2021
1096835
Appropriately handle urllib3's InvalidHeader exception (#5914)
nateprewitt Aug 27, 2021
aae7801
Time out requests' tests after 10 minutes. (#5916)
theGOTOguy Aug 27, 2021
6fbfca9
Send only one Host header in chunked request
hodbn Mar 17, 2020
4ab2550
Add test for default chunked Host header
nateprewitt Sep 2, 2021
9572d6a
General doc updates (#5923)
nateprewitt Sep 2, 2021
248122a
Add support for 3.10 (#5928)
nateprewitt Sep 4, 2021
1e5fad7
Update lock-issues.yml (#5930)
sigmavirus24 Sep 8, 2021
fc106ab
fix minor typos (#5934)
Sep 15, 2021
94f9f73
Don't mention pip as the reason for supporting py2 (#5940)
verhovsky Sep 21, 2021
9dd6e47
Add doc build requirements for RTD (#5956)
nateprewitt Oct 9, 2021
590350f
Update Bug_report.md (#5965)
alanyee Oct 21, 2021
e2fa8d3
mention all_proxy env variable in Proxies section
sha016 Nov 14, 2021
99b3b49
Refactor rebuild_proxies to allow proxy resolution (#5924)
nateprewitt Nov 24, 2021
55da533
Defer the trustme import until inside the fixture
mgorny Nov 27, 2021
e77dd8d
Merge pull request #5990 from mgorny/trustme-test-dep
sigmavirus24 Nov 28, 2021
2d2447e
Catch AttributeError in utils.super_len (#5239)
dimbleby Nov 28, 2021
7556ea4
Merge pull request #5391 from hodbn/fix-5274
nateprewitt Nov 29, 2021
8e764f3
Run tox in parallel using -p instead of detox
davisagli Nov 30, 2021
c193d97
Merge pull request #5993 from davisagli/tox-parallel
sigmavirus24 Nov 30, 2021
39d0fdd
Update README.md (#5998)
vashisthabhinav Dec 5, 2021
658c10e
Raise InvalidURL if hosts starts with '.' as was reported at #5367.
mondeja Apr 5, 2020
4246792
Fix erroneous use of 'schema' instead of 'scheme'
nateprewitt Dec 29, 2021
401e17b
Update basic auth example
nateprewitt Dec 29, 2021
e2064a2
Merge pull request #6018 from nateprewitt/basic_auth_update
sigmavirus24 Dec 29, 2021
2b06a95
Merge pull request #6017 from nateprewitt/schema2scheme
sigmavirus24 Dec 29, 2021
d096599
Merge pull request #5414 from mondeja/5367
sigmavirus24 Dec 29, 2021
ef59aa0
Move from urlparse to parse_url for prepending schemes
nateprewitt Aug 27, 2021
0d5347e
Only compute should_bypass_proxies if needed
nateprewitt Dec 29, 2021
86bbee7
Update 3.10-dev to 3.10 and add pypy-3.7
nateprewitt Dec 29, 2021
28d537d
Merge pull request #5917 from nateprewitt/proxy_scheme_unknown_fix
sigmavirus24 Dec 29, 2021
b0829a8
Merge pull request #6020 from nateprewitt/pypy_37
sigmavirus24 Dec 29, 2021
77d1e9a
Merge pull request #5894 from dbaxa/do-not-re-build-proxies-when-prox…
nateprewitt Dec 29, 2021
ab38e2c
Make the `data` vs `json` parameters more clear (#5382)
gdubicki Dec 29, 2021
17e6e27
General cleanup for 2.27.0
nateprewitt Dec 29, 2021
e50dc12
Fix doc link
nateprewitt Jan 3, 2022
0192aac
v2.27.0
nateprewitt Dec 29, 2021
38f3f8e
Fix auth parsing for proxies
nateprewitt Jan 4, 2022
8fa9724
Merge pull request #6028 from nateprewitt/prox_auth_fix
sigmavirus24 Jan 4, 2022
31a89d9
v2.27.1
nateprewitt Jan 5, 2022
620ed4f
Move socks testing requirement into requirements-dev.txt (#6035)
notAutomne Jan 6, 2022
d718e75
Start testing on 3.11 dev branch (#6037)
nateprewitt Jan 7, 2022
48676ca
Disable lock-threads on forks
nateprewitt Jan 11, 2022
d15a3b6
Merge pull request #6042 from nateprewitt/lock_thread_spam
sigmavirus24 Jan 11, 2022
fa1b0a3
Initialize JsonDecodeError before initializing IOError (#6036)
chyzzqo2 Jan 13, 2022
24dfbfd
Update quickstart.rst : fixing brotlicffi link (#6044)
Chavithra Jan 17, 2022
2c20474
Update advanced.rst
sethmlarson Feb 2, 2022
7ae3887
Merge pull request #5978 from sha016/all-proxy-docs
nateprewitt Feb 2, 2022
95f4567
Wrap urllib3's SSLError as requests' SSLError (#6057)
nateprewitt Feb 5, 2022
15fde02
Reword proxies section and add warning
nateprewitt Feb 19, 2022
3ed6007
Fix jinja
nateprewitt Feb 19, 2022
3eed051
Merge pull request #6069 from nateprewitt/jinja_fix
sigmavirus24 Feb 19, 2022
5e74954
Merge pull request #6068 from nateprewitt/sess_prox_warn
sigmavirus24 Feb 19, 2022
79c4a01
Fix environment CA Bundle resolution
nateprewitt Feb 25, 2022
79f6027
Merge pull request #6074 from nateprewitt/curl_ca_bundle
sigmavirus24 Feb 26, 2022
8bce583
Farewell, sweet Concorde!
nateprewitt Mar 25, 2022
2d55176
Fix inconsistent exception for JSONDecode error (#6097)
nateprewitt Mar 28, 2022
2a6f290
Add automatic code formatting to Requests (#6095)
nateprewitt Apr 29, 2022
4095672
Add .git-blame-ignore-revs
nateprewitt Apr 29, 2022
cb233a1
Fix several ResourceWarnings in test_requests.py (#4766)
BoboTiG May 11, 2022
79f2ec3
Grammar fix (#6133)
davidshivaji May 13, 2022
a5e7169
Cleanup the docs sidebar (#6144)
nateprewitt May 26, 2022
210095f
Tolerate bad registry entries in Windows proxy settings (#6149)
nateprewitt Jun 1, 2022
0f358ea
Reduce lock thread runs to daily (#6150)
nateprewitt Jun 1, 2022
3af2f45
Fix output of test_lowlevel tests in case of timeout (#6136)
ogayot Jun 8, 2022
60865f2
Run 3.11 CI on all platforms (#6155)
nateprewitt Jun 8, 2022
e36f345
Add valdation for header name (#6154)
nateprewitt Jun 8, 2022
1dcf3b7
Add GitHub action to automate linting (#6157)
nateprewitt Jun 8, 2022
da9996f
v2.28.0
nateprewitt Jun 9, 2022
73793ce
Update Dependency with `chardet>=3.0.2,<6` (#6179)
hswong3i Jun 28, 2022
0e28c8f
Allow charset normalizer >=2 and <3 (#6169)
frenzymadness Jun 29, 2022
16b418b
Use yield from instead of looping yield (#6170)
Jun 29, 2022
4d39457
v2.28.1
nateprewitt Jun 29, 2022
bda7f01
Fixed warnings message to suggest using secure protocol. (#6188)
slyapustin Jun 29, 2022
7862556
Remove Python 2 mention from tox (#6200)
mila Jul 20, 2022
177dd90
Remove Python 2 mention on `chardet` behavior (#6204)
DavidCain Jul 27, 2022
da24695
Fix CURL_CA_BUNDLE override example
jaap3 Sep 7, 2022
7104ad4
Merge pull request #6234 from jaap3/patch-1
sigmavirus24 Sep 9, 2022
c57f1f0
Allow charset normalizer >=2 and <4 (#6261)
deedy5 Oct 20, 2022
7908ad3
JSONDecodeError included in the documentation #6260
winmorre Oct 21, 2022
1e62a3e
Merge pull request #6262 from winmorre/docs-update/#6260
sigmavirus24 Oct 21, 2022
53a0562
change to SPDX conform license string
Oct 23, 2022
1920835
Replace git protocol URL in docs with an HTTPS URL
oliviacrain Nov 21, 2022
ac3be98
Merge pull request #6291 from oliviacrain/docs/git-clone-protocol
sigmavirus24 Nov 21, 2022
ec553c2
Update flake8 repo and version (#6317)
ch-iv Dec 26, 2022
2745db1
Switch to Python 3.11 final on CI and add to tox file (#6325)
browniebroke Jan 6, 2023
eb07385
ci: add minimum GitHub token permissions for workflows (#6236)
ashishkurmi Jan 11, 2023
61c324d
v2.28.2
nateprewitt Jan 12, 2023
16a17a3
fix: Remove '<4' from python_requires (#6333)
matthewfeickert Jan 19, 2023
1558590
Support missing SNIMissingWarning in tests (#6336)
pquentin Jan 21, 2023
4618825
Response.raw.read() returns bytes (#6365)
verhovsky Feb 27, 2023
ec78348
Upgrade lint.yml action (#6370)
nateprewitt Mar 3, 2023
e90852d
Make json doc strings consistent (#6368)
zhu-yifang Mar 3, 2023
7f694b7
Allow str/bytes subclasses to be used as header parts
sethmlarson Feb 17, 2023
26bea1e
Use urllib3 native chunking ability (#6226)
shadycuz Apr 22, 2023
dfc3e24
pin cryptography<40 on pypy 3.7 (#6421)
graingert Apr 22, 2023
a7da1ab
try on ubuntu 22.04 (#6418)
graingert Apr 22, 2023
51716c4
enable the warnings plugin (#6416)
graingert Apr 23, 2023
87d63de
v2.29.0
nateprewitt Apr 26, 2023
f2629e9
Remove strict parameter (#6434)
pquentin Apr 28, 2023
2ad18e0
v2.30.0
nateprewitt May 3, 2023
d3d5044
Fixed a small typo (#6452)
syed-saif May 9, 2023
b639e66
test on py3.12 (#6448)
graingert May 13, 2023
3022253
test on pypy 3.8 and pypy 3.9 on windows and macos (#6424)
graingert May 15, 2023
74ea7cf
Merge pull request from GHSA-j8r2-6x86-q33q
nateprewitt May 22, 2023
147c851
v2.31.0
nateprewitt May 22, 2023
6e5b15d
Fix linting issues
nateprewitt May 22, 2023
22db55a
Fix doc typo (#6467)
verhovsky Jun 26, 2023
cdbc2e2
Add an Example for automatic retries to the Advanced Usage docs (#6258)
matthewarmand Jul 3, 2023
fecf3dc
add docstring parameter `hooks` (#6456)
cpzt Jul 30, 2023
2ecdb68
Update reference to "cookielib" to "cookiejar" in documentation (#6214)
ittner Jul 30, 2023
dfe46c1
refactor: prefer dictionary comphrension to loop (#6187)
Jul 30, 2023
aa4cc78
Add note about adapter prefix match to docs (#6465)
ZetaTwo Jul 30, 2023
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
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
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
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[run]
omit = requests/packages/*
omit = requests/packages/*
5 changes: 5 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# You can configure git to automatically use this file with the following config:
# git config --global blame.ignoreRevsFile .git-blame-ignore-revs

# Add automatic code formatting to Requests
2a6f290bc09324406708a4d404a88a45d848ddf9
7 changes: 5 additions & 2 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Be cordial or be on your way.
# Treat each other well

https://www.kennethreitz.org/essays/be-cordial-or-be-on-your-way
Everyone participating in the _requests_ project, and in particular in the issue tracker,
pull requests, and social media activity, is expected to treat other people with respect
and more generally to follow the guidelines articulated in the
[Python Community Code of Conduct](https://www.python.org/psf/codeofconduct/).
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ import requests

This command is only available on Requests v2.16.4 and greater. Otherwise,
please provide some basic information about your system (Python version,
operating system, &c).
operating system, &c).
16 changes: 9 additions & 7 deletions .github/ISSUE_TEMPLATE/Bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ about: Create a report to help us improve

---

Summary.
<!-- Summary. -->

## Expected Result

What you expected.
<!-- What you expected. -->

## Actual Result

What happened instead.
<!-- What happened instead. -->

## Reproduction Steps

Expand All @@ -25,10 +25,12 @@ import requests

$ python -m requests.help

```
<paste here>
```json
{
"paste": "here"
}
```

This command is only available on Requests v2.16.4 and greater. Otherwise,
<!-- This command is only available on Requests v2.16.4 and greater. Otherwise,
please provide some basic information about your system (Python version,
operating system, &c).
operating system, &c). -->
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
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
21 changes: 14 additions & 7 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,22 @@ name: "CodeQL"

on:
push:
branches: [master]
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
branches: [main]
schedule:
- cron: '0 23 * * 0'

permissions:
contents: read

jobs:
analyze:
permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/autobuild to send a status report
name: Analyze
runs-on: ubuntu-latest

Expand All @@ -25,7 +32,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
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 @@ -38,18 +45,18 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0
with:
languages: "python"
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# 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@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0

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

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@e8893c57a1f3a2b659b6b55564fdfdbbd2982911 # v3.24.0
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint code

on: [push, pull_request]

permissions:
contents: read

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

steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Set up Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: "3.x"
- name: Run pre-commit
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 # v3.0.0
19 changes: 19 additions & 0 deletions .github/workflows/lock-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Lock Threads'

on:
schedule:
- cron: '0 0 * * *'

permissions:
issues: write
pull-requests: write

jobs:
action:
if: github.repository_owner == 'psf'
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@d42e5f49803f3c4e14ffee0378e31481265dda22 # v5.0.0
with:
issue-lock-inactive-days: 90
pr-lock-inactive-days: 90
19 changes: 9 additions & 10 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,26 @@ name: Tests

on: [push, pull_request]

permissions:
contents: read

jobs:
build:
runs-on: ${{ matrix.os }}

timeout-minutes: 10
strategy:
fail-fast: false
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
os: [ubuntu-18.04, macOS-latest, windows-latest]
include:
# pypy3 on Mac OS currently fails trying to compile
# brotlipy. Moving pypy3 to only test linux.
- python-version: pypy3
os: ubuntu-latest
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.9", "pypy-3.10"]
os: [ubuntu-22.04, macOS-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
make
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ env/

.workon

# in case you work with IntelliJ/PyCharm
.idea
*.iml
.python-version


t.py

t2.py
Expand Down
28 changes: 28 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
exclude: 'docs/|ext/'

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
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
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
exclude: tests/test_lowlevel.py
- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/PyCQA/flake8
rev: 6.1.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
4 changes: 3 additions & 1 deletion AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Keepers of the Crystals

Previous Keepers of Crystals
````````````````````````````
- Kenneth Reitz <[email protected]> `@ken-reitz <https://github.com/ken-reitz>`_, reluctant Keeper of the Master Crystal.
- Kenneth Reitz <[email protected]> `@kennethreitz <https://github.com/kennethreitz>`_, reluctant Keeper of the Master Crystal.
- Cory Benfield <[email protected]> `@lukasa <https://github.com/lukasa>`_
- Ian Cordasco <[email protected]> `@sigmavirus24 <https://github.com/sigmavirus24>`_.

Expand Down Expand Up @@ -191,3 +191,5 @@ Patches and Suggestions
- "Dull Bananas" <[email protected]> (`@dullbananas <https://github.com/dullbananas>`_)
- 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>`_)
Loading
Loading