mirror of
https://git.freebsd.org/ports.git
synced 2025-06-22 05:00:30 -04:00
* Since the 6.3.0 release, devel/py-packaging has been defined in the "setup.cfg" as an unconditional dependency. However this leads to problems if py-packaging is uninstalled but py-setuptools_scm persists, then the missing port can no longer be built. [1] Although py-setuptools_scm has a fallback to devel/py-setuptools when py-packaging is absent this fallback code is not executed. This is because py-setuptools, which checks the dependencies of py-setuptools_scm upon invocation and terminates as soon as these are not met. Fix this issue by converting py-packaging into an optional dependency for py-setuptools_scm so that the fallback code is really used if py-packaging is absent. But keep the latter one in the RUN_DEPENDS in order to continue to reflect the actual dependencies. * Also add py-packaging to BUILD_DEPENDS as defined in "pyproject.toml" although it's not strictly required to build the port. [2] * Bump PORTREVISION due package change. PR: 259981 Reported by: many [1], koobs [2] Tested by: se, myself
19 lines
599 B
INI
19 lines
599 B
INI
Avoid errors during runtime if devel/py-packaging is not present.
|
|
|
|
The package is only required in "_version_cls.py" and falls back to
|
|
devel/py-setuptools (via "try ... except") if it's not available.
|
|
|
|
This is a workaround to remedy issues with upgrade runs that also update
|
|
devel/py-{packaging,pyparsing} in environments where devel/py-setuptools_scm is
|
|
already present.
|
|
|
|
--- setup.cfg.orig 2021-12-05 20:43:43 UTC
|
|
+++ setup.cfg
|
|
@@ -27,7 +27,6 @@ classifiers =
|
|
[options]
|
|
packages = find:
|
|
install_requires =
|
|
- packaging>=20.0
|
|
setuptools
|
|
tomli>=1.0.0 # keep in sync
|
|
python_requires = >=3.6
|