Summary: | devel/py-archinfo: Update 9.2.154 => 9.2.157 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Rares Aioanei <schaiba> | ||||
Component: | Individual Port(s) | Assignee: | Vladimir Druzenko <vvd> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | vvd | ||||
Priority: | --- | ||||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
This is incorrect in files/setup.py.in: from distutils.core import setup setup( name = 'archinfo', version = "%%DISTVERSION%%", packages = ['archinfo'], ) Need substitution… Testing… I'm not sure what you mean. Can you explain further? (In reply to Rares Aioanei from comment #2) ===> Building for py311-archinfo-9.2.156 /usr/local/lib/python3.11/site-packages/setuptools/dist.py:544: UserWarning: The version specified ('%%DISTVERSION%%') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details. $ cat files/setup.py.in from distutils.core import setup setup( name = 'archinfo', version = "%%DISTVERSION%%", packages = ['archinfo'], ) We need to replace %%DISTVERSION%% with value of the DISTVERSION variable (9.2.156). I found a way, but I don't really like it: post-extract: ${SED} 's|%%DISTVERSION%%|${DISTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py What do you think? I think at this point we can continue using %%DISTVERSION%% and I'll look into a way to solve this. (In reply to Rares Aioanei from comment #5) I'd rather use my workaround until we come up with a better option. I see release 9.2.157. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=d2c867791923d7ac20e4386c44422d1aa8d4d040 commit d2c867791923d7ac20e4386c44422d1aa8d4d040 Author: Rares Aioanei <schaiba@gmail.com> AuthorDate: 2025-05-20 21:40:43 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-05-20 21:46:54 +0000 devel/py-archinfo: Update 9.2.154 => 9.2.157 Commit log: https://github.com/angr/archinfo/compare/v9.2.154...v9.2.157 Add substitution of DISTVERSION in files/setup.py. PR: 286927 devel/py-archinfo/Makefile | 4 ++-- devel/py-archinfo/distinfo | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) Thanks. |
Created attachment 260538 [details] Updated Makefile and distinfo