migrate moz-phab from setup.py to pyproject.toml
Categories
(Conduit :: moz-phab, task)
Tracking
(Not tracked)
People
(Reporter: sheehan, Assigned: sheehan)
Details
Attachments
(1 file)
setup.py
will be deprecated in the near future. We should migrate to pyproject.toml
and the new setuptools build infrastructure.
This will also allow us to use setuptools_scm
to determine the package version number from Git tags, simplifying our maintenance/release process.
Assignee | ||
Comment 1•2 years ago
|
||
Migrate from setup.py
to pyproject.toml
. setup.py
is converted
into a simple stub that calls setuptools.setup()
, a recommended
workaround to ensure editable installs work for packages using
the new build tooling. Fields from setup.py
are converted to
their equivalent in the project
section of pyproject.toml
.
importlib_metadata
is added as an optional dependency on Python
earlier than 3.8, and environment.py
is updated to use it to
retrieve package information. CircleCI builds moz-phab
via the
build
package from PyPA. The README is updated to reflect no
longer needing to push a version update commit, as setuptools_scm
now parses version information from Git tags in the repo.
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Description
•