Build pip-tools
using PyPA's build
frontend tool
#1642
Labels
enhancement
Improvements to functionality
setuptools
Related to compiling requirements form setup.py
What's the problem this feature will solve?
Running the current build command:
produces the following warning:
The
setuptools_scm
repo indicates that usingsetup.py
is deprecated in favor of usingpyproject.toml
.https://github.com/pypa/setuptools_scm#setuppy-usage-deprecated
Describe the solution you'd like
Since the project's
setup.py
file is only populated to targetsetuptools_scm
, migratingto an equally sparse
pyproject.toml
is a simple task:If the project migrates away from using
setup.py
, a (hopefully) painless alternative is to usebuild
, which is already part ofpip-tool
's dependencies'.To use
build
, the proposedpyproject.toml
needs to indicate the proposed build backend:With the proposed
pyproject.toml
filepip-tools
can now be built usingAccording to the official docs, using
build
is roughly equivalent to running the current build step:https://pypa-build.readthedocs.io/en/latest/differences.html#setup-py-sdist-bdist-wheel
Additional context
setuptools_scm repository
build repository
build docs
The text was updated successfully, but these errors were encountered: