summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-bamboo-core.spec249
-rw-r--r--sources1
3 files changed, 251 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..457f363 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/bamboo-core-0.10.5.tar.gz
diff --git a/python-bamboo-core.spec b/python-bamboo-core.spec
new file mode 100644
index 0000000..9eb6c15
--- /dev/null
+++ b/python-bamboo-core.spec
@@ -0,0 +1,249 @@
+%global _empty_manifest_terminate_build 0
+Name: python-bamboo-core
+Version: 0.10.5
+Release: 1
+Summary: General purpose server framework in Python
+License: MIT
+URL: https://jjj999.github.io/bamboo
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ed/37/bc4768b7aaf62b583e8063c054590ad6038dd346ee7bf5196efc5f631f9d/bamboo-core-0.10.5.tar.gz
+BuildArch: noarch
+
+
+%description
+# bamboo
+
+[![bamboo](https://github.com/jjj999/bamboo/blob/main/docs/res/bamboo.png?raw=true)](https://jjj999.github.io/bamboo/)
+[![PyPI version](https://badge.fury.io/py/bamboo-core.svg)](http://badge.fury.io/py/bamboo-core)
+[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://pypi.python.org/pypi/bamboo-core/)
+[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://jjj999.github.io/bamboo)
+
+## Supported Interfaces
+
+- WSGI
+- ASGI v3.0 (HTTP, WebSocket and Lifespan)
+
+## Installing
+
+* Python: >= 3.7
+
+```
+python -m pip install bamboo-core
+```
+
+## [Usage](https://jjj999.github.io/bamboo/tutorials/concept/)
+
+以下は簡単な実装例です.
+
+```python
+from bamboo import WSGIApp, WSGIEndpoint, WSGITestExecutor
+
+app = WSGIApp()
+
+@app.route("hello")
+class MockEndpoint(WSGIEndpoint):
+
+ def do_GET(self) -> None:
+ self.send_body(b"Hello, World!")
+
+if __name__ == "__main__":
+ WSGITestExecutor.debug(app)
+```
+
+上記スクリプトを実行後,ブラウザで http://localhost:8000/hello にアクセスするとレスポンスを確認できます.
+
+## API documentation
+
+API ドキュメントは[こちら](https://jjj999.github.io/bamboo/api/bamboo/pkg/).
+
+## Examples
+
+### [upsidedown](https://github.com/jjj999/bamboo/tree/main/examples/upsidedown)
+
+リクエストされた文字列を逆順に反転させて返すアプリケーションです.
+
+### [image_traffic](https://github.com/jjj999/bamboo/tree/main/examples/image_traffic)
+
+アクセスに対して静的な画像を返すアプリケーションです.
+
+### [tweets](https://github.com/jjj999/bamboo/tree/main/examples/tweets)
+
+CLI ベースの簡易的な Twitter のような投稿アプリです.認証機能は実装されていません.
+
+
+
+%package -n python3-bamboo-core
+Summary: General purpose server framework in Python
+Provides: python-bamboo-core
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-bamboo-core
+# bamboo
+
+[![bamboo](https://github.com/jjj999/bamboo/blob/main/docs/res/bamboo.png?raw=true)](https://jjj999.github.io/bamboo/)
+[![PyPI version](https://badge.fury.io/py/bamboo-core.svg)](http://badge.fury.io/py/bamboo-core)
+[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://pypi.python.org/pypi/bamboo-core/)
+[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://jjj999.github.io/bamboo)
+
+## Supported Interfaces
+
+- WSGI
+- ASGI v3.0 (HTTP, WebSocket and Lifespan)
+
+## Installing
+
+* Python: >= 3.7
+
+```
+python -m pip install bamboo-core
+```
+
+## [Usage](https://jjj999.github.io/bamboo/tutorials/concept/)
+
+以下は簡単な実装例です.
+
+```python
+from bamboo import WSGIApp, WSGIEndpoint, WSGITestExecutor
+
+app = WSGIApp()
+
+@app.route("hello")
+class MockEndpoint(WSGIEndpoint):
+
+ def do_GET(self) -> None:
+ self.send_body(b"Hello, World!")
+
+if __name__ == "__main__":
+ WSGITestExecutor.debug(app)
+```
+
+上記スクリプトを実行後,ブラウザで http://localhost:8000/hello にアクセスするとレスポンスを確認できます.
+
+## API documentation
+
+API ドキュメントは[こちら](https://jjj999.github.io/bamboo/api/bamboo/pkg/).
+
+## Examples
+
+### [upsidedown](https://github.com/jjj999/bamboo/tree/main/examples/upsidedown)
+
+リクエストされた文字列を逆順に反転させて返すアプリケーションです.
+
+### [image_traffic](https://github.com/jjj999/bamboo/tree/main/examples/image_traffic)
+
+アクセスに対して静的な画像を返すアプリケーションです.
+
+### [tweets](https://github.com/jjj999/bamboo/tree/main/examples/tweets)
+
+CLI ベースの簡易的な Twitter のような投稿アプリです.認証機能は実装されていません.
+
+
+
+%package help
+Summary: Development documents and examples for bamboo-core
+Provides: python3-bamboo-core-doc
+%description help
+# bamboo
+
+[![bamboo](https://github.com/jjj999/bamboo/blob/main/docs/res/bamboo.png?raw=true)](https://jjj999.github.io/bamboo/)
+[![PyPI version](https://badge.fury.io/py/bamboo-core.svg)](http://badge.fury.io/py/bamboo-core)
+[![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://pypi.python.org/pypi/bamboo-core/)
+[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://jjj999.github.io/bamboo)
+
+## Supported Interfaces
+
+- WSGI
+- ASGI v3.0 (HTTP, WebSocket and Lifespan)
+
+## Installing
+
+* Python: >= 3.7
+
+```
+python -m pip install bamboo-core
+```
+
+## [Usage](https://jjj999.github.io/bamboo/tutorials/concept/)
+
+以下は簡単な実装例です.
+
+```python
+from bamboo import WSGIApp, WSGIEndpoint, WSGITestExecutor
+
+app = WSGIApp()
+
+@app.route("hello")
+class MockEndpoint(WSGIEndpoint):
+
+ def do_GET(self) -> None:
+ self.send_body(b"Hello, World!")
+
+if __name__ == "__main__":
+ WSGITestExecutor.debug(app)
+```
+
+上記スクリプトを実行後,ブラウザで http://localhost:8000/hello にアクセスするとレスポンスを確認できます.
+
+## API documentation
+
+API ドキュメントは[こちら](https://jjj999.github.io/bamboo/api/bamboo/pkg/).
+
+## Examples
+
+### [upsidedown](https://github.com/jjj999/bamboo/tree/main/examples/upsidedown)
+
+リクエストされた文字列を逆順に反転させて返すアプリケーションです.
+
+### [image_traffic](https://github.com/jjj999/bamboo/tree/main/examples/image_traffic)
+
+アクセスに対して静的な画像を返すアプリケーションです.
+
+### [tweets](https://github.com/jjj999/bamboo/tree/main/examples/tweets)
+
+CLI ベースの簡易的な Twitter のような投稿アプリです.認証機能は実装されていません.
+
+
+
+%prep
+%autosetup -n bamboo-core-0.10.5
+
+%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-bamboo-core -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.10.5-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..ef146ae
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+65ba4c4d5fc59fc00a5799ea95396d80 bamboo-core-0.10.5.tar.gz