Skip to content

fix: remove hatch-regex dependency and update CI pipelines#7

Merged
ppswaroopa merged 3 commits into
mainfrom
fix/pypi-hatch-regex
Mar 26, 2026
Merged

fix: remove hatch-regex dependency and update CI pipelines#7
ppswaroopa merged 3 commits into
mainfrom
fix/pypi-hatch-regex

Conversation

@ppswaroopa
Copy link
Copy Markdown
Owner

This PR resolves PyPI build failure and implements layers of additional protection to catch packaging regressions early.

Here are the complete details for your Pull Request to completely cover everything we just accomplished!

What changed

  1. PyPI Build Fix: Removed the pseudo-dependency hatch-regex from pyproject.toml's build-system.requires list. Hatchling natively supports regex-based version extraction, so this missing PyPI package was unnecessarily failing the build.
  2. Preventative PR Check: Added a new build-check verification job to .github/workflows/ci.yml. GitHub Actions will now explicitly run python3 -m build for every PR, ensuring no bad dependencies can break main.
  3. Local Fast Checks: Added a developer quality-of-life script at scripts/install_hooks.sh. Generating a local pre-push Git hook, this spins up an isolated /tmp virtual environment (to bypass strict Linux PEP-668 restrictions) and verifies the package builds correctly before allowing the push to reach the remote.
  4. Documentation: Updated CHANGELOG.md with these new CI safety nets, and added the Publish to PyPI workflow status badge to the README.md.

Validation

  • Local tests using python3 -m build successfully generate the .tar.gz and .whl files.
  • Verified the local pre-push hook builds dynamically inside a temporary isolated virtual environment and correctly blocks pushes on build failure.
  • Badges check and changelog formatting reviewed and passing visually.

@ppswaroopa ppswaroopa self-assigned this Mar 26, 2026
@ppswaroopa ppswaroopa added the bug Something isn't working label Mar 26, 2026
Copy link
Copy Markdown
Owner Author

@ppswaroopa ppswaroopa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay

@ppswaroopa ppswaroopa merged commit 97ea377 into main Mar 26, 2026
18 checks passed
@ppswaroopa ppswaroopa deleted the fix/pypi-hatch-regex branch March 26, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant