!10 同步代码到 openEuler-22.03-LTS-Next 分支
From: @algorithmofdish Reviewed-by: @dowzyx Signed-off-by: @dowzyx
This commit is contained in:
commit
3b96a59cfb
25
0001-remove-unused-install-require.patch
Normal file
25
0001-remove-unused-install-require.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From af93b7114fff07474cff9958830d6bbcb55fae26 Mon Sep 17 00:00:00 2001
|
||||||
|
From: algorithmofdish <hexiujun1@huawei.com>
|
||||||
|
Date: Tue, 2 Aug 2022 20:04:09 +0800
|
||||||
|
Subject: [PATCH] remove unused install require
|
||||||
|
|
||||||
|
---
|
||||||
|
setup.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index d885f69..d2d2012 100644
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -44,7 +44,7 @@ setup(
|
||||||
|
'Programming Language :: Python :: 3',
|
||||||
|
],
|
||||||
|
|
||||||
|
- install_requires=['requests>=2.7.0', 'future', 'datetime'],
|
||||||
|
+ install_requires=['requests>=2.7.0', 'future'],
|
||||||
|
|
||||||
|
keywords='database ORM nosql arangodb driver validation',
|
||||||
|
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
BIN
pyArango-2.0.1.tar.gz
Normal file
BIN
pyArango-2.0.1.tar.gz
Normal file
Binary file not shown.
64
pyArango.spec
Normal file
64
pyArango.spec
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
%define debug_package %{nil}
|
||||||
|
|
||||||
|
Name: pyarango
|
||||||
|
Version: 2.0.1
|
||||||
|
Release: 2
|
||||||
|
Summary: Python Driver for ArangoDB with built-in validation
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: https://github.com/ArangoDB-Community/pyArango
|
||||||
|
Source0: https://files.pythonhosted.org/packages/9f/0e/e1b22ae0020ab9da9d481b42c426beac204ab79e8628267d135f16e09ad0/pyArango-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
Patch0001: 0001-remove-unused-install-require.patch
|
||||||
|
|
||||||
|
BuildRequires: python3-setuptools python3-devel
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
pyArango aims to be an easy to use driver for ArangoDB with built in validation.
|
||||||
|
Collections are treated as types that apply to the documents within.
|
||||||
|
You can be 100% permissive or enforce schemas and validate fields on set, on save or on both.
|
||||||
|
|
||||||
|
pyArango supports graphs, indexes and probably everything that arangodb can do.
|
||||||
|
|
||||||
|
|
||||||
|
%package -n python3-pyarango
|
||||||
|
Summary: %{summary}
|
||||||
|
Requires: python3-future
|
||||||
|
Requires: python3-requests >= 2.7.0
|
||||||
|
Provides: python3-arango = %{version}-%{release}
|
||||||
|
%{?python_provide:%python_provide python3-pyarango}
|
||||||
|
Provides: python3-pyArango = %{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
|
%description -n python3-pyarango
|
||||||
|
pyArango aims to be an easy to use driver for ArangoDB with built in validation.
|
||||||
|
Collections are treated as types that apply to the documents within.
|
||||||
|
You can be 100% permissive or enforce schemas and validate fields on set, on save or on both.
|
||||||
|
|
||||||
|
pyArango supports graphs, indexes and probably everything that arangodb can do.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n pyArango-%{version} -p1
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py3_install
|
||||||
|
|
||||||
|
|
||||||
|
%files -n python3-pyarango
|
||||||
|
%{python3_sitelib}/*
|
||||||
|
%exclude %{_bindir}/sample
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Aug 2 2022 algorithmofdish <hexiujun1@huawei.com> - 2.0.1-2
|
||||||
|
- add build require:python3-devel to provide pythonXdist
|
||||||
|
|
||||||
|
* Thu Jul 28 2022 algorithmofdish <hexiujun1@huawei.com> - 2.0.1-1
|
||||||
|
- Package init
|
||||||
4
pyArango.yaml
Normal file
4
pyArango.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: pypi
|
||||||
|
src_repo: pyArango
|
||||||
|
tag_prefix: ""
|
||||||
|
separator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user