Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pyquil for openSUSE:Factory checked in at 2021-04-10 15:27:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyquil (Old) and /work/SRC/openSUSE:Factory/.python-pyquil.new.2401 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyquil" Sat Apr 10 15:27:54 2021 rev:4 rq:884068 version:2.28.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyquil/python-pyquil.changes 2021-01-27 18:59:12.072523102 +0100 +++ /work/SRC/openSUSE:Factory/.python-pyquil.new.2401/python-pyquil.changes 2021-04-10 15:29:01.598494866 +0200 @@ -1,0 +2,5 @@ +Fri Apr 9 13:52:38 UTC 2021 - Mark??ta Machov?? <[email protected]> + +- Add patch rounding.patch to fix tests on 32-bit + +------------------------------------------------------------------- New: ---- rounding.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyquil.spec ++++++ --- /var/tmp/diff_new_pack.3us306/_old 2021-04-10 15:29:02.134495497 +0200 +++ /var/tmp/diff_new_pack.3us306/_new 2021-04-10 15:29:02.134495497 +0200 @@ -27,6 +27,8 @@ License: Apache-2.0 URL: https://github.com/rigetti/pyquil Source: https://github.com/rigetti/pyquil/archive/v%{version}.tar.gz#/%{packagename}-%{version}.tar.gz +# get rid of rounding glitch on 32 bit +Patch0: rounding.patch BuildRequires: %{python_module antlr4-python3-runtime >= 4.7.2} BuildRequires: %{python_module immutables} BuildRequires: %{python_module ipython} @@ -63,6 +65,7 @@ %prep %setup -q -n %{packagename}-%{version} +%autopatch -p1 %build %python_build ++++++ rounding.patch ++++++ Index: pyquil-2.28.0/pyquil/tests/test_wavefunction.py =================================================================== --- pyquil-2.28.0.orig/pyquil/tests/test_wavefunction.py +++ pyquil-2.28.0/pyquil/tests/test_wavefunction.py @@ -64,7 +64,7 @@ def test_probabilities(wvf): probs2 = wvf.probabilities() np.testing.assert_array_equal(probs1, probs2) - assert np.sum(probs2) == 1.0 + assert np.isclose(np.sum(probs2), 1.0) def test_sample(wvf):
