Skip to content

Commit 6a594bd

Browse files
committed
changes
2 parents 96f75e7 + 0b6c110 commit 6a594bd

File tree

9 files changed

+100
-10
lines changed

9 files changed

+100
-10
lines changed

.travis.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
language: python
2+
# command to install dependencies
3+
install: "make"
4+
# command to run tests
5+
script:
6+
- |
7+
make test-readme
8+
- make ci
9+
cache: pip
10+
jobs:
11+
include:
12+
- stage: test
13+
script:
14+
- make test-readme
15+
- make ci
16+
python: '2.7'
17+
- stage: test
18+
script:
19+
- make test-readme
20+
- make ci
21+
python: '3.5'
22+
- stage: test
23+
script:
24+
- make test-readme
25+
- make ci
26+
python: '3.6'
27+
- stage: test
28+
script:
29+
- make test-readme
30+
- make ci
31+
python: '3.7'
32+
dist: xenial
33+
- stage: coverage
34+
python: '3.6'
35+
script: codecov

HISTORY.md

+12
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ dev
88

99
- \[Short description of non-trivial change.\]
1010

11+
2.22.0 (2019-05-15)
12+
-------------------
13+
14+
**Dependencies**
15+
16+
- Requests now supports urllib3 v1.25.2.
17+
(note: 1.25.0 and 1.25.1 are incompatible)
18+
19+
**Deprecations**
20+
21+
- Requests has officially stopped support for Python 3.4.
22+
1123
2.21.0 (2018-12-10)
1224
-------------------
1325

Pipfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ codecov = "*"
99
pytest-httpbin = "==1.0.0"
1010
pytest-mock = "*"
1111
pytest-cov = "*"
12-
pytest-xdist = "*"
12+
pytest-xdist = "<=1.25"
1313
alabaster = "*"
1414
readme-renderer = "*"
1515
sphinx = "<=1.5.5"

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,17 @@ Fantastic documentation is available at
7878
How to Contribute
7979
-----------------
8080

81-
1. Check for open issues or open a fresh issue to start a discussion
81+
1. Become more familiar with the project by reading our [Contributor's Guide](http://docs.python-requests.org/en/latest/dev/contributing/) and our [development philosophy](http://docs.python-requests.org/en/latest/dev/philosophy/).
82+
2. Check for open issues or open a fresh issue to start a discussion
8283
around a feature idea or a bug. There is a [Contributor
8384
Friendly](https://github.com/requests/requests/issues?direction=desc&labels=Contributor+Friendly&page=1&sort=updated&state=open)
8485
tag for issues that should be ideal for people who are not very
8586
familiar with the codebase yet.
86-
2. Fork [the repository](https://github.com/requests/requests) on
87+
3. Fork [the repository](https://github.com/requests/requests) on
8788
GitHub to start making your changes to the **master** branch (or
8889
branch off of it).
89-
3. Write a test which shows that the bug was fixed or that the feature
90+
4. Write a test which shows that the bug was fixed or that the feature
9091
works as expected.
91-
4. Send a pull request and bug the maintainer until it gets merged and
92+
5. Send a [pull request](https://help.github.com/en/articles/creating-a-pull-request-from-a-fork) and bug the maintainer until it gets merged and
9293
published. :) Make sure to add yourself to
9394
[AUTHORS](https://github.com/requests/requests/blob/master/AUTHORS.rst).

docs/_templates/sidebarintro.html

+21
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,27 @@
88
<iframe src="https://ghbtns.com/github-btn.html?user=requests&repo=requests&type=watch&count=true&size=large"
99
allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px"></iframe>
1010
</p>
11+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
12+
<style>
13+
.algolia-autocomplete{
14+
width: 100%;
15+
height: 1.5em
16+
}
17+
.algolia-autocomplete a{
18+
border-bottom: none !important;
19+
}
20+
#doc_search{
21+
width: 100%;
22+
height: 100%;
23+
}
24+
</style>
25+
<input id="doc_search" placeholder="Search the doc" autofocus/>
26+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" onload="docsearch({
27+
apiKey: 'f177061e2354c50a97bfc635e827ffab',
28+
indexName: 'python-requests',
29+
inputSelector: '#doc_search',
30+
debug: false // Set debug to true if you want to inspect the dropdown
31+
})" async></script>
1132

1233
<p>
1334
Requests is an elegant and simple HTTP library for Python, built for

docs/_templates/sidebarlogo.html

+21-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,27 @@
77
<iframe src="https://ghbtns.com/github-btn.html?user=requests&repo=requests&type=watch&count=true&size=large"
88
allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px"></iframe>
99
</p>
10-
10+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
11+
<style>
12+
.algolia-autocomplete{
13+
width: 100%;
14+
height: 1.5em
15+
}
16+
.algolia-autocomplete a{
17+
border-bottom: none !important;
18+
}
19+
#doc_search{
20+
width: 100%;
21+
height: 100%;
22+
}
23+
</style>
24+
<input id="doc_search" placeholder="Search the doc" autofocus/>
25+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" onload="docsearch({
26+
apiKey: 'f177061e2354c50a97bfc635e827ffab',
27+
indexName: 'python-requests',
28+
inputSelector: '#doc_search',
29+
debug: false // Set debug to true if you want to inspect the dropdown
30+
})" async></script>
1131

1232
<p>
1333
Requests is an elegant and simple HTTP library for Python, built for

docs/user/advanced.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -976,11 +976,12 @@ response at a time. However, these calls will still block.
976976

977977
If you are concerned about the use of blocking IO, there are lots of projects
978978
out there that combine Requests with one of Python's asynchronicity frameworks.
979-
Some excellent examples are `requests-threads`_, `grequests`_, and `requests-futures`_.
979+
Some excellent examples are `requests-threads`_, `grequests`_, `requests-futures`_, and `requests-async`_.
980980

981981
.. _`requests-threads`: https://github.com/requests/requests-threads
982982
.. _`grequests`: https://github.com/kennethreitz/grequests
983983
.. _`requests-futures`: https://github.com/ross/requests-futures
984+
.. _`requests-async`: https://github.com/encode/requests-async
984985

985986
Header Ordering
986987
---------------

requests3/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ def check_compatibility(urllib3_version: str, chardet_version: str) -> None:
5353
# Check urllib3 for compatibility.
5454
major, minor, patch = urllib3_version # noqa: F811
5555
major, minor, patch = int(major), int(minor), int(patch)
56-
# urllib3 >= 1.21.1, <= 1.24
56+
# urllib3 >= 1.21.1, <= 1.25
5757
assert major == 1
5858
assert minor >= 21
59-
assert minor <= 24
59+
assert minor <= 25
6060

6161
# Check chardet for compatibility.
6262
major, minor, patch = chardet_version.split(".")[:3]

requests3/http_auth.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def _basic_auth_str(username, password):
3939
"Non-string passwords will no longer be supported in Requests "
4040
"3.0.0. Please convert the object you've passed in ({!r}) to "
4141
"a string or bytes object in the near future to avoid "
42-
"problems.".format(password),
42+
"problems.".format(type(password)),
4343
category=DeprecationWarning,
4444
)
4545

0 commit comments

Comments
 (0)