Skip to content

Commit

Permalink
Chore: Remove support for EOL Python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jan 19, 2025
1 parent 22881a3 commit 45d8f7f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 21 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
exclude:

# Exclude test matrix slots that are no longer supported by GHA runners.
- os: 'ubuntu-20.04'
python-version: '3.6'
- os: 'macos-latest'
python-version: '3.6'
- os: 'macos-latest'
Expand Down Expand Up @@ -88,14 +90,7 @@ jobs:
cache-dependency-glob: |
pyproject.toml
- name: Install and validate package (Python 3.6)
if: matrix.python-version == '3.6'
run: |
pip install '.[full,develop,test]'
poe test
- name: Install and validate package (Python >=3.6)
if: matrix.python-version != '3.6'
- name: Install and validate package
run: |
uv pip install '.[full,develop,test]'
poe check
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
the `<target>` argument of `responder run`, but is semantically different,
as the former accepts a filesystem directory to the `package.json` file,
but the latter expects a Python entrypoint specification.
- Platform: Removed support for EOL Python 3.6

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Alternatively, install directly from the repository:

pip install 'responder[full] @ git+https://github.com/kennethreitz/responder.git'

Responder supports **Python 3.6+**.
Responder supports **Python 3.7+**.

# The Basic Idea

Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Or use standard pip where ``uv`` is not available.
pip install --upgrade 'responder'
Responder supports **Python 3.6+**. If you are looking at installing Responder
Responder supports **Python 3.7+**. If you are looking at installing Responder
for hacking on it, please refer to the :ref:`sandbox` documentation.

.. toctree::
Expand Down
10 changes: 1 addition & 9 deletions responder/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,13 @@
import uvicorn
from starlette.middleware.cors import CORSMiddleware
from starlette.middleware.errors import ServerErrorMiddleware
from starlette.middleware.exceptions import ExceptionMiddleware
from starlette.middleware.gzip import GZipMiddleware
from starlette.middleware.httpsredirect import HTTPSRedirectMiddleware
from starlette.middleware.sessions import SessionMiddleware
from starlette.middleware.trustedhost import TrustedHostMiddleware
from starlette.testclient import TestClient

# Python 3.7+
try:
from starlette.middleware.exceptions import ExceptionMiddleware
# Python 3.6
except ImportError:
from starlette.exceptions import ( # type: ignore[attr-defined,no-redef]
ExceptionMiddleware,
)

from . import status_codes
from .background import BackgroundQueue
from .formats import get_formats
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def run(self):
packages=find_packages(exclude=["tests"]),
package_data={},
entry_points={"console_scripts": ["responder=responder.ext.cli:cli"]},
python_requires=">=3.6",
python_requires=">=3.7",
setup_requires=[],
install_requires=required,
extras_require={
Expand Down Expand Up @@ -164,7 +164,6 @@ def run(self):
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Expand Down

0 comments on commit 45d8f7f

Please sign in to comment.