Skip to content

Commit 2cab218

Browse files
committed
release: Drop Python 3.4, 3.5 and add 3.9 and 3.10
1 parent 3122583 commit 2cab218

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

noxfile.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
import nox
66

77

8-
@nox.session(python=["3.4", "3.5", "3.6", "3.7", "3.8"])
8+
DEFAULT_PYTHON_VERSION = "3.9"
9+
ALL_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"]
10+
11+
12+
@nox.session(python=ALL_PYTHON_VERSIONS)
913
def tests(session):
1014
"""
1115
Install stm32loader package and execute unit tests.
@@ -23,7 +27,7 @@ def tests(session):
2327
session.run("pytest", "./")
2428

2529

26-
@nox.session(python=["3.6"])
30+
@nox.session(python=DEFAULT_PYTHON_VERSION)
2731
def lint(session):
2832
"""
2933
Run code verification tools flake8, pylint and black.

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ license_file = LICENSE
66

77
[isort]
88
line_length = 98
9-
line_width = 98
109
multi_line_output = 2
1110

1211
[flake8]

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
URL = 'https://github.com/florisla/stm32loader'
1717
1818
AUTHOR = 'Floris Lambrechts'
19-
REQUIRES_PYTHON = '>=3.4.0'
19+
REQUIRES_PYTHON = '>=3.6.0'
2020
PROJECT_URLS = {
2121
"Bug Tracker": "https://github.com/florisla/stm32loader/issues",
2222
"Source Code": "https://github.com/florisla/stm32loader",
@@ -28,7 +28,7 @@
2828
]
2929

3030
EXTRAS = {
31-
"dev": ['setuptools', 'wheel', 'twine', 'pylint', 'flake8', 'flake8-isort', 'black', 'bump2version'],
31+
"dev": ['setuptools', 'wheel', 'twine', 'pylint', 'flake8', 'flake8-isort', 'black', 'bump2version', 'nox'],
3232
}
3333

3434
HERE = os.path.abspath(os.path.dirname(__file__))
@@ -64,11 +64,11 @@
6464
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
6565
'Programming Language :: Python',
6666
'Programming Language :: Python :: 3',
67-
'Programming Language :: Python :: 3.4',
68-
'Programming Language :: Python :: 3.5',
6967
'Programming Language :: Python :: 3.6',
7068
'Programming Language :: Python :: 3.7',
7169
'Programming Language :: Python :: 3.8',
70+
'Programming Language :: Python :: 3.9',
71+
'Programming Language :: Python :: 3.10',
7272
'Programming Language :: Python :: Implementation :: CPython',
7373
'Programming Language :: Python :: Implementation :: PyPy',
7474
'Natural Language :: English',

0 commit comments

Comments
 (0)