Closed Bug 1799674 Opened 2 years ago Closed 2 years ago

migrate moz-phab from setup.py to pyproject.toml

Categories

(Conduit :: moz-phab, task)

Tracking

(Not tracked)

RESOLVED FIXED

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.

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.

Attachment #9302521 - Attachment description: build: migrate from `setup.py` to `pyproject.toml` (Bug 1799674) r?zeid → build: migrate from `setup.py` to `pyproject.toml` (Bug 1799674) r=zeid
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: