Skip to content

Commit

Permalink
Include tox.ini in sdist to fix tests
Browse files Browse the repository at this point in the history
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...
  • Loading branch information
mgorny authored and jugmac00 committed Mar 13, 2023
1 parent 6be22df commit 78d1f64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog/2939.bugfix.rst
@@ -0,0 +1 @@
``tox.ini`` is now included in source distributions in order to make all tests pass.
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -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]
Expand Down

0 comments on commit 78d1f64

Please sign in to comment.