Skip to content

Migrate packaging to pyproject.toml - #217

Merged
gomezzz merged 1 commit into
mainfrom
build/pyproject-migration
Aug 22, 2026
Merged

gomezzz merged 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.
@gomezzz
gomezzz merged commit 2dc28f0 into main Aug 22, 2026
2 of 3 checks passed
@gomezzz
gomezzz deleted the build/pyproject-migration branch August 22, 2026 08:14
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