Skip to content

Commit 623a156

Browse files
committed
chore(tox): disable sdist build (repo is not a Python package)
tox 4 tries to build an sdist from the repo root by default. With the flat top-level layout (check-plugins/, tools/, lib/, site/, assets/, testing/) setuptools auto-discovery trips over the "Multiple top-level packages" check and aborts before any test environment is even set up. Set `no_package = true` under [tox] so tox runs `deps` and `commands` directly without touching the build backend.
1 parent e61ceca commit 623a156

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
### Fixed
1212

1313
* Fix `--require-hashes` pip install in pre-commit autoupdate workflow by using pinned version instead
14+
* tox.ini: disable the sdist build (`no_package = true`) so `tox` no longer trips over the flat top-level layout with "Multiple top-level packages discovered". The repo is a collection of plugin scripts, not a Python package
1415
* deb-updates: add missing `lib.txt` import so the "N update(s) available" summary no longer crashes with `AttributeError` at runtime
1516
* mysql-memory: fix `get_other_process_memory()` fallback path for psutil older than 5.3.0 (referenced an undefined `cmdline` variable and the wrong attribute on the process dict) and drop an unreachable `break` after `return` in `get_pfs_memory()`
1617
* mysql-storage-engines: drop a dead `SELECT ... FROM information_schema.engines` query whose result was never used

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[tox]
22
envlist = py39, py310, py311, py312, py313, py314
33
skip_missing_interpreters = true
4+
# this repo is not a Python package - it is a collection of check plugin scripts.
5+
# tell tox not to build/install an sdist from the repo root, otherwise setuptools
6+
# auto-discovery trips over the top-level lib/, site/, assets/ and testing/ dirs.
7+
no_package = true
48

59
[testenv]
610
deps =

0 commit comments

Comments
 (0)