mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-03-06 12:26:00 +03:00
Drop Python 3.8 as EOL
This commit is contained in:
parent
038670a4cf
commit
4cc8b4be81
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
|
@ -14,7 +14,6 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version:
|
python-version:
|
||||||
- '3.8'
|
|
||||||
- '3.9'
|
- '3.9'
|
||||||
- '3.10'
|
- '3.10'
|
||||||
- '3.11'
|
- '3.11'
|
||||||
|
|
|
@ -54,7 +54,7 @@ Some reasons you might want to use REST framework:
|
||||||
|
|
||||||
# Requirements
|
# Requirements
|
||||||
|
|
||||||
* Python 3.8+
|
* Python 3.9+
|
||||||
* Django 4.2, 5.0, 5.1
|
* Django 4.2, 5.0, 5.1
|
||||||
|
|
||||||
We **highly recommend** and only officially support the latest patch release of
|
We **highly recommend** and only officially support the latest patch release of
|
||||||
|
|
5
setup.py
5
setup.py
|
@ -7,7 +7,7 @@ from io import open
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
CURRENT_PYTHON = sys.version_info[:2]
|
CURRENT_PYTHON = sys.version_info[:2]
|
||||||
REQUIRED_PYTHON = (3, 8)
|
REQUIRED_PYTHON = (3, 9)
|
||||||
|
|
||||||
# This check and everything above must remain compatible with Python 2.7.
|
# This check and everything above must remain compatible with Python 2.7.
|
||||||
if CURRENT_PYTHON < REQUIRED_PYTHON:
|
if CURRENT_PYTHON < REQUIRED_PYTHON:
|
||||||
|
@ -83,7 +83,7 @@ setup(
|
||||||
packages=find_packages(exclude=['tests*']),
|
packages=find_packages(exclude=['tests*']),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=["django>=4.2", 'backports.zoneinfo;python_version<"3.9"'],
|
install_requires=["django>=4.2", 'backports.zoneinfo;python_version<"3.9"'],
|
||||||
python_requires=">=3.8",
|
python_requires=">=3.9",
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 5 - Production/Stable',
|
'Development Status :: 5 - Production/Stable',
|
||||||
|
@ -97,7 +97,6 @@ setup(
|
||||||
'Operating System :: OS Independent',
|
'Operating System :: OS Independent',
|
||||||
'Programming Language :: Python',
|
'Programming Language :: Python',
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
'Programming Language :: Python :: 3.8',
|
|
||||||
'Programming Language :: Python :: 3.9',
|
'Programming Language :: Python :: 3.9',
|
||||||
'Programming Language :: Python :: 3.10',
|
'Programming Language :: Python :: 3.10',
|
||||||
'Programming Language :: Python :: 3.11',
|
'Programming Language :: Python :: 3.11',
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -1,6 +1,6 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist =
|
envlist =
|
||||||
{py38,py39}-{django42}
|
{py39}-{django42}
|
||||||
{py310}-{django42,django50,django51,djangomain}
|
{py310}-{django42,django50,django51,djangomain}
|
||||||
{py311}-{django42,django50,django51,djangomain}
|
{py311}-{django42,django50,django51,djangomain}
|
||||||
{py312}-{django42,django50,django51,djangomain}
|
{py312}-{django42,django50,django51,djangomain}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user