diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-03-13 06:00:42 +0100 |
---|---|---|
committer | Jürgen Gmach <juergen.gmach@googlemail.com> | 2023-03-13 12:00:00 +0100 |
commit | 78d1f642c0c6b3ee21998694303796811fa3ced0 (patch) | |
tree | 9f6ecaba6c523e29ab19aa371da9f38372b806ad | |
parent | 6be22dfd074decd636acd85bdd76a78b9a7164e2 (diff) | |
download | tox-git-78d1f642c0c6b3ee21998694303796811fa3ced0.tar.gz |
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...
-rw-r--r-- | docs/changelog/2939.bugfix.rst | 1 | ||||
-rw-r--r-- | pyproject.toml | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/changelog/2939.bugfix.rst b/docs/changelog/2939.bugfix.rst new file mode 100644 index 00000000..9712e7b8 --- /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 f6061b2c..98cf4686 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] |