diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-15 09:09:12 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 09:09:12 +0000 |
| commit | c6a6e3ee690ca94e91f5152bcbcbe8e7adab87f4 (patch) | |
| tree | ff3958fcb349c658198b528e633e900cb619b328 | |
| parent | 198827163f2e40b94707df0924049f5f68849389 (diff) | |
automatic import of python-firenado
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-firenado.spec | 385 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 387 insertions, 0 deletions
@@ -0,0 +1 @@ +/Firenado-0.2.17.tar.gz diff --git a/python-firenado.spec b/python-firenado.spec new file mode 100644 index 0000000..aefb76a --- /dev/null +++ b/python-firenado.spec @@ -0,0 +1,385 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Firenado +Version: 0.2.17 +Release: 1 +Summary: Firenado is a python web framework based on Tornado web framework/server. +License: Apache License V2.0 +URL: https://github.com/candango/firenado +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2a/70/79e99e3ea2a304b33856b540e6d3f68416e11f012edb5b36592d0710a47f/Firenado-0.2.17.tar.gz +BuildArch: noarch + +Requires: python3-cartola +Requires: python3-pymobiledetect +Requires: python3-tornado +Requires: python3-pexpect +Requires: python3-redis +Requires: python3-hiredis +Requires: python3-croniter +Requires: python3-sqlalchemy +Requires: python3-pexpect +Requires: python3-redis +Requires: python3-hiredis +Requires: python3-croniter +Requires: python3-sqlalchemy + +%description +# Firenado Framework + +[](https://pypi.org/project/firenado/) +[](https://pypi.org/project/firenado/#files) +[](https://actions-badge.atrox.dev/candango/firenado/goto) +[](https://github.com/candango/firenado/blob/develop/LICENSE) + +## Introduction + +Firenado is a Python web framework that encapsulates and extends +[Tornado](http://www.tornadoweb.org) organizing the application in +components also adding a server side session layer, yaml based configuration +files as other features common that will help developers building web +applications and services. + +Firenado is a web framework that extends the original Tornado Web framework +adding new features like loose couple components, server side session layer, +yaml based configuration files and more. + +## Installation + +Installing Firenado will only force the installation of pyyaml, Tornado and +six. We call it the basic installation: + +``` +pip install firenado +``` + +It is possible to install extra packages as redis-py, sqlalchemy and pexpect. + +To install only redis-py: + +``` +pip install firenado[redis] +``` + +Complete installation: + +``` +pip install firenado[pexpect, redis, sqlalchemy] +``` + +## Usage + +Creating and running a new application: + +```shell +firenado project init helloworld +cd helloworld +firenado app run +``` + +An application will be created with the redis based session engine +and a redis data source linked to the session. + +Firenado won't install redis-py so it is necessary to inform the extra +requirement parameter or install it separately. It is possible to change +the session to a file based engine or disable the session engine completely. + +In order to change the session type to file go to helloworld/conf/firenado.yml +and change the session definition to: + +```yaml +# Session types could be: +# file or redis. +session: + type: file + enabled: true + # Redis session handler configuration + #data: + # source: session + # File session handler related configuration + path: /tmp +``` + +If your helloworld project isn't located in the python path just go +helloworld/conf/firenado.yml and changed it to: + +```yaml +app: + component: helloworld + data: + sources: + # Set here references from sources defined on data.sources + - session + pythonpath: .. + port: 8888 +``` + +## Support + +Firenado is one of [Candango Open Source Group +](http://www.candango.org/projects/) initiatives. It is available under +the [Apache License, Version 2.0 +](http://www.apache.org/licenses/LICENSE-2.0.html). + +This web site and all documentation is licensed under [Creative +Commons 3.0](http://creativecommons.org/licenses/by/3.0/). + + + + +%package -n python3-Firenado +Summary: Firenado is a python web framework based on Tornado web framework/server. +Provides: python-Firenado +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Firenado +# Firenado Framework + +[](https://pypi.org/project/firenado/) +[](https://pypi.org/project/firenado/#files) +[](https://actions-badge.atrox.dev/candango/firenado/goto) +[](https://github.com/candango/firenado/blob/develop/LICENSE) + +## Introduction + +Firenado is a Python web framework that encapsulates and extends +[Tornado](http://www.tornadoweb.org) organizing the application in +components also adding a server side session layer, yaml based configuration +files as other features common that will help developers building web +applications and services. + +Firenado is a web framework that extends the original Tornado Web framework +adding new features like loose couple components, server side session layer, +yaml based configuration files and more. + +## Installation + +Installing Firenado will only force the installation of pyyaml, Tornado and +six. We call it the basic installation: + +``` +pip install firenado +``` + +It is possible to install extra packages as redis-py, sqlalchemy and pexpect. + +To install only redis-py: + +``` +pip install firenado[redis] +``` + +Complete installation: + +``` +pip install firenado[pexpect, redis, sqlalchemy] +``` + +## Usage + +Creating and running a new application: + +```shell +firenado project init helloworld +cd helloworld +firenado app run +``` + +An application will be created with the redis based session engine +and a redis data source linked to the session. + +Firenado won't install redis-py so it is necessary to inform the extra +requirement parameter or install it separately. It is possible to change +the session to a file based engine or disable the session engine completely. + +In order to change the session type to file go to helloworld/conf/firenado.yml +and change the session definition to: + +```yaml +# Session types could be: +# file or redis. +session: + type: file + enabled: true + # Redis session handler configuration + #data: + # source: session + # File session handler related configuration + path: /tmp +``` + +If your helloworld project isn't located in the python path just go +helloworld/conf/firenado.yml and changed it to: + +```yaml +app: + component: helloworld + data: + sources: + # Set here references from sources defined on data.sources + - session + pythonpath: .. + port: 8888 +``` + +## Support + +Firenado is one of [Candango Open Source Group +](http://www.candango.org/projects/) initiatives. It is available under +the [Apache License, Version 2.0 +](http://www.apache.org/licenses/LICENSE-2.0.html). + +This web site and all documentation is licensed under [Creative +Commons 3.0](http://creativecommons.org/licenses/by/3.0/). + + + + +%package help +Summary: Development documents and examples for Firenado +Provides: python3-Firenado-doc +%description help +# Firenado Framework + +[](https://pypi.org/project/firenado/) +[](https://pypi.org/project/firenado/#files) +[](https://actions-badge.atrox.dev/candango/firenado/goto) +[](https://github.com/candango/firenado/blob/develop/LICENSE) + +## Introduction + +Firenado is a Python web framework that encapsulates and extends +[Tornado](http://www.tornadoweb.org) organizing the application in +components also adding a server side session layer, yaml based configuration +files as other features common that will help developers building web +applications and services. + +Firenado is a web framework that extends the original Tornado Web framework +adding new features like loose couple components, server side session layer, +yaml based configuration files and more. + +## Installation + +Installing Firenado will only force the installation of pyyaml, Tornado and +six. We call it the basic installation: + +``` +pip install firenado +``` + +It is possible to install extra packages as redis-py, sqlalchemy and pexpect. + +To install only redis-py: + +``` +pip install firenado[redis] +``` + +Complete installation: + +``` +pip install firenado[pexpect, redis, sqlalchemy] +``` + +## Usage + +Creating and running a new application: + +```shell +firenado project init helloworld +cd helloworld +firenado app run +``` + +An application will be created with the redis based session engine +and a redis data source linked to the session. + +Firenado won't install redis-py so it is necessary to inform the extra +requirement parameter or install it separately. It is possible to change +the session to a file based engine or disable the session engine completely. + +In order to change the session type to file go to helloworld/conf/firenado.yml +and change the session definition to: + +```yaml +# Session types could be: +# file or redis. +session: + type: file + enabled: true + # Redis session handler configuration + #data: + # source: session + # File session handler related configuration + path: /tmp +``` + +If your helloworld project isn't located in the python path just go +helloworld/conf/firenado.yml and changed it to: + +```yaml +app: + component: helloworld + data: + sources: + # Set here references from sources defined on data.sources + - session + pythonpath: .. + port: 8888 +``` + +## Support + +Firenado is one of [Candango Open Source Group +](http://www.candango.org/projects/) initiatives. It is available under +the [Apache License, Version 2.0 +](http://www.apache.org/licenses/LICENSE-2.0.html). + +This web site and all documentation is licensed under [Creative +Commons 3.0](http://creativecommons.org/licenses/by/3.0/). + + + + +%prep +%autosetup -n Firenado-0.2.17 + +%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-Firenado -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.17-1 +- Package Spec generated @@ -0,0 +1 @@ +444fdcd7e3d4b1d8b9c03cc711e02cb1 Firenado-0.2.17.tar.gz |
