Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=38.3.0", "wheel"]
requires = ["setuptools>=64.0.0"]
build-backend = "setuptools.build_meta"

[project]
Expand Down Expand Up @@ -75,6 +75,23 @@ extend-exclude = '''
)/
'''

# coverage configuration
[tool.coverage.run]
branch = true
relative_files = true
parallel = true
source = [
"tests",
"wrapt",
]

[tool.coverage.paths]
src = [
"src/",
".tox/*/lib/*/site-packages/",
".tox/pypy*/site-packages/",
]

# pytest configuration
[tool.pytest.ini_options]
testpaths = ["tests"]
Expand Down
96 changes: 0 additions & 96 deletions setup.cfg

This file was deleted.

28 changes: 28 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[tox]
envlist =
py{39,310,311,312,313,314}
py{39,310,311,312,313,314}-{without,install,disable}-extensions,
pypy-without-extensions

[testenv]
deps =
coverage
pytest
install_command = python -m pip install --no-binary coverage {opts} {packages}
setenv =
without-extensions: WRAPT_INSTALL_EXTENSIONS = false
install-extensions,disable-extensions: WRAPT_INSTALL_EXTENSIONS = true
disable-extensions: WRAPT_DISABLE_EXTENSIONS = true
commands =
python -m coverage run --rcfile {toxinidir}/pyproject.toml -m pytest -v {posargs} {toxinidir}/tests

[gh-actions]
python =
3.9: py39, py39-without-extensions, py39-install-extensions, py39-disable-extensions
3.10: py310, py310-without-extensions, py310-install-extensions, py310-disable-extensions
3.11: py311, py311-without-extensions, py311-install-extensions, py311-disable-extensions
3.12: py312, py312-without-extensions, py312-install-extensions, py312-disable-extensions
3.13: py313, py313-without-extensions, py313-install-extensions, py313-disable-extensions
3.14: py314, py314-without-extensions, py314-install-extensions, py314-disable-extensions
pypy-3.9: pypy-without-extensions
pypy-3.10: pypy-without-extensions