Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Oct 2021 16:41:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 259381] devel/py-platformdirs: fails to build: setuptools_scm, line 84, in dump_version > fp.write(template.format(version=version)) > KeyError: 'version_tuple'
Message-ID:  <bug-259381-21822-EBjKb2gg4T@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-259381-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-259381-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259381

--- Comment #4 from Kai Knoblich <kai@FreeBSD.org> ---
(In reply to Po-Chuan Hsieh from comment #3)

> Thanks for reporting. I'll check that.
> I'm not sure why I did not get pkg-fallout mail of this port.

The issue occurs only if devel/py-setuptools_scm is already present in the
environment.  You can reproduce it by adding devel/py-setuptools_scm to
BUILD_DEPENDS and devel/py-platformdirs should fail in the "configure" phas=
e.

(In reply to Po-Chuan Hsieh from comment #3)
(In reply to Kubilay Kocak from comment #2)

> In this case, we have 2 choices:
> - Add TOML dependency (py-toml now and py-tomli for 6+) to RUN_DEPENDS un=
conditionally. Add a comment to declare that [toml] is added.
> - Keep TOML option and change its description to inform users that disabl=
ing it may lead to build failure of dependent ports. If people disable it, =
it's their choice to get build failure.

I would try to keep the TOML option and change its description first and wo=
uld
do so like with the 5.0.2 update for devel/py-setuptools_scm.

As a last resort, if issues are still reported about the TOML option, we can
fold the TOML option and add it with a appropriate comment to RUN_DEPENDS.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259381-21822-EBjKb2gg4T>