Skip to content

✅ tests: drop stale setuptools assertion#3323

Merged
AndreMiras merged 1 commit intokivy:developfrom
AndreMiras:fix/pythonpackage-test-stale-setuptools
May 9, 2026
Merged

✅ tests: drop stale setuptools assertion#3323
AndreMiras merged 1 commit intokivy:developfrom
AndreMiras:fix/pythonpackage-test-stale-setuptools

Conversation

@AndreMiras
Copy link
Copy Markdown
Member

setuptools was added to setup.py install_reqs in #3007 (May 2024), so it now appears as a direct (non-recursive) dependency. The assertion at test_pythonpackage.py:46 ("setuptools not in deps_nonrecursive") has been wrong since then but went unnoticed because the file is skipped in CI (make test uses --ignore tests/test_pythonpackage.py).

The remaining include_build_requirements=True assertion still exercises the build-deps code path.

Note this test is skipped by the CI but was ran manually upon during pre-release checks. This can be reproduced via:

pytest tests/test_pythonpackage.py::test_get_package_dependencies

The error was:

>       assert "setuptools" not in deps_nonrecursive
E       AssertionError: assert 'setuptools' not in {'appdirs', 'build', 'colorama>=0.3.3', 'jinja2', 'meson', 'ninja', ...}
```

setuptools was added to setup.py install_reqs in kivy#3007 (May 2024),
so it now appears as a direct (non-recursive) dependency. The
assertion at test_pythonpackage.py:46 ("setuptools not in
deps_nonrecursive") has been wrong since then but went unnoticed
because the file is skipped in CI (`make test` uses
`--ignore tests/test_pythonpackage.py`).

The remaining `include_build_requirements=True` assertion still
exercises the build-deps code path.

Note this test is skipped by the CI but was ran manually upon during
pre-release checks. This can be reproduced via:
```
pytest tests/test_pythonpackage.py::test_get_package_dependencies
```
The error was:
````
>       assert "setuptools" not in deps_nonrecursive
E       AssertionError: assert 'setuptools' not in {'appdirs', 'build', 'colorama>=0.3.3', 'jinja2', 'meson', 'ninja', ...}
```
@AndreMiras
Copy link
Copy Markdown
Member Author

Getting these shipped in the release, so merging fast (skipping review)

@AndreMiras AndreMiras merged commit a377566 into kivy:develop May 9, 2026
39 of 41 checks passed
@AndreMiras AndreMiras deleted the fix/pythonpackage-test-stale-setuptools branch May 9, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant