Bug 267120 - math/py-kiwisolver: Install tagged as v0.0.0
Summary: math/py-kiwisolver: Install tagged as v0.0.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Loïc Bartoletti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-16 12:43 UTC by Jason W. Bacon
Modified: 2022-10-27 09:17 UTC (History)
1 user (show)

See Also:
lbartoletti: maintainer-feedback+


Attachments
Fix version (1.77 KB, patch)
2022-10-20 04:37 UTC, Loïc Bartoletti
lbartoletti: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason W. Bacon freebsd_committer freebsd_triage 2022-10-16 12:43:14 UTC
<<<ROOT@moray.acadix>>> /usr/ports/biology/py-multiqc 1120 # ls -d /usr/local/lib/python3.9/site-packages/k*
/usr/local/lib/python3.9/site-packages/kiwisolver/
/usr/local/lib/python3.9/site-packages/kiwisolver-0.0.0-py3.9.egg-info/

<<<ROOT@moray.acadix>>> /usr/ports/biology/py-multiqc 1128 # head -3 /usr/local/lib/python3.9/site-packages/kiwisolver-0.0.0-py3.9.egg-info/PKG-INFO
Metadata-Version: 2.1
Name: kiwisolver
Version: 0.0.0

This causes matplotlib to fail, since it has a minimum version of 1.0.1.
Comment 1 Loïc Bartoletti freebsd_committer freebsd_triage 2022-10-19 08:51:14 UTC
Indeed! Sorry,
It seems that we have to pass the version:
https://github.com/archlinux/svntogit-community/blob/packages/python-kiwisolver/trunk/PKGBUILD#L16
Comment 2 Loïc Bartoletti freebsd_committer freebsd_triage 2022-10-19 15:57:27 UTC
I found the problem. This package uses PEP517 (same for devel/py-cppy).
Comment 3 Jason W. Bacon freebsd_committer freebsd_triage 2022-10-19 19:34:43 UTC
What's the solution?  Seems not as simple as adding a pep517 dep.
Comment 4 Loïc Bartoletti freebsd_committer freebsd_triage 2022-10-20 04:37:58 UTC
Created attachment 237475 [details]
Fix version

Can you try this patch, please?
Comment 5 Jason W. Bacon freebsd_committer freebsd_triage 2022-10-20 12:50:22 UTC
Looks good, thanks:

<<<ROOT@moray.acadix>>> /usr/ports/wip/py-kiwisolver 1072 # ls -d /usr/local/lib/python3.9/site-packages/kiwisolver*
/usr/local/lib/python3.9/site-packages/kiwisolver/
/usr/local/lib/python3.9/site-packages/kiwisolver-1.4.4-py3.9.egg-info/

<<<ROOT@moray.acadix>>> /usr/ports/wip/py-kiwisolver 1073 # head -3 /usr/local/lib/python3.9/site-packages/kiwisolver-1.4.4-py3.9.egg-info/PKG-INFO
Metadata-Version: 2.1
Name: kiwisolver
Version: 1.4.4
Comment 6 commit-hook freebsd_committer freebsd_triage 2022-10-20 14:07:23 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5e1e4b9b2760dda35154501954ce9048a6b2732c

commit 5e1e4b9b2760dda35154501954ce9048a6b2732c
Author:     Loïc Bartoletti <lbartoletti@FreeBSD.org>
AuthorDate: 2022-10-20 04:39:27 +0000
Commit:     Loïc Bartoletti <lbartoletti@FreeBSD.org>
CommitDate: 2022-10-20 14:06:03 +0000

    devel/py-cppy, math/py-kiwisolver: fix versions

    These ports install lib tagged as v0.0.0.
    Both ports require devel/py-setuptools_scm to generate
    the version of the library.

    PR:             267120
    Reported by:    jwb
    Reviewed by:    jwb

 devel/py-cppy/Makefile          | 4 ++++
 graphics/py-cartopy/Makefile    | 1 +
 graphics/py-momepy/Makefile     | 1 +
 graphics/py-osmnet/Makefile     | 1 +
 graphics/qgis-ltr/Makefile      | 2 +-
 graphics/qgis/Makefile          | 2 +-
 math/py-kiwisolver/Makefile     | 6 +++++-
 math/py-matplotlib/Makefile     | 2 +-
 math/py-matplotlib2/Makefile    | 2 +-
 math/py-splot/Makefile          | 1 +
 math/py-spopt/Makefile          | 1 +
 math/sage/Makefile              | 2 +-
 science/py-access/Makefile      | 1 +
 science/py-esda/Makefile        | 1 +
 science/py-pycsw/Makefile       | 1 +
 science/py-pygeometa/Makefile   | 1 +
 science/py-segregation/Makefile | 1 +
 science/py-tobler/Makefile      | 1 +
 18 files changed, 25 insertions(+), 6 deletions(-)