Skip to content

Fix CI: register src package for installation - #40

Merged
MartinKalema merged 1 commit into
mainfrom
fix/package-discovery
Jul 6, 2026
Merged

Fix CI: register src package for installation#40
MartinKalema merged 1 commit into
mainfrom
fix/package-discovery

Conversation

@MartinKalema

Copy link
Copy Markdown
Owner

Summary

The first CI run on main failed: pip install -e . was installing nothing importable because setuptools auto-discovery doesn't register the src package without explicit configuration. Locally this was masked by python -m pytest putting the repo root on sys.path; CI's bare pytest has no such crutch.

Fix: [tool.setuptools.packages.find] include = ["src*"].

Verified by running the full non-e2e suite from outside the repo root against the installed package only — 157 passed.

pip install -e . installed nothing importable: setuptools auto-discovery
does not pick up the src package without configuration, so CI's bare
pytest (which, unlike python -m pytest, does not put the cwd on
sys.path) failed with ModuleNotFoundError. Declare the package
explicitly; verified by running the suite from outside the repo root
against the installed package only.
@MartinKalema
MartinKalema merged commit 62e548e into main Jul 6, 2026
2 checks passed
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