Description of problem:
Package python-pint fails to build from source in Fedora rawhide.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
koji build --scratch f34 python-pint-0.16-1.fc34~bootstrap.src.rpm
This package is tracked by Koschei. See:
==================================== ERRORS ====================================
_______________ ERROR collecting pint/testsuite/test_quantity.py _______________
pint/testsuite/test_quantity.py:1032: in <module>
class TestOffsetUnitMath(QuantityTestCase, ParameterizedTestCase):
pint/testsuite/test_quantity.py:1544: in TestOffsetUnitMath
pint/testsuite/helpers.py:45: in requires_numpy_at_least
StrictVersion(NUMPY_VER) >= StrictVersion(version),
/usr/lib64/python3.10/distutils/version.py:40: in __init__
/usr/lib64/python3.10/distutils/version.py:137: in parse
raise ValueError("invalid version number '%s'" % vstring)
E ValueError: invalid version number '1.20.0rc2'
=========================== short test summary info ============================
ERROR pint/testsuite/test_quantity.py - ValueError: invalid version number '1...
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
========================= 3 skipped, 1 error in 3.07s ==========================
It is the version of numpy. StrictVersion cannot parse rc versions:
Init signature: StrictVersion(vstring=None)
Version numbering for anal retentives and software idealists.
Implements the standard interface for version number classes as
described above. A version number consists of two or three
dot-separated numeric components, with an optional "pre-release" tag
on the end. The pre-release tag consists of the letter 'a' or 'b'
followed by a number. If the numeric components of two version
numbers are equal, then one with a pre-release tag will always
be deemed earlier (lesser) than one without.
The following are valid version numbers (shown in the order that
would be obtained by sorting according to the supplied cmp function):
0.4 0.4.0 (these two are equivalent)
The following are examples of invalid version numbers:
The rationale for this version numbering system will be explained
in the distutils documentation.
A fix: https://github.com/hgrecco/pint/pull/1226
your package has an open Fails To Build From Source bug for Fedora 34.
Action is required from you.
If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate . If you are working on a fix, set the status to ASSIGNED to
acknowledge this. If you have already fixed this issue, please close this Bugzilla report.
Following the policy for such packages , your package will be orphaned if
this bug remains in NEW state more than 8 weeks (not sooner than 2021-03-05).
A week before the mass branching of Fedora 35 according to the schedule ,
any packages not successfully rebuilt at least on Fedora 33 will be
retired regardless of the status of this bug.
built 0.16.1 for rawhide.