summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-04-14 09:17:29 +0000
committerCoprDistGit <infra@openeuler.org>2024-04-14 09:17:29 +0000
commitdd9bde0310f39a949cdceed93ec2fb477faa6c74 (patch)
treec153dec992cbb2cc61c7478df945ffbf4636924b
parentfd0044a398d67a50a32578a2a61befbbea3b9f2d (diff)
automatic import of python-linear-operator
-rw-r--r--0001-remove-illegal-characters.patch26
-rw-r--r--python-linear-operator.spec2
2 files changed, 28 insertions, 0 deletions
diff --git a/0001-remove-illegal-characters.patch b/0001-remove-illegal-characters.patch
new file mode 100644
index 0000000..644497c
--- /dev/null
+++ b/0001-remove-illegal-characters.patch
@@ -0,0 +1,26 @@
+diff --git a/linear_operator.egg-info/requires.txt b/linear_operator.egg-info/requires.txt
+index f4f2a4a..dab301f 100644
+--- a/linear_operator.egg-info/requires.txt
++++ b/linear_operator.egg-info/requires.txt
+@@ -1,7 +1,7 @@
+ torch>=1.11
+ scipy
+ jaxtyping>=0.2.9
+-typeguard~=2.13.3
++typeguard>=2.13.3
+
+ [dev]
+ ufmt
+diff --git a/setup.py b/setup.py
+index 163bd91..e6f7b3b 100644
+--- a/setup.py
++++ b/setup.py
+@@ -37,7 +37,7 @@ except ImportError:
+ pass
+
+ # Other requirements
+-install_requires += ["scipy", "jaxtyping>=0.2.9", "typeguard~=2.13.3"]
++install_requires += ["scipy", "jaxtyping>=0.2.9", "typeguard>=2.13.3"]
+
+
+ # Get version
diff --git a/python-linear-operator.spec b/python-linear-operator.spec
index 3b06701..3d04d92 100644
--- a/python-linear-operator.spec
+++ b/python-linear-operator.spec
@@ -14,6 +14,8 @@ License: MIT
URL: https://github.com/cornellius-gp/linear_operator/
Source0: https://files.pythonhosted.org/packages/7f/16/7ec06125b4ea863b0ef09566b6b6e2469fef5bd9fa9b9949f12c33d24d23/linear_operator-0.5.1.tar.gz
+Patch1: 0001-remove-illegal-characters.patch
+
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm