Bug 2265477

Summary: python-opytimark fails to build with Python 3.13: test_two_dimensional.py::test_hosaki, test_two_dimensional.py::test_pen_holder: AssertionError
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-opytimarkAssignee: Iztok Fister Jr. <iztok>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: gui1ty, iztok, ksurma, mhroncok, neuro-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-03-28 12:43:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2244836    

Description Karolina Surma 2024-02-22 09:17:14 UTC
python-opytimark fails to build with Python 3.13.0a4.

=================================== FAILURES ===================================
_________________________________ test_hosaki __________________________________

    def test_hosaki():
        f = two_dimensional.Hosaki()
    
        x = np.array([4, 2])
    
        y = f(x)
    
>       assert y == -2.345811576101292
E       assert -2.3458115761012914 == -2.345811576101292

tests/opytimark/markers/test_two_dimensional.py:363: AssertionError
_______________________________ test_pen_holder ________________________________

    def test_pen_holder():
        f = two_dimensional.PenHolder()
    
        x = np.array([-9.646167671043401, -9.646167671043401])
    
        y = f(x)
    
>       assert y == -0.9635348327265058
E       assert -0.9635348327265059 == -0.9635348327265058

tests/opytimark/markers/test_two_dimensional.py:493: AssertionError

=========================== short test summary info ============================
FAILED tests/opytimark/markers/test_two_dimensional.py::test_hosaki - assert ...
FAILED tests/opytimark/markers/test_two_dimensional.py::test_pen_holder - ass...
=========== 2 failed, 185 passed, 94 deselected, 1 warning in 0.37s ============

https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/07046901-python-opytimark/

For all our attempts to build python-opytimark with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-opytimark/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Sandro 2024-03-28 12:06:28 UTC
This appears to be working now. I rebuilt several times locally using Python 3.13. All my builds succeeded. Latest build in Copr also succeeded.

Karolina, I'd suggest to close this bug if the next Copr build also succeeds. If not, I'll take another look. Right now, I'm unable to reproduce.