Here is refresh and patch against -current I did update: - devel/py-dunamai - devel/py-poetry-dynamic-versioning
I did not update: - net/py-aiomqtt as version 2.4.0 failed with: ===> Building for py3-aiomqtt-2.4.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 'hatchling.build' ERROR Backend 'hatchling.build' is not available. I did change the way pkgname is generated for poetry_dynamic_versioning. You had `py-${DISTNAME:S/_/-/}` and I changed it to `py-${DISTNAME:S/_/-/g}` Index: python.port.mk =================================================================== RCS file: /cvs/ports/lang/python/python.port.mk,v diff -u -p -u -r1.216 python.port.mk --- python.port.mk 15 May 2025 10:21:04 -0000 1.216 +++ python.port.mk 15 May 2025 21:59:42 -0000 @@ -168,6 +168,9 @@ BUILD_DEPENDS += devel/py-pdm-backend . elif ${MODPY_PYBUILD} == poetry-core BUILD_DEPENDS += devel/py-poetry-core _MODPY_EXPECTED_BACKEND = poetry.core +. elif ${MODPY_PYBUILD} == poetry-dynamic-versioning +BUILD_DEPENDS += devel/py-poetry-dynamic-versioning +_MODPY_EXPECTED_BACKEND = poetry_dynamic_versioning.backend . elif ${MODPY_PYBUILD} == setuptools || \ ${MODPY_PYBUILD} == setuptools_scm || \ ${MODPY_PYBUILD} == setuptools-rust @@ -181,7 +184,7 @@ BUILD_DEPENDS += devel/py-setuptools-rus _MODPY_USE_CARGO = Yes . endif . elif !${MODPY_PYBUILD:L:Mother} -ERRORS += "Fatal: unknown MODPY_PYBUILD value (flit, flit_core, flit_scm, hatch-vcs, hatchling, jupyter_packaging, maturin, mesonpy, other, pbr, pdm, poetry-core, setuptools, setuptools_scm, setuptools-rust)" +ERRORS += "Fatal: unknown MODPY_PYBUILD value (flit, flit_core, flit_scm, hatch-vcs, hatchling, jupyter_packaging, maturin, mesonpy, other, pbr, pdm, poetry-core, poetry-dynamic-versioning, setuptools, setuptools_scm, setuptools-rust)" . endif _MODPY_EXPECTED_BACKEND ?= ${MODPY_PYBUILD} _MODPY_WHEELSDIR ?= dist On Thu, May 15, 2025 at 09:15:32PM +0000, Mikolaj Kucharski wrote: > Could this go in Stuart? > > I see that depds which you proposed here are in newer version upstream, > but I could look into updating them after what you attached here goes > in. > > I am using py3-aiomqtt-2.3.0 from that time when you posted it and it > works here. > > On Tue, Mar 25, 2025 at 09:48:40AM +0000, Stuart Henderson wrote: > > On 2025/03/25 06:15, Mikolaj Kucharski wrote: > > > * 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`? > > > > yes, and poetry-dynamic-versioning's dep, dunamai. > > > > here's a tar for all 3 and a patch for oython.port.mk. > > > > Index: python.port.mk > > =================================================================== > > RCS file: /cvs/ports/lang/python/python.port.mk,v > > diff -u -p -r1.213 python.port.mk > > --- python.port.mk 25 Mar 2025 09:29:58 -0000 1.213 > > +++ python.port.mk 25 Mar 2025 09:32:28 -0000 > > @@ -168,6 +168,9 @@ BUILD_DEPENDS += devel/py-pdm-backend > > . elif ${MODPY_PYBUILD} == poetry-core > > BUILD_DEPENDS += devel/py-poetry-core > > _MODPY_EXPECTED_BACKEND = poetry.core > > +. elif ${MODPY_PYBUILD} == poetry-dynamic-versioning > > +BUILD_DEPENDS += devel/py-poetry-dynamic-versioning > > +_MODPY_EXPECTED_BACKEND = poetry_dynamic_versioning.backend > > . elif ${MODPY_PYBUILD} == setuptools || \ > > ${MODPY_PYBUILD} == setuptools_scm || \ > > ${MODPY_PYBUILD} == setuptools-rust > > @@ -181,7 +184,7 @@ BUILD_DEPENDS += devel/py-setuptools-rus > > _MODPY_USE_CARGO = Yes > > . endif > > . elif !${MODPY_PYBUILD:L:Mother} > > -ERRORS += "Fatal: unknown MODPY_PYBUILD value (flit, flit_core, > > flit_scm, hatch-vcs, hatchling, jupyter_packaging, pbr, pdm, maturin, > > mesonpy, other, poetry-core, setuptools, setuptools_scm, setuptools-rust)" > > +ERRORS += "Fatal: unknown MODPY_PYBUILD value (flit, flit_core, > > flit_scm, hatch-vcs, hatchling, jupyter_packaging, pbr, pdm, maturin, > > mesonpy, other, poetry-core, poetry-dynamic-versioning, setuptools, > > setuptools_scm, setuptools-rust)" > > . endif > > _MODPY_EXPECTED_BACKEND ?= ${MODPY_PYBUILD} > > _MODPY_WHEELSDIR ?= dist > > -- Regards, Mikolaj
aiomqtt,v2.tgz
Description: application/tar-gz