Skip to content

Commit 4d0bb9b

Browse files
committed
Test Python 3.11
1 parent b9fe9aa commit 4d0bb9b

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
fail-fast: false
3636
matrix:
37-
python-version: ['3.7', '3.8', '3.9', pypy-3.7, pypy-3.8]
37+
python-version: ['3.7', '3.8', '3.9', '3.11', pypy-3.7, pypy-3.8]
3838
os: [ubuntu-latest]
3939
# run only limited set of tests because it takes too long
4040
mark: [important]

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ Changelog
1212

1313
Add ``setuptools-git-versioning`` script to infer version from ``pyproject.toml`` config
1414

15+
.. change::
16+
:tags: core, feature
17+
18+
Check Python 3.11 support
19+
1520
.. changelog::
1621
:version: 1.10.0
1722
:released: 18.07.2022

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def parse_requirements(file_content):
3636
"Programming Language :: Python :: 3.8",
3737
"Programming Language :: Python :: 3.9",
3838
"Programming Language :: Python :: 3.10",
39+
"Programming Language :: Python :: 3.11",
3940
"License :: OSI Approved :: MIT License",
4041
"Operating System :: OS Independent",
4142
],

tests/lib/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def get_version_setup_py(cwd, **kwargs): # type: (str, **Any) -> str
257257

258258

259259
def get_version_module(cwd, **kwargs): # type: (str, **Any) -> str
260-
return execute(cwd, f"{sys.executable} -m setuptools_git_versioning", **kwargs).strip()
260+
return execute(cwd, f"{sys.executable} -m coverage run -m setuptools_git_versioning", **kwargs).strip()
261261

262262

263263
def get_version_script(cwd, **kwargs): # type: (str, **Any) -> str

tests/test_integration/test_command.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
from tests.lib.util import get_version_script, get_version_module, create_pyproject_toml, create_setup_py
55

66

7+
@pytest.mark.important
78
def test_command_pyproject_toml(repo):
89
create_pyproject_toml(repo)
910

1011
assert get_version_module(repo) == "0.0.1"
1112
assert get_version_script(repo) == "0.0.1"
1213

1314

15+
@pytest.mark.important
1416
def test_command_pyproject_toml_disabled(repo):
1517
create_pyproject_toml(repo, {"enabled": False})
1618

@@ -21,6 +23,7 @@ def test_command_pyproject_toml_disabled(repo):
2123
get_version_script(repo)
2224

2325

26+
@pytest.mark.important
2427
def test_command_setup_py_fail(repo):
2528
create_setup_py(repo)
2629

0 commit comments

Comments
 (0)