summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 03:25:28 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 03:25:28 +0000
commitfe693498fffd52e9da104759d10686c8716c3f04 (patch)
tree5917a5197f0cee9e069842dfffb28d9fa14128d7
parent27594c60577daecd52c57ffe68e55de92491c189 (diff)
automatic import of python-agaveopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-agave.spec182
-rw-r--r--sources1
3 files changed, 184 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..fdba917 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/agave-0.2.1.tar.gz
diff --git a/python-agave.spec b/python-agave.spec
new file mode 100644
index 0000000..af7dfde
--- /dev/null
+++ b/python-agave.spec
@@ -0,0 +1,182 @@
+%global _empty_manifest_terminate_build 0
+Name: python-agave
+Version: 0.2.1
+Release: 1
+Summary: Rest_api
+License: MIT License
+URL: https://github.com/cuenca-mx/agave
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0a/93/3d8e10f1c49e7fa6e9ae00cc93f2973539b7038ab3edb759a104ace32e15/agave-0.2.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-chalice
+Requires: python3-cuenca-validations
+Requires: python3-blinker
+Requires: python3-mongoengine
+Requires: python3-dnspython
+
+%description
+# agave
+[![test](https://github.com/cuenca-mx/agave/workflows/test/badge.svg)](https://github.com/cuenca-mx/agave/actions?query=workflow%3Atest)
+[![codecov](https://codecov.io/gh/cuenca-mx/agave/branch/main/graph/badge.svg)](https://codecov.io/gh/cuenca-mx/agave)
+[![PyPI](https://img.shields.io/pypi/v/agave.svg)](https://pypi.org/project/agave/)
+
+Agave is a library that implement rest_api across the use of Blueprints based on Chalice Aws.
+
+this library allow send and receive JSON data to these endpoints to query, modify and create content.
+
+Install agave using pip:
+
+```bash
+pip install agave==0.0.2.dev0
+```
+
+You can use agave for blueprint like this:
+```python
+
+from agave.blueprints.rest_api import RestApiBlueprint
+
+```
+
+agave include helpers for mongoengine, for example:
+```python
+
+from agave.models.helpers import (uuid_field, mongo_to_dict, EnumField, updated_at, list_field_to_dict)
+
+```
+
+Correr tests
+```bash
+make test
+```
+
+
+
+
+%package -n python3-agave
+Summary: Rest_api
+Provides: python-agave
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-agave
+# agave
+[![test](https://github.com/cuenca-mx/agave/workflows/test/badge.svg)](https://github.com/cuenca-mx/agave/actions?query=workflow%3Atest)
+[![codecov](https://codecov.io/gh/cuenca-mx/agave/branch/main/graph/badge.svg)](https://codecov.io/gh/cuenca-mx/agave)
+[![PyPI](https://img.shields.io/pypi/v/agave.svg)](https://pypi.org/project/agave/)
+
+Agave is a library that implement rest_api across the use of Blueprints based on Chalice Aws.
+
+this library allow send and receive JSON data to these endpoints to query, modify and create content.
+
+Install agave using pip:
+
+```bash
+pip install agave==0.0.2.dev0
+```
+
+You can use agave for blueprint like this:
+```python
+
+from agave.blueprints.rest_api import RestApiBlueprint
+
+```
+
+agave include helpers for mongoengine, for example:
+```python
+
+from agave.models.helpers import (uuid_field, mongo_to_dict, EnumField, updated_at, list_field_to_dict)
+
+```
+
+Correr tests
+```bash
+make test
+```
+
+
+
+
+%package help
+Summary: Development documents and examples for agave
+Provides: python3-agave-doc
+%description help
+# agave
+[![test](https://github.com/cuenca-mx/agave/workflows/test/badge.svg)](https://github.com/cuenca-mx/agave/actions?query=workflow%3Atest)
+[![codecov](https://codecov.io/gh/cuenca-mx/agave/branch/main/graph/badge.svg)](https://codecov.io/gh/cuenca-mx/agave)
+[![PyPI](https://img.shields.io/pypi/v/agave.svg)](https://pypi.org/project/agave/)
+
+Agave is a library that implement rest_api across the use of Blueprints based on Chalice Aws.
+
+this library allow send and receive JSON data to these endpoints to query, modify and create content.
+
+Install agave using pip:
+
+```bash
+pip install agave==0.0.2.dev0
+```
+
+You can use agave for blueprint like this:
+```python
+
+from agave.blueprints.rest_api import RestApiBlueprint
+
+```
+
+agave include helpers for mongoengine, for example:
+```python
+
+from agave.models.helpers import (uuid_field, mongo_to_dict, EnumField, updated_at, list_field_to_dict)
+
+```
+
+Correr tests
+```bash
+make test
+```
+
+
+
+
+%prep
+%autosetup -n agave-0.2.1
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-agave -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..83e36cb
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+505835d3b29b40b20b59184272aaa35c agave-0.2.1.tar.gz