sage_setup: Add PEP 517 / PEP 660 buildapi
mkoeppe opened this issue · 9 comments
We replace MANIFEST filtering in the modularized distributions by implementing a PEP 517/PEP 660 buildapi in sage_setup.
-
PEP 660
build_editablevia https://editables.readthedocs.io/en/latest/usage.html#mapping-individual-files-packages -
https://github.com/pypa/setuptools/blob/main/setuptools/command/editable_wheel.py
-
https://www.python.org/dev/peps/pep-0660/ Editable installs for pyproject.toml based builds (wheel based)
-
python/cpython#92054 Clarification about how to implement namespace packages (as in PEP 420) via import hooks for PEP 660 use case
References (outdated):
- https://github.com/takluyver/flit/blob/master/flit_core/flit_core/buildapi.py
- https://flit.readthedocs.io/en/latest/pyproject_toml.html#
- Poetry issue #265 - Support for custom commands and functions - closed as wontfix
- https://pypi.org/project/enscons/ ?
- https://discuss.python.org/t/help-testing-pep-660-support-in-setuptools/16904
- #29846, #30581, #21516
Component: build
Issue created by migration from https://trac.sagemath.org/ticket/29845
Description changed:
---
+++
@@ -2,9 +2,12 @@
This could be done, for example, by customizing flit.
+
References:
- https://github.com/takluyver/flit/blob/master/flit_core/flit_core/buildapi.py
- https://flit.readthedocs.io/en/latest/pyproject_toml.html#
+- [https://github.com/python-poetry/poetry/issues/265 Poetry issue #265 - Support for custom commands and functions](https://github.com/python-poetry/poetry/issues/265 Poetry issue #265 - Support for custom commands and functions) closed as wontfix
+Description changed:
---
+++
@@ -6,7 +6,7 @@
References:
- https://github.com/takluyver/flit/blob/master/flit_core/flit_core/buildapi.py
- https://flit.readthedocs.io/en/latest/pyproject_toml.html#
-- [https://github.com/python-poetry/poetry/issues/265 Poetry issue #265 - Support for custom commands and functions](https://github.com/python-poetry/poetry/issues/265 Poetry issue #265 - Support for custom commands and functions) closed as wontfix
+- [Poetry issue #265 - Support for custom commands and functions](https://github.com/python-poetry/poetry/issues/265) - closed as wontfix
Description changed:
---
+++
@@ -7,7 +7,7 @@
- https://github.com/takluyver/flit/blob/master/flit_core/flit_core/buildapi.py
- https://flit.readthedocs.io/en/latest/pyproject_toml.html#
- [Poetry issue #265 - Support for custom commands and functions](https://github.com/python-poetry/poetry/issues/265) - closed as wontfix
+- https://pypi.org/project/enscons/ ?
-Setting new milestone based on a cursory review of ticket status, priority, and last modification date.
Description changed:
---
+++
@@ -9,5 +9,5 @@
- [Poetry issue #265 - Support for custom commands and functions](https://github.com/python-poetry/poetry/issues/265) - closed as wontfix
- https://pypi.org/project/enscons/ ?
+- https://www.python.org/dev/peps/pep-0660/ Editable installs for pyproject.toml based builds (wheel based)
-Description changed:
---
+++
@@ -10,4 +10,4 @@
- https://pypi.org/project/enscons/ ?
- https://www.python.org/dev/peps/pep-0660/ Editable installs for pyproject.toml based builds (wheel based)
-
+- https://github.com/python/cpython/issues/92054 Clarification about how to implement namespace packages (as in PEP 420) via import hooks for PEP 660 use caseDescription changed:
---
+++
@@ -11,3 +11,5 @@
- https://www.python.org/dev/peps/pep-0660/ Editable installs for pyproject.toml based builds (wheel based)
- https://github.com/python/cpython/issues/92054 Clarification about how to implement namespace packages (as in PEP 420) via import hooks for PEP 660 use case
+- https://discuss.python.org/t/help-testing-pep-660-support-in-setuptools/16904
+