From fe693498fffd52e9da104759d10686c8716c3f04 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 03:25:28 +0000 Subject: automatic import of python-agave --- python-agave.spec | 182 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 python-agave.spec (limited to 'python-agave.spec') 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 - 0.2.1-1 +- Package Spec generated -- cgit v1.2.3