Skip to content

Commit 3fe97e4

Browse files
authored
Merge pull request #24 from cclauss/patch-3
install_requires = setuptools; python_version>="3.12" and upgrade GitHub Actions
2 parents 7299f1c + c598bc8 commit 3fe97e4

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.github/workflows/tox.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ jobs:
44
tox:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v3
8-
- uses: actions/setup-python@v4
7+
- uses: actions/checkout@v4
8+
- uses: actions/setup-python@v5
99
with:
1010
python-version: 3.x
1111
- run: pip install tox
12+
- run: pip install --editable .
1213
- run: tox -e py

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ classifiers =
2020
zip_safe = True
2121
py_modules = setuptools_py2cfg
2222
python_requires = >=3.3
23+
install_requires =
24+
setuptools; python_version>="3.12"
2325

2426
[options.extras_require]
2527
test = pytest

setuptools_py2cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def parseargs(cli_args=None):
4141
def execsetup(setup_py: Path):
4242
# Mock all function in the setuptools module.
4343
global setuptools
44-
sys.modules['setuptools'] = Mock(spec=setuptools)
44+
sys.modules['setuptools'] = Mock(autospec=setuptools)
4545
import setuptools
4646

4747
cwd = Path.cwd()

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
[tox]
22
minversion=2.9.0
3-
envlist=py37
3+
envlist=py38,py39,py310,py311,py312
44

55
[testenv]
66
description=Run the unit tests with pytest under {basepython}
77
commands = pytest {toxinidir} {posargs}
88
deps=
99
pytest
10-

0 commit comments

Comments
 (0)