From 1c99a464588046737f1b34ddf678d78cd6683511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Freitag?= Date: Mon, 17 Jul 2023 14:59:02 +0200 Subject: [PATCH] Remove support for EOL Python 3.7 --- .github/workflows/test.yml | 2 -- Makefile | 1 - docs/changelog.rst | 1 + readthedocs.yml | 6 ++++++ setup.cfg | 4 +--- tox.ini | 10 ++++------ 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 77ff9a18..06fe75c3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,13 +17,11 @@ jobs: fail-fast: false matrix: python-version: - - "3.7" - "3.8" - "3.9" - "3.10" - "3.11" - "3.12" - - "pypy-3.7" - "pypy-3.8" - "pypy-3.9" database-type: diff --git a/Makefile b/Makefile index 927689a9..a31a9fb8 100644 --- a/Makefile +++ b/Makefile @@ -59,7 +59,6 @@ test: -X dev \ -Werror \ -Wdefault:"the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses":DeprecationWarning:distutils: \ - -Wdefault:"Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working":DeprecationWarning:: \ -Wdefault:"Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working":DeprecationWarning:: \ -Wdefault:"set_output_charset() is deprecated":DeprecationWarning:: \ -Wdefault:"parameter codeset is deprecated":DeprecationWarning:: \ diff --git a/docs/changelog.rst b/docs/changelog.rst index 036254e8..7c34c589 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -67,6 +67,7 @@ ChangeLog - Drop support for Django 3.0 - Drop support for Django 3.1 - Drop support for Python 3.6 + - Drop support for Python 3.7 3.2.1 (2021-10-26) ------------------ diff --git a/readthedocs.yml b/readthedocs.yml index 57cad8d1..883f654f 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -1,5 +1,11 @@ --- version: 2 + +build: + os: ubuntu-22.04 + tools: + python: "3.11" + python: install: - method: pip diff --git a/setup.cfg b/setup.cfg index 8a9c4f4e..bc242d4f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -24,7 +24,6 @@ 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 @@ -37,10 +36,9 @@ classifiers = [options] packages = factory -python_requires = >=3.7 +python_requires = >=3.8 install_requires = Faker>=0.7.0 - importlib_metadata;python_version<"3.8" [options.extras_require] dev = diff --git a/tox.ini b/tox.ini index 287ea48c..d4873869 100644 --- a/tox.ini +++ b/tox.ini @@ -5,21 +5,19 @@ envlist = docs examples linkcheck - py{37,38,39,310,311,py37,py38,py39}-sqlite - py{37,38,39,310,311,py37,py38,py39}-django32-mongo-alchemy-{sqlite,postgres} + py{38,39,310,311,py38,py39}-sqlite + py{38,39,310,311,py38,py39}-django32-mongo-alchemy-{sqlite,postgres} py{38,39,310,311,py38,py39}-django40-mongo-alchemy-{sqlite,postgres} py{38,39,310,311,py38,py39}-django41-mongo-alchemy-{sqlite,postgres} py310-djangomain-mongo-alchemy-{sqlite,postgres} [gh-actions] python = - 3.7: py37 3.8: py38 3.9: py39 3.10: py310 3.11: py311 3.12: py312 - pypy-3.7: pypy37 pypy-3.8: pypy38 pypy-3.9: pypy39 @@ -42,8 +40,8 @@ deps = django41: Django>=4.1,<4.2 django42: Django>=4.2,<5.0 djangomain: https://github.com/django/django/archive/main.tar.gz - py{37,38,39,310,311}-postgres: psycopg2-binary - pypy{37,38,39}-postgres: psycopg2cffi + py{38,39,310,311}-postgres: psycopg2-binary + pypy{38,39}-postgres: psycopg2cffi setenv = py: DJANGO_SETTINGS_MODULE=tests.djapp.settings