-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Changes from 218 commits
bdc00eb
913880c
06462a6
4193b95
f79d1ef
5433656
c267415
2c2138e
c45a4df
05a1a21
f6d43b0
1466ad7
33d448e
2ed84f5
2463074
5351469
33cf965
f6c0619
e253eba
a1a6a54
a5b45ed
a3d54b8
941a77f
db575ee
b227e3c
d8829f9
b0e025a
2d30aeb
827b87b
7adb868
8ea90a5
70a13e2
b351e90
1096835
aae7801
6fbfca9
4ab2550
9572d6a
248122a
1e5fad7
fc106ab
94f9f73
9dd6e47
590350f
e2fa8d3
99b3b49
55da533
e77dd8d
2d2447e
7556ea4
8e764f3
c193d97
39d0fdd
658c10e
4246792
401e17b
e2064a2
2b06a95
d096599
ef59aa0
0d5347e
86bbee7
28d537d
b0829a8
77d1e9a
ab38e2c
17e6e27
e50dc12
0192aac
38f3f8e
8fa9724
31a89d9
620ed4f
d718e75
48676ca
d15a3b6
fa1b0a3
24dfbfd
2c20474
7ae3887
95f4567
15fde02
3ed6007
3eed051
5e74954
79c4a01
79f6027
8bce583
2d55176
2a6f290
4095672
cb233a1
79f2ec3
a5e7169
210095f
0f358ea
3af2f45
60865f2
e36f345
1dcf3b7
da9996f
73793ce
0e28c8f
16b418b
4d39457
bda7f01
7862556
177dd90
da24695
7104ad4
c57f1f0
7908ad3
1e62a3e
53a0562
1920835
ac3be98
ec553c2
2745db1
eb07385
61c324d
16a17a3
1558590
4618825
ec78348
e90852d
7f694b7
26bea1e
dfc3e24
a7da1ab
51716c4
87d63de
f2629e9
2ad18e0
d3d5044
b639e66
3022253
74ea7cf
147c851
6e5b15d
22db55a
cdbc2e2
fecf3dc
2ecdb68
dfe46c1
aa4cc78
cb7fcd7
9b6c62e
34a64bc
2c193bd
8112fcc
ea49261
c793345
9acca90
6ad4936
09a241f
4bd06cd
9ff1a25
d815276
678fca8
e9fa2e2
d63e94f
005571d
89f0eb9
2ee5b0b
bea231b
16dc70d
4585a7f
8b560ec
29fc8d1
8812812
6c8d9b1
a775435
ee93fac
f5a7aef
42a3b5c
8199a2b
f75b950
8187768
b55bb15
a8e9c1b
839a8ed
ad761ab
e9b1217
d7490c9
89cde23
c32b046
9e98a87
e66a07b
c6de5a1
1584994
0b4d494
f670704
b37878d
889910c
ec84f2c
3fd309a
d6ffd86
769bc3a
ba67dc8
a25fde6
a64f32b
c7c2ebf
51d0d83
951dd15
92f9e43
1ddf014
3b5978f
1447bcc
421b1f1
e4c821a
1396eb6
242d311
b5bd0f1
f3f9784
f23346a
bfba9dc
25939d8
72eccc8
b0e6c9b
96b22fa
3ff3ff2
a5a0e4b
4f3f189
6106a63
46c1a3d
5fc10bf
28855fd
8fa4302
9439fad
58cea7a
7a13c04
382fc2c
60389df
3587a5f
b8be93a
0ec2780
d3b3399
541aa80
5f1c3c2
0a7f662
a0e79ba
f3f2611
eea3bbf
c0813a2
a58d7f2
a94e9b5
eeafb6a
1604e20
13d892b
8dd3b26
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[run] | ||
omit = requests/packages/* | ||
omit = requests/packages/* |
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 |
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/). |
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"] |
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 |
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 |
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,27 +2,31 @@ 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] | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev", "pypy-3.8", "pypy-3.9"] | ||
os: [ubuntu-22.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 | ||
# pypy-3.7 on Windows and Mac OS currently fails trying to compile | ||
# cryptography. Moving pypy-3.7 to only test linux. | ||
- python-version: pypy-3.7 | ||
os: ubuntu-latest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Python versions in the matrix have been updated to include new versions. However, there is a discrepancy with the existing comments regarding the testing of PyPy 3.7. The comment mentions that PyPy 3.7 should be removed if it's no longer being tested, but it appears in the |
||
|
||
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 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,12 @@ env/ | |
|
||
.workon | ||
|
||
# in case you work with IntelliJ/PyCharm | ||
.idea | ||
*.iml | ||
.python-version | ||
|
||
|
||
t.py | ||
|
||
t2.py | ||
|
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 |
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: | ||
- 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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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>`_) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment explains why PyPy 3.7 is only tested on Ubuntu. This is a good example of documenting the reasoning behind CI configuration decisions. However, the matrix includes "pypy-3.8" and "pypy-3.9" but not "pypy-3.7". If "pypy-3.7" is no longer being tested, this comment and the corresponding matrix entry should be removed to avoid confusion.