From 44f984c84b950b674509ce0c1cb6e653dcc97550 Mon Sep 17 00:00:00 2001 From: Gabriel Dugny Date: Sun, 24 Mar 2024 16:58:59 +0100 Subject: [PATCH] fix: make tox use the wheel --- pyproject.toml | 11 +++++++++-- tox.ini | 4 +++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7836e48d..168db0db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,11 +35,18 @@ exclude = [ '.env', '.venv', '.tox', + 'build', ] [tool.mypy] check_untyped_defs = true ignore_missing_imports = true exclude = [ - 'test_structures' -] \ No newline at end of file + 'test_structures', + 'build', +] + +[tool.pytest.ini_options] +testpaths = [ + "tests" +] diff --git a/tox.ini b/tox.ini index 26876cae..9a3ca247 100644 --- a/tox.ini +++ b/tox.ini @@ -30,6 +30,8 @@ python = fail_on_no_env = True [testenv] +package = wheel +wheel_build_env = .pkg deps = django32: Django>=3.2,<3.3 django40: Django>=4.0,<4.1 @@ -55,7 +57,7 @@ commands = changedir = {toxinidir} deps = isort commands = - isort --check-only --diff django_components + isort --check-only --diff src/django_components [testenv:coverage] changedir = {toxinidir}