Skip to content

Migrate packaging to pyproject.toml#217

Open
gomezzz wants to merge 1 commit into
mainfrom
build/pyproject-migration
Open

Migrate packaging to pyproject.toml#217
gomezzz wants to merge 1 commit into
mainfrom
build/pyproject-migration

Conversation

@gomezzz

@gomezzz gomezzz commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Replaces setup.py, requirements.txt and pytest.ini with a single pyproject.toml (setuptools build backend).
  • Uses namespace-package discovery ([tool.setuptools.packages.find] with namespaces = true) so every subpackage ships — including paseos.geometric_model, which the hand-maintained setup.py list had omitted.
  • Adds [tool.ruff] and [tool.pytest.ini_options] config (used by later PRs).
  • Updates the PyPI/TestPyPI deploy workflows to python -m build (the old setup.py sdist bdist_wheel no longer exists) and bumps their deprecated checkout@v2/setup-python@v2 actions.
  • environment.yml is kept for conda users.

Verified locally: pip wheel . builds a wheel containing all 11 code subpackages plus bundled data (de421.bsp, default_cfg.toml); paseos.tests is excluded.

Test plan

  • pip wheel . --no-deps builds successfully and wheel contents inspected
  • CI (Running tests) — note: the pre-existing flake8 E302 failure on main is fixed in the stacked ruff PR

Part of a stack: this is the base for the ruff and uv PRs.

Replace setup.py, requirements.txt and pytest.ini with a single
pyproject.toml (setuptools backend). Use namespace-package discovery so
all subpackages are shipped, including paseos.geometric_model, which the
hand-maintained setup.py package list had omitted.

Update the PyPI deploy workflows to build with 'python -m build' instead
of the removed 'setup.py sdist bdist_wheel'. environment.yml is kept for
conda users.
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