From 8723a0e34e02ef750daf26347201143fb5e62882 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Wed, 17 Aug 2022 22:54:39 +0200 Subject: [PATCH] Drop support for `Python 3.6` --- .github/workflows/test.yml | 2 +- CHANGES.rst | 1 + docs/setup.rst | 2 +- setup.py | 2 +- tox.ini | 3 +-- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7d08edc..784515b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: fail-fast: false max-parallel: 5 matrix: - python-version: ['3.6', '3.7', '3.8', '3.9', '3.10'] + python-version: ['3.7', '3.8', '3.9', '3.10'] services: postgres: diff --git a/CHANGES.rst b/CHANGES.rst index 11bba6c..3cf130b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -9,6 +9,7 @@ Unreleased - Add French translation - Drop Django 1.7 workaround from `select_subclasses()` - Drop support for `Django < 3.2` +- Drop support for `Python 3.6` 4.2.0 (2021-10-11) ------------------ diff --git a/docs/setup.rst b/docs/setup.rst index f94d72c..69c9840 100644 --- a/docs/setup.rst +++ b/docs/setup.rst @@ -18,6 +18,6 @@ Dependencies ============ ``django-model-utils`` supports `Django`_ 3.2+ (latest bugfix -release in each series only) on Python 3.6+. +release in each series only) on Python 3.7+. .. _Django: http://www.djangoproject.com/ diff --git a/setup.py b/setup.py index 49b5cdd..cdd2c75 100644 --- a/setup.py +++ b/setup.py @@ -29,6 +29,7 @@ setup( maintainer='JazzBand', url='https://github.com/jazzband/django-model-utils', packages=find_packages(exclude=['tests*']), + python_requires=">=3.7", install_requires=['Django>=3.2'], classifiers=[ 'Development Status :: 5 - Production/Stable', @@ -38,7 +39,6 @@ setup( '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', diff --git a/tox.ini b/tox.ini index 6022975..e72924b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,13 +1,12 @@ [tox] envlist = - py{36,37,38,39,310}-dj32 + py{37,38,39,310}-dj32 py{38,39,310}-dj{40,main} flake8 isort [gh-actions] python = - 3.6: py36 3.7: py37 3.8: py38, flake8, isort 3.9: py39