Skip to content

Conversation

@JacksonFergusonDev
Copy link
Owner

@JacksonFergusonDev JacksonFergusonDev commented Jan 19, 2026

🐛 Bug Fix

What's changing?

This PR refactors the project structure to adhere to the standard src-layout.

  • Moves all implementation files from src/ to src/git_pulsar/.
  • Updates internal imports in system.py to use relative paths.
  • Updates pyproject.toml entry points to point to the new package location (git_pulsar.cli:main).
  • Updates the test suite to import from the installed package context (git_pulsar) rather than the source root.

Why?

Previously, src was being treated as a package, but in a standard python installation, src is stripped, leaving only the contents installed. This caused the installed executable to fail with:
ModuleNotFoundError: No module named 'src'

This change ensures the package is installed correctly as git_pulsar and can be imported by the generated script entry points.

Checks

  • git-pulsar executable runs after install (pip install .)
  • pytest suite passes with new import structure

Moves loose python files from `src/` to `src/git_pulsar/` to correct
the source layout. Updates internal imports in `system.py` to use
relative paths.
Updates test suite to import from `git_pulsar` instead of `src`,
ensuring tests target the installed package context correctly.
Updates `pyproject.toml` scripts to point to `git_pulsar.cli` and
`git_pulsar.daemon`, fixing the `ModuleNotFoundError` on install.
@JacksonFergusonDev JacksonFergusonDev merged commit 74a3a06 into main Jan 19, 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.

2 participants