Skip to content

Commit 8d78faf

Browse files
authored
Add support for Python 3.10 and drop 3.6 (#12)
1 parent 2283bf5 commit 8d78faf

File tree

7 files changed

+75
-53
lines changed

7 files changed

+75
-53
lines changed

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: [3.6, 3.7, 3.8, 3.9]
10+
python-version: ["3.7", "3.8", "3.9", "3.10"]
1111
steps:
1212
- uses: actions/checkout@v2
1313
- name: Set up Python ${{ matrix.python-version }}

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ Exit status codes are defined in a simple to use
5656
Releases
5757
--------
5858

59+
2.2.0 2021-11-06
60+
^^^^^^^^^^^^^^^^
61+
62+
- Support Python 3.10 and drop 3.6.
63+
5964
2.1.0 2020-12-27
6065
^^^^^^^^^^^^^^^^
6166

dev-requirements.txt

Lines changed: 46 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,103 @@
11
#
2-
# This file is autogenerated by pip-compile
2+
# This file is autogenerated by pip-compile with python 3.9
33
# To update, run:
44
#
5-
# pip-compile dev-requirements.in
5+
# pip-compile '.\dev-requirements.in'
66
#
7-
appdirs==1.4.4
8-
# via
9-
# black
10-
# virtualenv
117
atomicwrites==1.4.0
128
# via pytest
13-
attrs==20.3.0
9+
attrs==21.2.0
1410
# via pytest
15-
black==20.8b1
16-
# via -r dev-requirements.in
17-
click==7.1.2
11+
backports.entry-points-selectable==1.1.0
12+
# via virtualenv
13+
black==21.10b0
14+
# via -r .\dev-requirements.in
15+
click==8.0.3
1816
# via black
1917
colorama==0.4.4
2018
# via
19+
# click
2120
# pytest
2221
# tox
23-
coverage==5.5
22+
coverage[toml]==6.1.1
2423
# via pytest-cov
25-
distlib==0.3.1
24+
distlib==0.3.3
2625
# via virtualenv
27-
filelock==3.0.12
26+
filelock==3.3.2
2827
# via
2928
# tox
3029
# virtualenv
31-
flake8-polyfill==1.0.2
32-
# via pep8-naming
33-
flake8==3.9.1
30+
flake8==4.0.1
3431
# via
35-
# -r dev-requirements.in
32+
# -r .\dev-requirements.in
3633
# flake8-polyfill
34+
# pep8-naming
35+
flake8-polyfill==1.0.2
36+
# via pep8-naming
3737
iniconfig==1.1.1
3838
# via pytest
39-
isort==5.8.0
40-
# via -r dev-requirements.in
39+
isort==5.10.0
40+
# via -r .\dev-requirements.in
4141
mccabe==0.6.1
4242
# via flake8
43+
mypy==0.910
44+
# via -r .\dev-requirements.in
4345
mypy-extensions==0.4.3
4446
# via
4547
# black
4648
# mypy
47-
mypy==0.812
48-
# via -r dev-requirements.in
49-
packaging==20.9
49+
packaging==21.2
5050
# via
5151
# pytest
5252
# tox
53-
pathspec==0.8.1
53+
pathspec==0.9.0
5454
# via black
55-
pep8-naming==0.11.1
56-
# via -r dev-requirements.in
57-
pluggy==0.13.1
55+
pep8-naming==0.12.1
56+
# via -r .\dev-requirements.in
57+
platformdirs==2.4.0
58+
# via
59+
# black
60+
# virtualenv
61+
pluggy==1.0.0
5862
# via
5963
# pytest
6064
# tox
61-
py==1.10.0
65+
py==1.11.0
6266
# via
6367
# pytest
6468
# tox
65-
pycodestyle==2.7.0
69+
pycodestyle==2.8.0
6670
# via flake8
67-
pyflakes==2.3.1
71+
pyflakes==2.4.0
6872
# via flake8
6973
pyparsing==2.4.7
7074
# via packaging
71-
pytest-cov==2.11.1
72-
# via -r dev-requirements.in
73-
pytest==6.2.3
75+
pytest==6.2.5
7476
# via
75-
# -r dev-requirements.in
77+
# -r .\dev-requirements.in
7678
# pytest-cov
77-
regex==2021.4.4
79+
pytest-cov==3.0.0
80+
# via -r .\dev-requirements.in
81+
regex==2021.11.2
7882
# via black
79-
six==1.15.0
83+
six==1.16.0
8084
# via
8185
# tox
8286
# virtualenv
8387
toml==0.10.2
8488
# via
85-
# black
89+
# mypy
8690
# pytest
8791
# tox
88-
tox==3.23.0
89-
# via -r dev-requirements.in
90-
typed-ast==1.4.3
92+
tomli==1.2.2
9193
# via
9294
# black
93-
# mypy
94-
typing-extensions==3.7.4.3
95+
# coverage
96+
tox==3.24.4
97+
# via -r .\dev-requirements.in
98+
typing-extensions==3.10.0.2
9599
# via
96100
# black
97101
# mypy
98-
virtualenv==20.4.4
102+
virtualenv==20.10.0
99103
# via tox

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
requires = ["setuptools>=46.0", "wheel"]
33
build-backend = "setuptools.build_meta"
44

5+
[tool.mypy]
6+
ignore_missing_imports = true
7+
strict = true
8+
59
[tool.black]
610
line-length = 99
711
target-version = ["py36", "py37", "py38"]

setup.cfg

Lines changed: 0 additions & 4 deletions
This file was deleted.

setup.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
setuptools.setup(
88
name="exitstatus",
9-
version="2.1.0",
9+
version="2.2.0",
1010
description="POSIX exit status codes",
1111
long_description=project_dir.joinpath("README.rst").read_text(encoding="utf-8"),
1212
keywords="exit status POSIX",
1313
author="John Hagen",
1414
author_email="johnthagen@gmail.com",
1515
url="https://github.com/johnthagen/exitstatus",
1616
py_modules=["exitstatus"],
17-
python_requires=">=3.6",
17+
python_requires=">=3.7",
1818
zip_safe=False,
1919
license="MIT",
2020
license_files=["LICENSE.txt"],
@@ -25,11 +25,9 @@
2525
"Programming Language :: Python",
2626
"Programming Language :: Python :: 3",
2727
"Programming Language :: Python :: 3 :: Only",
28-
"Programming Language :: Python :: 3.6",
2928
"Programming Language :: Python :: 3.7",
3029
"Programming Language :: Python :: 3.8",
3130
"Programming Language :: Python :: 3.9",
32-
"Programming Language :: Python :: Implementation :: CPython",
33-
"Programming Language :: Python :: Implementation :: PyPy",
31+
"Programming Language :: Python :: 3.10",
3432
],
3533
)

tox.ini

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ python =
1010
3.7: py37
1111
3.8: py38, fmt-check, lint, type-check
1212
3.9: py39
13+
3.10: py310
1314

1415
[tox]
1516
envlist =
1617
fmt-check
1718
lint
1819
type-check
19-
py{36,37,38,39}
20+
py{37,38,39,310}
2021
skip_missing_interpreters = true
2122
isolated_build = true
2223

@@ -57,3 +58,17 @@ deps =
5758
commands =
5859
isort --check-only .
5960
black --check .
61+
62+
[testenv:build]
63+
skip_install = true
64+
deps =
65+
build
66+
commands =
67+
{envpython} -m build
68+
69+
[testenv:upload]
70+
skip_install = true
71+
deps =
72+
twine
73+
commands =
74+
{envpython} -m twine upload {toxinidir}/dist/*

0 commit comments

Comments
 (0)