change jsonschemema package version to fix install error

Signed-off-by: cherry530 <xuping33@huawei.com>
This commit is contained in:
cherry530 2022-11-07 15:12:43 +08:00
parent 566b53ab04
commit 9fa896dd1f
2 changed files with 26 additions and 3 deletions

View File

@ -0,0 +1,18 @@
diff --git a/requirements.txt b/requirements.txt
index 53fee05..90a0111 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,3 @@
-jsonschema>=0.7,<4
+jsonschema>=0.7,<=4.0.1
jsonpatch>=0.10,<2
six
diff --git a/warlock.egg-info/requires.txt b/warlock.egg-info/requires.txt
index a97030b..ae456b8 100644
--- a/warlock.egg-info/requires.txt
+++ b/warlock.egg-info/requires.txt
@@ -1,3 +1,3 @@
-jsonschema<4,>=0.7
+jsonschema<=4.0.1,>=0.7
jsonpatch<2,>=0.10
six

View File

@ -1,11 +1,13 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-warlock Name: python-warlock
Version: 1.3.3 Version: 1.3.3
Release: 1 Release: 2
Summary: Python object model built on JSON schema and JSON patch. Summary: Python object model built on JSON schema and JSON patch.
License: Apache-2.0 License: Apache-2.0
URL: http://github.com/bcwaldon/warlock URL: http://github.com/bcwaldon/warlock
Source0: https://files.pythonhosted.org/packages/c2/36/178b26a338cd6d30523246da4721b1114306f588deb813f3f503052825ee/warlock-1.3.3.tar.gz Source0: https://files.pythonhosted.org/packages/c2/36/178b26a338cd6d30523246da4721b1114306f588deb813f3f503052825ee/warlock-1.3.3.tar.gz
Patch0000: change-require-jsonschemema-package-version.patch
BuildArch: noarch BuildArch: noarch
@ -180,7 +182,7 @@ pip install warlock
[pypistats]: https://pypistats.org/packages/warlock [pypistats]: https://pypistats.org/packages/warlock
%prep %prep
%autosetup -n warlock-1.3.3 %autosetup -n warlock-1.3.3 -p1
%build %build
%py3_build %py3_build
@ -220,5 +222,8 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Mon Nov 23 2020 Python_Bot <Python_Bot@openeuler.org> * Mon Nov 07 2022 xu_ping <xuping33@h-partners.com> - 1.3.3-2
- change jsonschemema version to fix installed error
* Mon Nov 23 2020 Python_Bot <Python_Bot@openeuler.org> - 1.3.3-1
- Package Spec generated - Package Spec generated