From d30fadc157b86be46999ffbe3d4923463ce56b85 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 04:40:40 +0000 Subject: automatic import of python-oarepo-micro-api --- .gitignore | 1 + python-oarepo-micro-api.spec | 245 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 247 insertions(+) create mode 100644 python-oarepo-micro-api.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..8ba0488 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/oarepo-micro-api-3.5.67.tar.gz diff --git a/python-oarepo-micro-api.spec b/python-oarepo-micro-api.spec new file mode 100644 index 0000000..52b1fa8 --- /dev/null +++ b/python-oarepo-micro-api.spec @@ -0,0 +1,245 @@ +%global _empty_manifest_terminate_build 0 +Name: python-oarepo-micro-api +Version: 3.5.67 +Release: 1 +Summary: OARepo REST API microservice +License: MIT +URL: https://github.com/oarepo/oarepo-micro-api +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a4/e5/7e0d722577be48f7c14ffaf4b53a46dea3e81e5655238763e7d65e1653bb/oarepo-micro-api-3.5.67.tar.gz +BuildArch: noarch + +Requires: python3-oarepo +Requires: python3-oarepo-heartbeat +Requires: python3-importlib-metadata +Requires: python3-uwsgi +Requires: python3-uwsgi-tools +Requires: python3-uwsgitop +Requires: python3-wrapt +Requires: python3-webtest +Requires: python3-pytest-pycodestyle +Requires: python3-pipdeptree +Requires: python3-oarepo[tests] + +%description +# OARepo Micro API + +[![image](https://img.shields.io/travis/oarepo/oarepo-micro-api.svg)](https://travis-ci.org/oarepo/oarepo-micro-api) +[![image](https://img.shields.io/coveralls/oarepo/oarepo-micro-api.svg)](https://coveralls.io/r/oarepo/oarepo-micro-api) +[![image](https://img.shields.io/github/license/oarepo/oarepo-micro-api.svg)](https://github.com/oarepo/oarepo-micro-api/blob/master/LICENSE) + +OARepo REST API microservice module + +## Getting Started + +This package will provide a simple UWSGI microservice that will serve +all of the registered OArepo API apps in your repository instance under the `/api` endpoint. It also +provides some `/.well-known` endpoints that are usable for running in k8s environments. + +### Prerequisites + +- Python >=3.6 +- Docker + +### How to use + +Specify this package as a dependency in your OArepo repository project's `setup.py`. +If you're using `oarepo` as a base package for your repository, you should use the following extras: +```python +# setup.py +#... +install_requires = [ + 'oarepo[micro-api,...another-oarepo-extras]' +] +#... +``` +otherwise: +```python +# setup.py +#... +install_requires = [ + 'oarepo-micro-api' +] +#... +``` + +After that, reinstall your project by: +``` +pip install -e . +``` + +Start your repository instance and verify, that everything worked out, by running: +``` +curl -k https://localhost:5000/.well-known/heartbeat/readiness +``` + +## License + +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details + + +%package -n python3-oarepo-micro-api +Summary: OARepo REST API microservice +Provides: python-oarepo-micro-api +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-oarepo-micro-api +# OARepo Micro API + +[![image](https://img.shields.io/travis/oarepo/oarepo-micro-api.svg)](https://travis-ci.org/oarepo/oarepo-micro-api) +[![image](https://img.shields.io/coveralls/oarepo/oarepo-micro-api.svg)](https://coveralls.io/r/oarepo/oarepo-micro-api) +[![image](https://img.shields.io/github/license/oarepo/oarepo-micro-api.svg)](https://github.com/oarepo/oarepo-micro-api/blob/master/LICENSE) + +OARepo REST API microservice module + +## Getting Started + +This package will provide a simple UWSGI microservice that will serve +all of the registered OArepo API apps in your repository instance under the `/api` endpoint. It also +provides some `/.well-known` endpoints that are usable for running in k8s environments. + +### Prerequisites + +- Python >=3.6 +- Docker + +### How to use + +Specify this package as a dependency in your OArepo repository project's `setup.py`. +If you're using `oarepo` as a base package for your repository, you should use the following extras: +```python +# setup.py +#... +install_requires = [ + 'oarepo[micro-api,...another-oarepo-extras]' +] +#... +``` +otherwise: +```python +# setup.py +#... +install_requires = [ + 'oarepo-micro-api' +] +#... +``` + +After that, reinstall your project by: +``` +pip install -e . +``` + +Start your repository instance and verify, that everything worked out, by running: +``` +curl -k https://localhost:5000/.well-known/heartbeat/readiness +``` + +## License + +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details + + +%package help +Summary: Development documents and examples for oarepo-micro-api +Provides: python3-oarepo-micro-api-doc +%description help +# OARepo Micro API + +[![image](https://img.shields.io/travis/oarepo/oarepo-micro-api.svg)](https://travis-ci.org/oarepo/oarepo-micro-api) +[![image](https://img.shields.io/coveralls/oarepo/oarepo-micro-api.svg)](https://coveralls.io/r/oarepo/oarepo-micro-api) +[![image](https://img.shields.io/github/license/oarepo/oarepo-micro-api.svg)](https://github.com/oarepo/oarepo-micro-api/blob/master/LICENSE) + +OARepo REST API microservice module + +## Getting Started + +This package will provide a simple UWSGI microservice that will serve +all of the registered OArepo API apps in your repository instance under the `/api` endpoint. It also +provides some `/.well-known` endpoints that are usable for running in k8s environments. + +### Prerequisites + +- Python >=3.6 +- Docker + +### How to use + +Specify this package as a dependency in your OArepo repository project's `setup.py`. +If you're using `oarepo` as a base package for your repository, you should use the following extras: +```python +# setup.py +#... +install_requires = [ + 'oarepo[micro-api,...another-oarepo-extras]' +] +#... +``` +otherwise: +```python +# setup.py +#... +install_requires = [ + 'oarepo-micro-api' +] +#... +``` + +After that, reinstall your project by: +``` +pip install -e . +``` + +Start your repository instance and verify, that everything worked out, by running: +``` +curl -k https://localhost:5000/.well-known/heartbeat/readiness +``` + +## License + +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details + + +%prep +%autosetup -n oarepo-micro-api-3.5.67 + +%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-oarepo-micro-api -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot - 3.5.67-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..61af4a5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +a8449c81fdd10b64a2c6ed5169702b70 oarepo-micro-api-3.5.67.tar.gz -- cgit v1.2.3