From cf2d3b254d590c3365d138cc8e1145f2955c0483 Mon Sep 17 00:00:00 2001
From: mcepl <>
Date: Apr 04 2023 21:06:49 +0000
Subject: Update python-cirq to version 1.1.0 / rev 8 via SR 1077206
https://build.opensuse.org/request/show/1077206
by user mcepl + dimstar_suse
---
diff --git a/.files b/.files
index 10dcaf0..182064c 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index 9b6c1a4..a341131 100644
--- a/.rev
+++ b/.rev
@@ -75,4 +75,12 @@ https://github.com/quantumlib/Cirq/issues/3154
1061911
+
+ 8aca8d12ef841970e6c9615551748ad4
+ 1.1.0
+
+ dimstar_suse
+
+ 1077206
+
diff --git a/python-cirq.changes b/python-cirq.changes
index afaf4c0..06a1bc0 100644
--- a/python-cirq.changes
+++ b/python-cirq.changes
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Mon Apr 3 19:27:40 UTC 2023 - Ben Greiner
+
+- Don't test and build cirq_core[contrib] for python311
+ * no numba
+ * no quimb
+
+-------------------------------------------------------------------
Sat Jan 28 19:10:55 UTC 2023 - Ben Greiner
- Update to 1.1.0
diff --git a/python-cirq.spec b/python-cirq.spec
index 9b12304..f1fc1fd 100644
--- a/python-cirq.spec
+++ b/python-cirq.spec
@@ -59,10 +59,10 @@ BuildRequires: %{python_module pyquil >= 3.2.0}
# SECTION cirq-core[contrib]
BuildRequires: %{python_module autoray}
BuildRequires: %{python_module PyLaTeX >= 1.3.0}
-BuildRequires: %{python_module numba >= 0.53}
+BuildRequires: %{python_module numba >= 0.53 if %python-base < 3.11}
BuildRequires: %{python_module opt-einsum}
BuildRequires: %{python_module ply >= 3.6}
-BuildRequires: %{python_module quimb}
+BuildRequires: %{python_module quimb if %python-base < 3.11}
# /SECTION
# SECTION test
BuildRequires: %{python_module flynt >= 0.60}
@@ -206,9 +206,13 @@ done
# tests assume testfiles and import path to be the same, but we test BUILDROOT
donttest="test_json_test_data_coverage"
donttest="$donttest or test_json_and_repr_data"
+# no cirq-core[contrib] extra for python311 yet
+python311_donttest=" or test_immutable or test_gate_family_immutable"
+python311_donttest="$python311_donttest or (classical_data_test and test_repr)"
+python311_ignore="--ignore cirq/contrib"
for p in %cirqmodules; do
pushd cirq-$p
- %pytest -v -k "not ($donttest)" -n auto
+ %pytest -v -k "not ($donttest ${$python_donttest})" ${$python_ignore} -n auto
popd
done
@@ -223,9 +227,11 @@ done
%{python_sitelib}/cirq
%{python_sitelib}/cirq_core-%{version}*-info
+%if %{python_version_nodots} < 311
%files %{python_files core-contrib}
%doc cirq-core/README.rst
%license cirq-core/LICENSE
+%endif
%files %{python_files aqt}
%doc cirq-aqt/README.rst