From 78d1f642c0c6b3ee21998694303796811fa3ced0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 13 Mar 2023 06:00:42 +0100 Subject: [PATCH] Include `tox.ini` in sdist to fix tests Include the `tox.ini` file in sdist, in order to fix a few test failures due to an additional error message printed by tox, i.e.: FAILED tests/config/cli/test_parse.py::test_verbosity_guess_miss_match - AssertionError: assert 'ROOT: No tox.ini or setup.cfg or pyproject.toml found, assuming empty tox.ini at /tmp/portage/dev-python/t... FAILED tests/config/loader/test_loader.py::test_override_incorrect[-x] - AssertionError: assert not 'ROOT: No tox.ini or setup.cfg or pyproject.toml found, assuming empty tox.ini at /tmp/portage/dev-pyth... FAILED tests/config/loader/test_loader.py::test_override_incorrect[--override] - AssertionError: assert not 'ROOT: No tox.ini or setup.cfg or pyproject.toml found, assuming empty tox.ini at /tmp/portage/dev-pyth... --- docs/changelog/2939.bugfix.rst | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 docs/changelog/2939.bugfix.rst diff --git a/docs/changelog/2939.bugfix.rst b/docs/changelog/2939.bugfix.rst new file mode 100644 index 000000000..9712e7b84 --- /dev/null +++ b/docs/changelog/2939.bugfix.rst @@ -0,0 +1 @@ +``tox.ini`` is now included in source distributions in order to make all tests pass. diff --git a/pyproject.toml b/pyproject.toml index f6061b2c6..98cf4686d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -100,7 +100,7 @@ scripts.tox = "tox.run:run" [tool.hatch] build.dev-mode-dirs = ["src"] build.hooks.vcs.version-file = "src/tox/version.py" -build.targets.sdist.include = ["/src", "/tests"] +build.targets.sdist.include = ["/src", "/tests", "/tox.ini"] version.source = "vcs" [tool.black]