Skip to content

Commit

Permalink
Drop support for python 3.7, and by extension django 2.0 and 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LincolnPuzey committed Jun 4, 2023
1 parent c49a80f commit 09e165c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 39 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/tests.yml
Expand Up @@ -15,28 +15,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
django: ['2.0', '2.1', '2.2', '3.0', '3.1', '3.2', '4.0', '4.1', '4.2']
python: ['3.8', '3.9', '3.10', '3.11']
django: ['2.2', '3.0', '3.1', '3.2', '4.0', '4.1', '4.2']
database: ['postgres', 'sqlite']
exclude:
- python: '3.7'
django: '4.0'
- python: '3.7'
django: '4.1'
- python: '3.7'
django: '4.2'
- python: '3.8'
django: '2.0'
- python: '3.8'
django: '2.1'
- python: '3.9'
django: '2.0'
- python: '3.9'
django: '2.1'
- python: '3.10'
django: '2.0'
- python: '3.10'
django: '2.1'
- python: '3.10'
django: '2.2'
- python: '3.10'
Expand Down
4 changes: 4 additions & 0 deletions ChangeLog.rst
Expand Up @@ -6,6 +6,10 @@ ChangeLog
unreleased
----------

*New:*
- Drop support for Python 3.7
- Drop support for Django 2.0
- Drop support for Django 2.1


.. _v1.9.2:
Expand Down
8 changes: 2 additions & 6 deletions README.rst
Expand Up @@ -27,13 +27,9 @@ This package is compatible and tested with the following Python & Django version
+------------------------+-----------------------------------+
| Django | Python |
+========================+===================================+
| 2.0, 2.1 | 3.7 |
| 2.2, 3.0, 3.1 | 3.8, 3.9 |
+------------------------+-----------------------------------+
| 2.2, 3.0, 3.1 | 3.7, 3.8, 3.9 |
+------------------------+-----------------------------------+
| 3.2 | 3.7, 3.8, 3.9, 3.10 |
+------------------------+-----------------------------------+
| 4.0 | 3.8, 3.9, 3.10 |
| 3.2, 4.0 | 3.8, 3.9, 3.10 |
+------------------------+-----------------------------------+
| 4.1, 4.2 | 3.8, 3.9, 3.10, 3.11 |
+------------------------+-----------------------------------+
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Expand Up @@ -7,7 +7,6 @@ django_find_project = false
DJANGO_SETTINGS_MODULE = 'tests.django_settings'
filterwarnings = [
'error',
"default:Using or importing the ABCs from 'collections':DeprecationWarning", # Remove when Python3.7 dropped
]

[tool.coverage.run]
Expand Down
7 changes: 2 additions & 5 deletions setup.cfg
Expand Up @@ -17,14 +17,11 @@ classifiers =
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Framework :: Django
Framework :: Django :: 2.0
Framework :: Django :: 2.1
Framework :: Django :: 2.2
Framework :: Django :: 3.0
Framework :: Django :: 3.1
Expand All @@ -43,9 +40,9 @@ packages = find:
package_dir =
=src
include_package_data = true
python_requires = >=3.7
python_requires = >=3.8
install_requires =
Django >= 2.0
Django >= 2.2

[options.packages.find]
where = src
Expand Down
10 changes: 3 additions & 7 deletions tox.ini
Expand Up @@ -2,12 +2,10 @@
[tox]
isolated_build = True
envlist =
py{37}-django{20,21}-{postgresql,sqlite}
py{37,38,39}-django{22,30,31}-{postgresql,sqlite}
py{37,38,39,310}-django{32}-{postgresql,sqlite}
py{38,39,310}-django{40}-{postgresql,sqlite}
py{38,39}-django{22,30,31}-{postgresql,sqlite}
py{38,39,310}-django{32,40}-{postgresql,sqlite}
py{38,39,310,311}-django{41,42}-{postgresql,sqlite}
py{37,38,39,310,311}-flake8
py{38,39,310,311}-flake8

[testenv]
passenv =
Expand All @@ -16,8 +14,6 @@ setenv =
PYTHONPATH = {toxinidir}
deps =
coverage[toml]~=7.0
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
Expand Down

0 comments on commit 09e165c

Please sign in to comment.