Skip to content

Commit

Permalink
Drop Python 3.8 support (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz authored Oct 28, 2024
1 parent 506c914 commit e64664b
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 653 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 @@ -34,7 +34,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.

0.2.0 (2024-06-19)
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Use `watchfiles <https://watchfiles.helpmanual.io/>`__ in Django’s autoreloade
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_watchfiles/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import fnmatch
import threading
from collections.abc import Generator
from pathlib import Path
from typing import Any
from typing import Callable
from typing import Generator

import watchfiles
from django.utils import autoreload
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
141 changes: 0 additions & 141 deletions tests/requirements/py38-django32.txt

This file was deleted.

Loading

0 comments on commit e64664b

Please sign in to comment.