Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 898668

Summary: dev-python/cftime-1.6.2 fails tests (CYTHON3-SYSTEM)
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: mgorny, python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/Unidata/cftime/issues/271
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 897934    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2023-03-02 08:22:39 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/cftime-1.6.2 fails tests (CYTHON3-SYSTEM).
Discovered on: amd64 (internal ref: hardened_tinderbox)

NOTE:
(CYTHON3-SYSTEM) in the summary means that the bug was found on a machine that runs dev-python/cython-3 but this bug MAY or MAY NOT BE related to the new version of cython
Comment 1 Agostino Sarubbo gentoo-dev 2023-03-02 08:22:41 UTC
Created attachment 855518 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-03-02 08:22:42 UTC
Error(s) that match a know pattern:


E       TypeError: unsupported operand type(s) for +: 'datetime.timedelta' and 'cftime._cftime.DatetimeNoLeap'
E       TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'cftime._cftime.DatetimeGregorian'
FAILED          [   9/2272]
FAILED test/test_cftime.py::DateTime::test_add - TypeError: unsupported opera...
FAILED test/test_cftime.py::DateTime::test_sub - TypeError: unsupported opera...
FAILED test/test_cftime.py::TestDate2index::test_select_nc - TypeError: unsup...
Comment 3 Larry the Git Cow gentoo-dev 2023-07-28 15:11:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53fa2f3b204ef0dad3ecbf08b482e432123d616f

commit 53fa2f3b204ef0dad3ecbf08b482e432123d616f
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-07-28 14:57:41 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-07-28 15:11:50 +0000

    dev-python/cftime: Require cython<3
    
    Bug: https://bugs.gentoo.org/898668
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/cftime/cftime-1.6.2.ebuild | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)
Comment 4 Larry the Git Cow gentoo-dev 2023-07-31 07:21:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1505ba25edfd5dde254e3719460b56e60695261

commit e1505ba25edfd5dde254e3719460b56e60695261
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-07-31 07:17:38 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-07-31 07:21:19 +0000

    dev-python/cftime: Backport cython-3 fix
    
    Bug: https://github.com/Unidata/cftime/issues/271
    Closes: https://bugs.gentoo.org/898668
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 ...{cftime-1.6.2.ebuild => cftime-1.6.2-r1.ebuild} |  6 +++-
 .../cftime/files/cftime-1.6.2-cython-3.patch       | 34 ++++++++++++++++++++++
 2 files changed, 39 insertions(+), 1 deletion(-)