forked from psf/requests
-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3.4.0 (2024-01-01) ------------------ **Added** - Support for specifying a custom DNS resolver in `Session`. - Support for passing the source address in `Session`. - Support for disabling either IPv4 or IPv6 within a `Session`. **Changed** - PySocks is no longer used for SOCKS proxies. Replaced by **python-socks** instead. - urllib3.future minimal version raised to 2.4+ to leverage newly added features. - Improve compatibility when end-user inadvertently pass a `Timeout` or `Retry` instance from the legacy `urllib3` instead of `urllib3_future`. **Fixed** - Blocking the event loop when closing the `AsyncSession` using `with`. - Rare exception on older PyPy interpreters due to Generic having unsupported type variable in `extensions._sync_to_async` module. **Misc** - Project extras aligned with **urllib3.future**. - Using nox instead of tox. - Switch to ruff instead of black and isort.
- Loading branch information
Showing
30 changed files
with
876 additions
and
186 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
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 |
---|---|---|
|
@@ -21,6 +21,8 @@ env/ | |
.pytest_cache/ | ||
.vscode/ | ||
.eggs/ | ||
.nox/ | ||
.ruff_cache/ | ||
|
||
.workon | ||
|
||
|
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
.PHONY: docs | ||
init: | ||
python -m pip install -r requirements-dev.txt | ||
python -m pip install nox coverage | ||
test: | ||
# This runs all of the tests on all supported Python versions. | ||
tox -p | ||
nox -s test | ||
ci: | ||
python -m pytest tests --verbose --junitxml=report.xml | ||
nox -s test | ||
|
||
coverage: | ||
python -m pytest --cov-config .coveragerc --verbose --cov-report term --cov-report xml --cov=niquests tests | ||
python -m coverage combine && python -m coverage report --ignore-errors --show-missing | ||
|
||
docs: | ||
cd docs && make html | ||
nox -s docs | ||
@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/_build/html/index.html.\n\033[0m" |
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
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
Oops, something went wrong.