I am not sure is this good idea, but I manage to make the port with: Index: pyproject.toml --- pyproject.toml.orig +++ pyproject.toml @@ -57,8 +57,8 @@ strict = true metadata = false [build-system] -requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0"] -build-backend = "poetry_dynamic_versioning.backend" +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api" [tool.ruff] target-version = "py38"
On Tue, Mar 25, 2025 at 06:15:32AM +0000, Mikolaj Kucharski wrote: > Hi. > > I have following net/py-aiomqtt/Makefile so far: > > --8<-- > COMMENT = async MQTT Python client library > > MODPY_DISTV = 2.3.0 > DISTNAME = aiomqtt-${MODPY_DISTV} > PKGNAME = py-${DISTNAME} > > CATEGORIES = net > > # BSD > PERMIT_PACKAGE = Yes > > MODULES = lang/python > MODPY_PYBUILD = poetry-core > MODPY_PI = Yes > > .include <bsd.port.mk> > -->8-- > > however it fails with: > > $ make build > ===> Building for py3-aiomqtt-2.3.0 > * Getting build dependencies for wheel... > > Traceback (most recent call last): > File "/usr/local/lib/python3.12/site-packages/pyproject_hooks/_impl.py", > line 402, in _call_hook > raise BackendUnavailable( > pyproject_hooks._impl.BackendUnavailable: Cannot import > 'poetry_dynamic_versioning.backend' > > ERROR Backend 'poetry_dynamic_versioning.backend' is not available. > > it looks above comes from pyproject.toml file: > > # sed -ne '/build-system/,/^$/p' pyproject.toml > [build-system] > requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0"] > build-backend = "poetry_dynamic_versioning.backend" > > Does it mean I need to also have in Ports `poetry-dynamic-versioning`? > -- Regards, Mikolaj