Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 68df773

Browse filesBrowse files
authored
Merge pull request #383 from tomschr/feature/372-rm-python36
Fix #372: Remove support for Python 3.6
2 parents 4cf9d60 + ae716f0 commit 68df773
Copy full SHA for 68df773

File tree

Expand file treeCollapse file tree

8 files changed

+24
-29
lines changed
Filter options
Expand file treeCollapse file tree

8 files changed

+24
-29
lines changed

‎.github/workflows/python-testing.yml

Copy file name to clipboardExpand all lines: .github/workflows/python-testing.yml
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ jobs:
4949
strategy:
5050
max-parallel: 5
5151
matrix:
52-
python-version: ["3.6",
53-
"3.7",
52+
python-version: ["3.7",
5453
"3.8",
5554
"3.9",
5655
"3.10",

‎BUILDING.rst

Copy file name to clipboardExpand all lines: BUILDING.rst
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Building semver
1212
This project changed slightly its way how it is built. The reason for this
1313
was to still support the "traditional" way with :command:`setup.py`,
1414
but at the same time try out the newer way with :file:`pyproject.toml`.
15-
Over time, once Python 3.6 gets deprecated, we will support only the newer way.
15+
As Python 3.6 got deprecated, this project does support from now on only
16+
:file:`pyproject.toml`.
1617

1718

1819
Background information

‎CONTRIBUTING.rst

Copy file name to clipboardExpand all lines: CONTRIBUTING.rst
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ You can decide to run the complete test suite or only part of it:
9999
$ tox --skip-missing-interpreters
100100

101101
It is possible to use one or more specific Python versions. Use the ``-e``
102-
option and one or more abbreviations (``py36`` for Python 3.6, ``py37`` for
103-
Python 3.7 etc.)::
102+
option and one or more abbreviations (``py37`` for Python 3.7,
103+
``py38`` for Python 3.8 etc.)::
104104

105-
$ tox -e py36
106-
$ tox -e py36,py37
105+
$ tox -e py37
106+
$ tox -e py37,py38
107107

108108
To get a complete list and a short description, run::
109109

@@ -116,24 +116,24 @@ You can decide to run the complete test suite or only part of it:
116116
:func:`test_immutable_major` in the file :file:`test_bump.py` for all
117117
Python versions::
118118

119-
$ tox -e py36 -- tests/test_bump.py::test_should_bump_major
119+
$ tox -e py37 -- tests/test_bump.py::test_should_bump_major
120120

121121
By default, pytest prints only a dot for each test function. To
122122
reveal the executed test function, use the following syntax::
123123

124124
$ tox -- -v
125125

126126
You can combine the specific test function with the ``-e`` option, for
127-
example, to limit the tests for Python 3.6 and 3.7 only::
127+
example, to limit the tests for Python 3.7 and 3.8 only::
128128

129-
$ tox -e py36,py37 -- tests/test_bump.py::test_should_bump_major
129+
$ tox -e py37,py38 -- tests/test_bump.py::test_should_bump_major
130130

131131
Our code is checked against formatting, style, type, and docstring issues
132132
(`black`_, `flake8`_, `mypy`_, and `docformatter`_).
133133
It is recommended to run your tests in combination with :command:`checks`,
134134
for example::
135135

136-
$ tox -e checks,py36,py37
136+
$ tox -e checks,py37,py38
137137

138138

139139
.. _doc:

‎README.rst

Copy file name to clipboardExpand all lines: README.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ A Python module for `semantic versioning`_. Simplifies comparing versions.
1717
1818
.. note::
1919

20-
This project works for Python 3.6 and greater only. If you are
20+
This project works for Python 3.7 and greater only. If you are
2121
looking for a compatible version for Python 2, use the
2222
maintenance branch |MAINT|_.
2323

2424
The last version of semver which supports Python 2.7 to 3.5 will be
2525
2.x.y However, keep in mind, the major 2 release is frozen: no new
2626
features nor backports will be integrated.
2727

28-
We recommend to upgrade your workflow to Python 3.x to gain support,
28+
We recommend to upgrade your workflow to Python 3 to gain support,
2929
bugfixes, and new features.
3030

3131
.. |MAINT| replace:: ``maint/v2``

‎pyproject.toml

Copy file name to clipboardExpand all lines: pyproject.toml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ build-backend = "setuptools.build_meta"
1919

2020
[tool.black]
2121
line-length = 88
22-
target-version = ['py36', 'py37', 'py38', 'py39', 'py310']
22+
target-version = ['py37', 'py38', 'py39', 'py310', 'py311']
2323
# diff = true
2424
extend-exclude = '''
2525
# A regex preceded with ^/ will apply only to files and directories

‎setup.cfg

Copy file name to clipboardExpand all lines: setup.cfg
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ classifiers =
2626
Operating System :: OS Independent
2727
Programming Language :: Python
2828
Programming Language :: Python :: 3
29-
Programming Language :: Python :: 3.6
3029
Programming Language :: Python :: 3.7
3130
Programming Language :: Python :: 3.8
3231
Programming Language :: Python :: 3.9
3332
Programming Language :: Python :: 3.10
3433
Programming Language :: Python :: 3.11
34+
Programming Language :: Python :: 3.12
3535
Topic :: Software Development :: Libraries :: Python Modules
3636
license = BSD
3737

3838
[options]
3939
package_dir =
4040
=src
4141
packages = find:
42-
python_requires = >=3.6.*
42+
python_requires = >=3.7.*
4343
include_package_data = True
4444

4545
[options.entry_points]

‎setup.py

Copy file name to clipboardExpand all lines: setup.py
-4Lines changed: 0 additions & 4 deletions
This file was deleted.

‎tox.ini

Copy file name to clipboardExpand all lines: tox.ini
+8-9Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
[tox]
22
envlist =
33
checks
4-
py3{6,7,8,9,10,11,12}
4+
py3{7,8,9,10,11,12}
55
isolated_build = True
66
skip_missing_interpreters = True
77

88
[gh-actions]
99
python =
10-
3.6: py36
1110
# setuptools >=62 needs Python >=3.7
1211
3.7: py37,check
1312
3.8: py38
@@ -18,17 +17,14 @@ python =
1817

1918

2019
[testenv]
21-
description =
22-
py36: Run a slightly different test suite for {basepython}
23-
!py36: Run test suite for {basepython}
20+
description = Run test suite for {basepython}
2421
allowlist_externals = make
2522
commands = pytest {posargs:}
2623
deps =
2724
pytest
2825
pytest-cov
29-
# py36: dataclasses
30-
!py36: setuptools>=62.0
31-
!py36: setuptools-scm
26+
setuptools>=62.0
27+
setuptools-scm
3228
setenv =
3329
PIP_DISABLE_PIP_VERSION_CHECK = 1
3430

@@ -103,8 +99,11 @@ basepython = python3
10399
deps =
104100
wheel
105101
twine
102+
# PEP 517 build frontend
103+
build
106104
commands =
107-
python3 setup.py sdist bdist_wheel
105+
# Same as python3 -m build
106+
pyproject-build
108107
twine check dist/*
109108

110109

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.