Skip to content

Commit cb495a5

Browse files
authored
Removed support for Python 3.6 (#1039)
1 parent 6bda8f1 commit cb495a5

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

Diff for: .github/workflows/tests.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
11+
python-version: ["3.7", "3.8", "3.9", "3.10"]
1212
env:
1313
PYTHON: ${{ matrix.python-version }}
1414
steps:
@@ -36,10 +36,10 @@ jobs:
3636
tox-env: ["black", "lint", "docs"]
3737
steps:
3838
- uses: actions/checkout@v2
39-
- name: Set up Python 3.6
39+
- name: Set up Python 3.7
4040
uses: actions/setup-python@v2
4141
with:
42-
python-version: 3.6
42+
python-version: 3.7
4343
- name: Install dependencies
4444
run: |
4545
python -m pip install --upgrade pip

Diff for: CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ any parts of the framework not mentioned in the documentation should generally b
2626

2727
* Removed support for Django 3.0.
2828
* Removed support for Django 3.1.
29+
* Removed support for Python 3.6.
2930

3031
## [4.3.0] - 2021-12-10
3132

32-
This is the last release supporting Django 3.0 and Django 3.1.
33+
This is the last release supporting Django 3.0, Django 3.1 and Python 3.6.
3334

3435
### Added
3536

Diff for: README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ As a Django REST framework JSON:API (short DJA) we are trying to address followi
8888
Requirements
8989
------------
9090

91-
1. Python (3.6, 3.7, 3.8, 3.9, 3.10)
91+
1. Python (3.7, 3.8, 3.9, 3.10)
9292
2. Django (2.2, 3.2, 4.0)
9393
3. Django REST framework (3.12, 3.13)
9494

Diff for: docs/getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ like the following:
5151

5252
## Requirements
5353

54-
1. Python (3.6, 3.7, 3.8, 3.9, 3.10)
54+
1. Python (3.7, 3.8, 3.9, 3.10)
5555
2. Django (2.2, 3.2, 4.0)
5656
3. Django REST framework (3.12, 3.13)
5757

Diff for: setup.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def read(*paths):
1414
"""
1515
Build a file path from paths and return the contents.
1616
"""
17-
with open(os.path.join(*paths), "r") as f:
17+
with open(os.path.join(*paths)) as f:
1818
return f.read()
1919

2020

@@ -86,7 +86,6 @@ def get_package_data(package):
8686
"Operating System :: OS Independent",
8787
"Programming Language :: Python",
8888
"Programming Language :: Python :: 3",
89-
"Programming Language :: Python :: 3.6",
9089
"Programming Language :: Python :: 3.7",
9190
"Programming Language :: Python :: 3.8",
9291
"Programming Language :: Python :: 3.9",
@@ -106,6 +105,6 @@ def get_package_data(package):
106105
"openapi": ["pyyaml>=5.4", "uritemplate>=3.0.1"],
107106
},
108107
setup_requires=wheel,
109-
python_requires=">=3.6",
108+
python_requires=">=3.7",
110109
zip_safe=False,
111110
)

Diff for: tox.ini

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{36,37,38,39,310}-django{22,32}-drf{312,313,master},
3+
py{37,38,39,310}-django{22,32}-drf{312,313,master},
44
py{38,39,310}-django40-drf{313,master},
55
lint,docs
66

@@ -23,27 +23,27 @@ commands =
2323
pytest --cov --no-cov-on-fail --cov-report xml {posargs}
2424

2525
[testenv:black]
26-
basepython = python3.6
26+
basepython = python3.7
2727
deps =
2828
-rrequirements/requirements-codestyle.txt
2929
commands = black --check .
3030

3131
[testenv:lint]
32-
basepython = python3.6
32+
basepython = python3.7
3333
deps =
3434
-rrequirements/requirements-codestyle.txt
3535
-rrequirements/requirements-testing.txt
3636
-rrequirements/requirements-optionals.txt
3737
commands = flake8
3838

3939
[testenv:docs]
40-
basepython = python3.6
40+
basepython = python3.7
4141
deps =
4242
-rrequirements/requirements-testing.txt
4343
-rrequirements/requirements-optionals.txt
4444
-rrequirements/requirements-documentation.txt
4545
commands =
4646
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html
4747

48-
[testenv:py{36,37,38,39,310}-django{22,32,40}-drfmaster]
48+
[testenv:py{37,38,39,310}-django{22,32,40}-drfmaster]
4949
ignore_outcome = true

0 commit comments

Comments
 (0)