Skip to content

Commit d553040

Browse files
authoredNov 8, 2021
Drop support for Python 3.6 (#1054)
* πŸ‘· [nox] Drop Python 3.6 from Nox sessions * πŸ“¦ [poetry] Drop Python 3.6 from package metadata * πŸ‘· [github] Drop Python 3.6 from Tests workflow * πŸ“š [CONTRIBUTING] Drop Python 3.6 from contributor guide * πŸ“š Drop Python 3.6 from Cookiecutter documentation * πŸ‘· [github] Drop Python 3.6 from Cookiecutter CI
1 parent 092b320 commit d553040

File tree

10 files changed

+16
-60
lines changed

10 files changed

+16
-60
lines changed
 

β€Ž.github/workflows/tests.yml

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
- { python-version: "3.9", os: ubuntu-latest }
1313
- { python-version: "3.8", os: ubuntu-latest }
1414
- { python-version: "3.7", os: ubuntu-latest }
15-
- { python-version: "3.6", os: ubuntu-latest }
1615
name: Python ${{ matrix.python-version }} (${{ matrix.os }})
1716
runs-on: ${{ matrix.os }}
1817
steps:

β€ŽCONTRIBUTING.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Request features on the `Issue Tracker`_.
4444
How to set up your development environment
4545
------------------------------------------
4646

47-
You need Python 3.6+ and the following tools:
47+
You need Python 3.7+ and the following tools:
4848

4949
- Cookiecutter_
5050
- Poetry_

β€ŽREADME.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Features
8787
- Generate command-line reference with sphinx-click_
8888
- Manage project labels with `GitHub Labeler`_
8989

90-
The template supports Python 3.6, 3.7, 3.8, 3.9, and 3.10.
90+
The template supports Python 3.7, 3.8, 3.9, and 3.10.
9191

9292
.. features-end
9393

β€Ždocs/guide.rst

+8-10
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,10 @@ using one of the commands listed in the
145145
__ https://github.com/pyenv/pyenv/wiki/Common-build-problems
146146

147147
Install the latest point release of every supported Python version.
148-
This project template supports Python 3.6, 3.7, 3.8, 3.9, and 3.10.
148+
This project template supports Python 3.7, 3.8, 3.9, and 3.10.
149149

150150
.. code:: console
151151
152-
$ pyenv install 3.6.15
153152
$ pyenv install 3.7.12
154153
$ pyenv install 3.8.12
155154
$ pyenv install 3.9.8
@@ -161,7 +160,7 @@ using the following command:
161160

162161
.. code:: console
163162
164-
$ pyenv local 3.10.0 3.9.8 3.8.12 3.7.12 3.6.15
163+
$ pyenv local 3.10.0 3.9.8 3.8.12 3.7.12
165164
166165
The first version listed is the one used when you type plain ``python``.
167166
Every version can be used by invoking ``python<major.minor>``.
@@ -882,7 +881,6 @@ and easily switch between them:
882881

883882
.. code:: console
884883
885-
$ poetry env use 3.6
886884
$ poetry env use 3.7
887885
$ poetry env use 3.8
888886
$ poetry env use 3.9
@@ -1112,12 +1110,12 @@ The following table gives an overview of the available Nox sessions:
11121110
:ref:`coverage <The coverage session>` Report coverage with Coverage.py_ ``3.10`` (βœ“)
11131111
:ref:`docs <The docs session>` Build and serve Sphinx_ documentation ``3.10``
11141112
:ref:`docs-build <The docs-build session>` Build Sphinx_ documentation ``3.10`` βœ“
1115-
:ref:`mypy <The mypy session>` Type-check with mypy_ ``3.6`` … ``3.10`` βœ“
1113+
:ref:`mypy <The mypy session>` Type-check with mypy_ ``3.7`` … ``3.10`` βœ“
11161114
:ref:`pre-commit <The pre-commit session>` Lint with pre-commit_ ``3.10`` βœ“
11171115
:ref:`safety <The safety session>` Scan dependencies with Safety_ ``3.10`` βœ“
1118-
:ref:`tests <The tests session>` Run tests with pytest_ ``3.6`` … ``3.10`` βœ“
1119-
:ref:`typeguard <The typeguard session>` Type-check with Typeguard_ ``3.6`` … ``3.10`` βœ“
1120-
:ref:`xdoctest <The xdoctest session>` Run examples with xdoctest_ ``3.6`` … ``3.10`` βœ“
1116+
:ref:`tests <The tests session>` Run tests with pytest_ ``3.7`` … ``3.10`` βœ“
1117+
:ref:`typeguard <The typeguard session>` Type-check with Typeguard_ ``3.7`` … ``3.10`` βœ“
1118+
:ref:`xdoctest <The xdoctest session>` Run examples with xdoctest_ ``3.7`` … ``3.10`` βœ“
11211119
========================================== ===================================== ================== =========
11221120

11231121

@@ -2284,8 +2282,8 @@ __ https://help.github.com/en/actions/automating-your-workflow-with-github-actio
22842282
========================================== ====================== ==================
22852283
:ref:`pre-commit <The pre-commit session>` Ubuntu 3.10
22862284
:ref:`safety <The safety session>` Ubuntu 3.10
2287-
:ref:`mypy <The mypy session>` Ubuntu 3.10, 3.9, 3.8, 3.7, 3.6
2288-
:ref:`tests <The tests session>` Ubuntu 3.10, 3.9, 3.8, 3.7, 3.6
2285+
:ref:`mypy <The mypy session>` Ubuntu 3.10, 3.9, 3.8, 3.7
2286+
:ref:`tests <The tests session>` Ubuntu 3.10, 3.9, 3.8, 3.7
22892287
:ref:`tests <The tests session>` Windows 3.10
22902288
:ref:`tests <The tests session>` macOS 3.10
22912289
:ref:`coverage <The coverage session>` Ubuntu 3.10

β€Ždocs/quickstart.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Install Nox_ and nox-poetry_:
2727
2828
pipx_ is preferred, but you can also install with ``pip install --user``.
2929

30-
It is recommended to set up Python 3.6, 3.7, 3.8, 3.9, 3.10 using pyenv_.
30+
It is recommended to set up Python 3.7, 3.8, 3.9, 3.10 using pyenv_.
3131

3232

3333
Creating a project

β€Ž{{cookiecutter.project_name}}/.github/workflows/tests.yml

-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ jobs:
1818
- { python-version: 3.9, os: ubuntu-latest, session: "mypy" }
1919
- { python-version: 3.8, os: ubuntu-latest, session: "mypy" }
2020
- { python-version: 3.7, os: ubuntu-latest, session: "mypy" }
21-
- { python-version: 3.6, os: ubuntu-latest, session: "mypy" }
2221
- { python-version: "3.10", os: ubuntu-latest, session: "tests" }
2322
- { python-version: 3.9, os: ubuntu-latest, session: "tests" }
2423
- { python-version: 3.8, os: ubuntu-latest, session: "tests" }
2524
- { python-version: 3.7, os: ubuntu-latest, session: "tests" }
26-
- { python-version: 3.6, os: ubuntu-latest, session: "tests" }
2725
- { python-version: 3.9, os: windows-latest, session: "tests" }
2826
- { python-version: 3.9, os: macos-latest, session: "tests" }
2927
- { python-version: "3.10", os: ubuntu-latest, session: "typeguard" }

β€Ž{{cookiecutter.project_name}}/CONTRIBUTING.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Request features on the `Issue Tracker`_.
4343
How to set up your development environment
4444
------------------------------------------
4545

46-
You need Python 3.6+ and the following tools:
46+
You need Python 3.7+ and the following tools:
4747

4848
- Poetry_
4949
- Nox_

β€Ž{{cookiecutter.project_name}}/noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121

2222
package = "{{cookiecutter.package_name}}"
23-
python_versions = ["3.10", "3.9", "3.8", "3.7", "3.6"]
23+
python_versions = ["3.10", "3.9", "3.8", "3.7"]
2424
nox.needs_version = ">= 2021.6.6"
2525
nox.options.sessions = (
2626
"pre-commit",

β€Ž{{cookiecutter.project_name}}/poetry.lock

+2-36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ž{{cookiecutter.project_name}}/pyproject.toml

+1-6
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,13 @@ packages = [
1515
{% endif -%}
1616
classifiers = [
1717
"{{cookiecutter.development_status}}",
18-
"Programming Language :: Python :: 3.6",
19-
"Programming Language :: Python :: 3.7",
20-
"Programming Language :: Python :: 3.8",
21-
"Programming Language :: Python :: 3.9",
22-
"Programming Language :: Python :: 3.10",
2318
]
2419

2520
[tool.poetry.urls]
2621
Changelog = "https://github.com/{{cookiecutter.github_user}}/{{cookiecutter.project_name}}/releases"
2722

2823
[tool.poetry.dependencies]
29-
python = "^3.6.1"
24+
python = "^3.7"
3025
click = "^8.0.1"
3126

3227
[tool.poetry.dev-dependencies]

0 commit comments

Comments
 (0)