build: migrate from setup.py to pyproject.toml#601
Draft
ormsbee wants to merge 1 commit into
Draft
Conversation
Replace the legacy setup.py + setup.cfg + MANIFEST.in (base.in) packaging with a declarative pyproject.toml using the setuptools build backend (PEP 517/621/639). - pyproject.toml is now the sole source of truth for runtime dependencies; requirements/base.in is removed and pip-compile reads pyproject.toml (-c requirements/constraints.txt) to generate base.txt. - Dynamic version via [tool.setuptools.dynamic] attr = openedx_core.__version__. - Keep include-package-data + MANIFEST.in so py.typed/.pyi stubs/data files continue to ship in the wheel. - Migrate [isort] config into [tool.isort]; drop obsolete [wheel] universal=1 and the setup.py "tag" git shortcut (releases trigger on tag push). - tox.ini: drop setup.py from lint targets; replace `setup.py check --restructuredtext` with `readme_renderer`. - pypi-publish.yml: build with `python -m build` instead of `setup.py sdist bdist_wheel`. - Regenerate base.txt annotations (no version pins changed). Verified: python -m build, twine check, wheel ships py.typed/stubs/data, Requires-Dist intact, editable (PEP 660) install imports openedx_core 1.0.1, pip-compile resolves the identical dependency set. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace the legacy setup.py + setup.cfg + MANIFEST.in (base.in) packaging
with a declarative pyproject.toml using the setuptools build backend
(PEP 517/621/639).
requirements/base.in is removed and pip-compile reads pyproject.toml
(-c requirements/constraints.txt) to generate base.txt.
continue to ship in the wheel.
and the setup.py "tag" git shortcut (releases trigger on tag push).
setup.py check --restructuredtextwithreadme_renderer.python -m buildinstead ofsetup.py sdist bdist_wheel.Verified: python -m build, twine check, wheel ships py.typed/stubs/data,
Requires-Dist intact, editable (PEP 660) install imports openedx_core 1.0.1,
pip-compile resolves the identical dependency set.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com