-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'trunk' into HTTPDigestAuth
- Loading branch information
Showing
37 changed files
with
1,024 additions
and
631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,9 @@ dist | |
/docs/html | ||
/.eggs | ||
MANIFEST | ||
.coverage | ||
/.coverage | ||
/.coverage.* | ||
coverage | ||
htmlcov | ||
_trial_temp* | ||
.tox | ||
/.tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Mixing the *json* argument with *files* or *data* now raises `TypeError`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Passing non-string (`str` or `bytes`) values as part of a dict to the *headers* argument now results in a `TypeError`, as does passing any collection other than a `dict` or `Headers` instance. |
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
:mod:`treq.content.text_content()` no longer generates deprecation warnings due to use of the ``cgi`` module. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
treq now ships type annotations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Support for Python 3.7 and PyPy 3.8, which have reached end of support, has been dropped. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,11 @@ | |
"Operating System :: OS Independent", | ||
"Framework :: Twisted", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
] | ||
|
@@ -27,13 +27,15 @@ | |
package_dir={"": "src"}, | ||
setup_requires=["incremental"], | ||
use_incremental=True, | ||
python_requires=">=3.6", | ||
python_requires=">=3.7", | ||
install_requires=[ | ||
"incremental", | ||
"requests >= 2.1.0", | ||
"hyperlink >= 21.0.0", | ||
"Twisted[tls] >= 18.7.0", | ||
"Twisted[tls] >= 22.10.0", # For #11635 | ||
"attrs", | ||
"typing_extensions >= 3.10.0", | ||
"multipart", | ||
], | ||
extras_require={ | ||
"dev": [ | ||
|
@@ -46,7 +48,7 @@ | |
"sphinx<7.0.0", # Removal of 'style' key breaks RTD. | ||
], | ||
}, | ||
package_data={"treq": ["_version"]}, | ||
package_data={"treq": ["py.typed"]}, | ||
author="David Reid", | ||
author_email="[email protected]", | ||
maintainer="Tom Most", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
from __future__ import absolute_import, division, print_function | ||
from treq.api import delete, get, head, patch, post, put, request | ||
from treq.content import collect, content, json_content, text_content | ||
|
||
from ._version import __version__ | ||
from ._version import __version__ as _version | ||
|
||
from treq.api import head, get, post, put, patch, delete, request | ||
from treq.content import collect, content, text_content, json_content | ||
__version__: str = _version.base() | ||
|
||
__version__ = __version__.base() | ||
|
||
__all__ = ['head', 'get', 'post', 'put', 'patch', 'delete', 'request', | ||
'collect', 'content', 'text_content', 'json_content'] | ||
__all__ = [ | ||
"head", | ||
"get", | ||
"post", | ||
"put", | ||
"patch", | ||
"delete", | ||
"request", | ||
"collect", | ||
"content", | ||
"text_content", | ||
"json_content", | ||
] |
Oops, something went wrong.