Skip to content

Migrate packaging to pyproject.toml with hatchling#40

Draft
endolith wants to merge 1 commit into
masterfrom
cursor/pyproject-hatchling-d3df
Draft

Migrate packaging to pyproject.toml with hatchling#40
endolith wants to merge 1 commit into
masterfrom
cursor/pyproject-hatchling-d3df

Conversation

@endolith
Copy link
Copy Markdown
Owner

Closes #32.

Summary

  • Add pyproject.toml with PEP 621 project metadata and [build-system] using hatchling as the build backend (per current PyPA guidance on moving away from setup.py).
  • Declare runtime dependencies (numpy, scipy) and a dev extra (pytest, pytest-cov, flake8) so pip install -e ".[dev]" matches prior CI behavior without a separate requirements.txt.
  • Remove setup.py and requirements.txt to avoid duplicated dependency sources.
  • Update the GitHub Actions workflow to install the project and dev tools in one step.
  • Refresh the README installation section for the new install paths.

Verification

  • python3 -m build (wheel and sdist) succeeds locally.
  • python3 -m pytest passes (104 passed, 9 skipped) after pip install -e ".[dev]".
Open in Web Open in Cursor 

Replace deprecated setup.py with PEP 621 metadata and hatchling as the
build backend. Runtime dependencies (numpy, scipy) and dev tools (pytest,
pytest-cov, flake8) live in pyproject.toml; CI installs via pip install -e ".[dev]".

Co-authored-by: endolith <endolith@gmail.com>
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.

Switch to pyproject.toml

2 participants