diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 04:40:40 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 04:40:40 +0000 |
| commit | d30fadc157b86be46999ffbe3d4923463ce56b85 (patch) | |
| tree | e585ed5f62cdc556c0e8dd5448ae9b64c48f5f82 | |
| parent | db1efeb975c5ae49ff4312db29637608aae31ad6 (diff) | |
automatic import of python-oarepo-micro-apiopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-oarepo-micro-api.spec | 245 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 247 insertions, 0 deletions
@@ -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 + +[](https://travis-ci.org/oarepo/oarepo-micro-api) +[](https://coveralls.io/r/oarepo/oarepo-micro-api) +[](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 + +[](https://travis-ci.org/oarepo/oarepo-micro-api) +[](https://coveralls.io/r/oarepo/oarepo-micro-api) +[](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 + +[](https://travis-ci.org/oarepo/oarepo-micro-api) +[](https://coveralls.io/r/oarepo/oarepo-micro-api) +[](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 <Python_Bot@openeuler.org> - 3.5.67-1 +- Package Spec generated @@ -0,0 +1 @@ +a8449c81fdd10b64a2c6ed5169702b70 oarepo-micro-api-3.5.67.tar.gz |
