Skip to content

Commit 7582483

Browse files
committed
Drop Python 3.6 support
1 parent efda472 commit 7582483

File tree

5 files changed

+29
-21
lines changed

5 files changed

+29
-21
lines changed

.azure-pipelines.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ stages:
1919
- task: UsePythonVersion@0
2020
displayName: Set up python
2121
inputs:
22-
versionSpec: 3.6
22+
versionSpec: 3.7
2323

2424
- bash: python .azure-pipelines/syntax-validation.py
25-
displayName: Syntax validation (3.6)
25+
displayName: Syntax validation (3.7)
2626

2727
- task: UsePythonVersion@0
2828
displayName: Set up python
@@ -46,8 +46,6 @@ stages:
4646
vmImage: ubuntu-latest
4747
strategy:
4848
matrix:
49-
python36:
50-
PYTHON_VERSION: 3.6
5149
python37:
5250
PYTHON_VERSION: 3.7
5351
python38:
@@ -80,8 +78,6 @@ stages:
8078
vmImage: windows-latest
8179
strategy:
8280
matrix:
83-
python36:
84-
PYTHON_VERSION: 3.6
8581
python37:
8682
PYTHON_VERSION: 3.7
8783
python38:

.pre-commit-config.yaml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,32 @@
11
repos:
2+
# Syntax validation and some basic sanity checks
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.0.1
5+
hooks:
6+
- id: check-merge-conflict
7+
- id: check-ast
8+
fail_fast: True
9+
- id: check-json
10+
- id: check-added-large-files
11+
args: ['--maxkb=200']
12+
- id: check-yaml
213

314
# Automatically sort imports
415
- repo: https://github.com/PyCQA/isort
516
rev: 5.9.3
617
hooks:
718
- id: isort
19+
args: [
20+
'-a', 'from __future__ import annotations', # 3.7-3.11
21+
'--rm', 'from __future__ import absolute_import', # -3.0
22+
'--rm', 'from __future__ import division', # -3.0
23+
'--rm', 'from __future__ import generator_stop', # -3.7
24+
'--rm', 'from __future__ import generators', # -2.3
25+
'--rm', 'from __future__ import nested_scopes', # -2.2
26+
'--rm', 'from __future__ import print_function', # -3.0
27+
'--rm', 'from __future__ import unicode_literals', # -3.0
28+
'--rm', 'from __future__ import with_statement', # -2.6
29+
]
830

931
# Automatic source code formatting
1032
- repo: https://github.com/psf/black
@@ -19,14 +41,3 @@ repos:
1941
hooks:
2042
- id: flake8
2143
additional_dependencies: ['flake8-comprehensions==3.5.0']
22-
23-
# Syntax validation and some basic sanity checks
24-
- repo: https://github.com/pre-commit/pre-commit-hooks
25-
rev: v4.0.1
26-
hooks:
27-
- id: check-merge-conflict
28-
- id: check-ast
29-
- id: check-json
30-
- id: check-added-large-files
31-
args: ['--maxkb=200']
32-
- id: check-yaml

HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
History
33
=======
44

5+
3.0.0 (2022-01-??)
6+
------------------
7+
* Drop Python 3.6 support
8+
59
2.3.1 (2021-10-25)
610
------------------
711
* Add Python 3.10 support

appveyor.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ environment:
55
# For Python versions available on Appveyor, see
66
# http://www.appveyor.com/docs/installed-software#python
77

8-
- PYTHON: "C:\\Python36"
98
- PYTHON: "C:\\Python37"
109
- PYTHON: "C:\\Python38"
11-
- PYTHON: "C:\\Python36-x64"
1210
- PYTHON: "C:\\Python37-x64"
1311
- PYTHON: "C:\\Python38-x64"
1412

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ classifiers =
1010
License :: OSI Approved :: BSD License
1111
Natural Language :: English
1212
Programming Language :: Python :: 3
13-
Programming Language :: Python :: 3.6
1413
Programming Language :: Python :: 3.7
1514
Programming Language :: Python :: 3.8
1615
Programming Language :: Python :: 3.9
@@ -30,7 +29,7 @@ include_package_data = True
3029
packages = procrunner
3130
package_dir =
3231
=src
33-
python_requires = >=3.6
32+
python_requires = >=3.7
3433
zip_safe = False
3534

3635
[options.packages.find]

0 commit comments

Comments
 (0)