Skip to content

Commit

Permalink
Drop EOL Python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek authored and florimondmanca committed Mar 27, 2022
1 parent c82885a commit 325be5f
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-suite.yml
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: "actions/checkout@v2"
Expand Down
1 change: 0 additions & 1 deletion README.md
Expand Up @@ -140,7 +140,6 @@ As well as these optional installs:
* `rich` - Rich terminal support. *(Optional, with `httpx[cli]`)*
* `click` - Command line client support. *(Optional, with `httpx[cli]`)*
* `brotli` or `brotlicffi` - Decoding for "brotli" compressed responses. *(Optional, with `httpx[brotli]`)*
* `async_generator` - Backport support for `contextlib.asynccontextmanager`. *(Only required for Python 3.6)*

A huge amount of credit is due to `requests` for the API layout that
much of this work follows, as well as to `urllib3` for plenty of design
Expand Down
5 changes: 2 additions & 3 deletions README_chinese.md
Expand Up @@ -86,7 +86,7 @@ HTTPX将并为您提供以下功能:
* 支持HTTP(S) 代理
* 支持设定timeout
* 流式下载
* 支持 .netrc
* 支持 .netrc
* 接收Chunked编码

## 安装
Expand All @@ -111,7 +111,7 @@ HTTPX 要求 Python 3.6版本或更高.

想学习基础知识?请访问 [快速开始](https://www.python-httpx.org/quickstart/).

想获得进阶帮助? 请访问 [Advanced Usage](https://www.python-httpx.org/advanced/) 来获得答案, 不妨来看看 [异步支持](https://www.python-httpx.org/async/) 或者 [HTTP/2](https://www.python-httpx.org/http2/)
想获得进阶帮助? 请访问 [Advanced Usage](https://www.python-httpx.org/advanced/) 来获得答案, 不妨来看看 [异步支持](https://www.python-httpx.org/async/) 或者 [HTTP/2](https://www.python-httpx.org/http2/)

[Developer Interface](https://www.python-httpx.org/api/) 提供了全面的API参考。

Expand All @@ -136,7 +136,6 @@ HTTPX项目依赖于这些优秀的库:
* `rich` - Rich terminal support. *(Optional, with `httpx[cli]`)*
* `click` - Command line client support. *(Optional, with `httpx[cli]`)*
* `brotli` or `brotlicffi` - Decoding for "brotli" compressed responses. *(Optional, with `httpx[brotli]`)*
* `async_generator` - Backport support for `contextlib.asynccontextmanager`. *(Only required for Python 3.6)*

A huge amount of credit is due to `requests` for the API layout that
much of this work follows, as well as to `urllib3` for plenty of design
Expand Down
1 change: 0 additions & 1 deletion docs/index.md
Expand Up @@ -121,7 +121,6 @@ As well as these optional installs:
* `rich` - Rich terminal support. *(Optional, with `httpx[cli]`)*
* `click` - Command line client support. *(Optional, with `httpx[cli]`)*
* `brotli` or `brotlicffi` - Decoding for "brotli" compressed responses. *(Optional, with `httpx[brotli]`)*
* `async_generator` - Backport support for `contextlib.asynccontextmanager`. *(Only required for Python 3.6)*

A huge amount of credit is due to `requests` for the API layout that
much of this work follows, as well as to `urllib3` for plenty of design
Expand Down
3 changes: 1 addition & 2 deletions httpx/_client.py
Expand Up @@ -2,12 +2,11 @@
import enum
import typing
import warnings
from contextlib import contextmanager
from contextlib import asynccontextmanager, contextmanager
from types import TracebackType

from .__version__ import __version__
from ._auth import Auth, BasicAuth, FunctionAuth
from ._compat import asynccontextmanager
from ._config import (
DEFAULT_LIMITS,
DEFAULT_MAX_REDIRECTS,
Expand Down
7 changes: 0 additions & 7 deletions httpx/_compat.py
Expand Up @@ -5,13 +5,6 @@
import ssl
import sys

# `contextlib.asynccontextmanager` exists from Python 3.7 onwards.
# For 3.6 we require the `async_generator` package for a backported version.
if sys.version_info >= (3, 7):
from contextlib import asynccontextmanager # type: ignore
else:
from async_generator import asynccontextmanager # type: ignore # noqa

# Brotli support is optional
# The C bindings in `brotli` are recommended for CPython.
# The CFFI bindings in `brotlicffi` are recommended for PyPy and everything else.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -37,7 +37,7 @@ def get_packages(package):

setup(
name="httpx",
python_requires=">=3.6",
python_requires=">=3.7",
version=get_version("httpx"),
url="https://github.com/encode/httpx",
project_urls={
Expand Down

0 comments on commit 325be5f

Please sign in to comment.