Skip to content

Commit 8d6c103

Browse files
committed
build: drop support for 3.7 and Django 1.x
1 parent b821fc6 commit 8d6c103

File tree

5 files changed

+8
-16
lines changed

5 files changed

+8
-16
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
python-version:
3939
# When changing this list, be sure to check the [gh-actions] list in
4040
# tox.ini so that tox will run properly.
41-
- "3.7"
4241
- "3.8"
4342
- "3.9"
4443
- "3.10"
@@ -86,7 +85,7 @@ jobs:
8685
- name: "Set up Python"
8786
uses: "actions/setup-python@v2"
8887
with:
89-
python-version: "3.7"
88+
python-version: "3.8"
9089

9190
- name: "Install dependencies"
9291
run: |

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ A `coverage.py`_ plugin to measure test coverage of Django templates.
3131
3232
Supported on:
3333

34-
- Python: 3.7 through 3.11.
34+
- Python: 3.8 through 3.11.
3535

36-
- Django: 1.11, 2.x, 3.x and 4.x.
36+
- Django: 2.x, 3.x and 4.x.
3737

38-
- Coverage.py: 4.x or higher.
38+
- Coverage.py: 6.x or higher.
3939

4040
The plugin is pip installable::
4141

django_coverage_plugin/plugin.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ def check_debug():
9696
return True
9797

9898

99-
if django.VERSION < (1, 11):
100-
raise RuntimeError("Django Coverage Plugin requires Django 1.11 or higher")
99+
if django.VERSION < (2, 0):
100+
raise RuntimeError("Django Coverage Plugin requires Django 2.x or higher")
101101

102102

103103
# Since we are grabbing at internal details, we have to adapt as they
@@ -312,10 +312,7 @@ def lines(self):
312312
if SHOW_PARSING:
313313
print(f"-------------- {self.filename}")
314314

315-
if django.VERSION >= (1, 9):
316-
lexer = Lexer(self.source())
317-
else:
318-
lexer = Lexer(self.source(), self.filename)
315+
lexer = Lexer(self.source())
319316
tokens = lexer.tokenize()
320317

321318
# Are we inside a comment?

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def read(*names, **kwargs):
2929
Intended Audience :: Developers
3030
License :: OSI Approved :: Apache Software License
3131
Operating System :: OS Independent
32-
Programming Language :: Python :: 3.7
3332
Programming Language :: Python :: 3.8
3433
Programming Language :: Python :: 3.9
3534
Programming Language :: Python :: 3.10
@@ -43,7 +42,7 @@ def read(*names, **kwargs):
4342
Framework :: Django :: 1.11
4443
Framework :: Django :: 2.2
4544
Framework :: Django :: 3.2
46-
Framework :: Django :: 4.1
45+
Framework :: Django :: 4.2
4746
"""
4847

4948
setup(

tox.ini

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
[tox]
1616
envlist =
17-
py37-django{111,22,32}-cov{6,7,tip},
1817
py38-django{22,32,42}-cov{6,7,tip},
1918
py39-django{22,32,42}-cov{6,7,tip},
2019
py310-django{32,42,tip}-cov{6,7,tip},
@@ -26,7 +25,6 @@ deps =
2625
cov6: coverage>=6.0,<7.0
2726
cov7: coverage>=7.0,<8.0
2827
covtip: git+https://github.com/nedbat/coveragepy.git
29-
django111: Django>=1.11,<2.0
3028
django22: Django>=2.2,<3.0
3129
django32: Django>=3.2,<4.0
3230
django42: Django>=4.2,<5.0
@@ -74,7 +72,6 @@ commands =
7472

7573
[gh-actions]
7674
python =
77-
3.7: py37
7875
3.8: py38
7976
3.9: py39
8077
3.10: py310

0 commit comments

Comments
 (0)