Skip to content

Commit

Permalink
Drop Python 3.8 support (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz authored Oct 11, 2024
1 parent 0813f4f commit 712534f
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 919 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
strategy:
matrix:
python-version:
- 3.8
- 3.9
- '3.10'
- '3.11'
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ repos:
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py38-plus]
args: [--py39-plus]
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.21.0
hooks:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Changelog
=========

* Drop Python 3.8 support.

* Support Python 3.13.

1.15.0 (2024-08-15)
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ I wrote django-browser-reload whilst working on the book!
Requirements
------------

Python 3.8 to 3.13 supported.
Python 3.9 to 3.13 supported.

Django 3.2 to 5.1 supported.

Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ keywords = [
authors = [
{ name = "Adam Johnson", email = "[email protected]" },
]
requires-python = ">=3.8"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django :: 3.2",
Expand All @@ -29,7 +29,6 @@ classifiers = [
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down
2 changes: 1 addition & 1 deletion src/django_browser_reload/middleware.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import re
from typing import Awaitable
from collections.abc import Awaitable
from typing import Callable

from asgiref.sync import iscoroutinefunction
Expand Down
4 changes: 2 additions & 2 deletions src/django_browser_reload/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
import asyncio
import json
import threading
from collections.abc import AsyncGenerator
from collections.abc import Generator
from http import HTTPStatus
from pathlib import Path
from typing import Any
from typing import AsyncGenerator
from typing import Callable
from typing import Generator

import django
from django.conf import settings
Expand Down
40 changes: 0 additions & 40 deletions tests/requirements/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,46 +21,6 @@
*sys.argv[1:],
]
run = partial(subprocess.run, check=True)
run(
[
*common_args,
"--python",
"3.8",
"--output-file",
"py38-django32.txt",
],
input=b"Django>=3.2a1,<3.3",
)
run(
[
*common_args,
"--python",
"3.8",
"--output-file",
"py38-django40.txt",
],
input=b"Django>=4.0a1,<4.1",
)
run(
[
*common_args,
"--python",
"3.8",
"--output-file",
"py38-django41.txt",
],
input=b"Django>=4.1a1,<4.2",
)
run(
[
*common_args,
"--python",
"3.8",
"--output-file",
"py38-django42.txt",
],
input=b"Django>=4.2a1,<5.0",
)
run(
[
*common_args,
Expand Down
207 changes: 0 additions & 207 deletions tests/requirements/py38-django32.txt

This file was deleted.

Loading

0 comments on commit 712534f

Please sign in to comment.