NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-setuptools-scm listed in the above command, you can pick from the names under the Packages section.
devel/py-setuptools-scm: Heed GIT_CEILING_DIRECTORIES
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283098
introduced GIT_CEILING_DIRECTORIES=${WRKDIR} so that Python port builds
do not ascend up and start looking at our entire ports tree, which is
usually unrelated.
The upstream setuptools-scm package as of 8.0.4 deliberately breaks this
and strips all GIT_* environment variables except three, and
this will lead to "git archive" that it calls when looking up extra
requisites for building a wheel in the entire ports tree again.
Note the bug will not be observed if either WRKDIR is outside
of PORTSDIR's hierarchy (in poudriere, say), or for builds of
ports if py-setuptools-scm aren't installed.
(Only the first 15 lines of the commit message are shown above )
Mk/Uses/python.mk: Introduce PY_TOMLI
- Convert ports to use PY_TOMLI to simplify Makefile.
The minimal version is set to 2.0.1 because it is required by multiple ports
such as devel/py-poetry.
The upper bound of version is set to 3 because it is limited by devel/py-poetry.
With hat: python
devel/py-setuptools-scm: update to 8.0.4
Directory and PORTNAME changed to match normalised name in release
tarball; consumers updated to match.
Although setuptools itself is specified as a run dependency in the
Python package metadata, it is currently left out here to prevent
environment pollution until at least PR 270510 is committed.
Additionally, this version of setuptools-scm requires setuptools>=61,
which means this version is only meant for USE_PYTHON=pep517 ports
as all USE_PYTHON=distutils ports will switch to devel/py-setuptools58
also after PR 270510. science/py-emmet-core is switched to
devel/py-setuptools_scm7 accordingly, as it specifies setuptools-scm<8.
devel/py-{flit-scm,hatch-vcs} have ${PY_SETUPTOOLS} added to
RUN_DEPENDS to compensate.
Further details: https://wiki.freebsd.org/Python/setuptools
Reported by: yuri
Co-authored by: matthew
Exp-run by: antoine (earlier iteration)
Approved by: yuri (science/py-emmet-core, previous iteration)
PR: 272134
Differential Revision: https://reviews.freebsd.org/D39288