summaryrefslogtreecommitdiff
path: root/python-nawah.spec
blob: f888f6797630692c9979f63ef1650b7b8adb3b1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
%global _empty_manifest_terminate_build 0
Name:		python-nawah
Version:	2.0.0b37
Release:	1
Summary:	Nawah framework--Rapid app development framework
License:	GNU Affero General Public License v3 or later (AGPLv3+)
URL:		https://github.com/nawah-io/nawah_framework
Source0:	https://mirrors.aliyun.com/pypi/web/packages/8d/c1/0177336501282bfe3afeeefec0bc61bd6152c7b6c0bbd01b17c07039bdd6/nawah-2.0.0b37.tar.gz
BuildArch:	noarch

Requires:	python3-aiohttp
Requires:	python3-aiodns
Requires:	python3-motor
Requires:	python3-passlib
Requires:	python3-Pillow
Requires:	python3-PyJWT
Requires:	python3-pymongo
Requires:	python3-requests
Requires:	python3-requests-toolbelt
Requires:	python3-hiredis
Requires:	python3-redis
Requires:	python3-sentry-sdk
Requires:	python3-click
Requires:	python3-mock
Requires:	python3-codecov
Requires:	python3-mypy
Requires:	python3-black
Requires:	python3-pylint
Requires:	python3-pytest
Requires:	python3-pytest-asyncio
Requires:	python3-pytest-mock
Requires:	python3-pytest-cov
Requires:	python3-lsp-server
Requires:	python3-pylsp-mypy
Requires:	python3-lsp-black
Requires:	python3-setuptools
Requires:	python3-wheel
Requires:	python3-twine
Requires:	python3-types-redis
Requires:	python3-types-requests
Requires:	python3-types-mock

%description
![Codecov](https://codecov.io/gh/nawah-io/nawah_framework/graphs/badge.svg)

# Nawah Framework
Nawah is a framework that is designed for rapid app development. It uses `HTTP/2 Websocket` as primary protocol of communication with clients. However, it also provides an `HTTP/1 GET`, `POST` interfaces for additional communication windows.

# Features
## Modern
Nawah is based on modern approaches of apps development. It enables both backend developers and front-end developers with set of tools to achieve better and more from very simple and powerful set of tools.

## Type Driven
Nawah has sophisticated workflow to handle types. It has the tools to convert types when needed. And, it has the process to reject wrong data types. This gives developers huge relieve and peace of mind when developing complicated apps that require type accuracy.

## Advanced Users, Sessions and Privileges Control Out-of-the-Box
Apps development platforms and frameworks provide users and privileges control in various forms and levels. What makes Nawah approach unique and developer-friendly is the fact user-management has endless aspects, with the ability to extend it to your needs without a single edit on the original structure of Nawah. This means your app can always keep up-to-date with Nawah upstream, without compromising on your requirements for advanced user management options. All using simple tools that are available to all.

## Multi-Environment Ready
Nawah gives the developers the ability to get started with single app that is having the ability to run the exact same app on different [environments](https://github.com/nawah-io/nawah_docs/blob/master/api-package.md#envs) without any custom configurations.

## Test-Driven Development Out-of-the-Box
That's correct! You can now develop your app and [test](https://github.com/nawah-io/nawah_docs/blob/master/tests.md) it with minimal set of instructions in under 5 minutes.

## Easy to Install, Upgrade and deploy
Nawah has simple workflow to [set it up](https://github.com/nawah-io/nawah_docs/blob/master/quick-start.md). Upgrading it is also as simple as pulling latest version of Nawah from this repository, as well as the latest version of the packages your app uses for its functionalities. Deploying is as a simple as creating a [Docker](https://www.docker.com) image using the provided `Dockerfile`.

## Multi-language and Localisation-ready
Yes! No more dealing with custom handlers for multi-language apps. Your app is multi-language out-of-the-box. Not only this, but your app can keep adding locales and change them along the way. This is a paradise for developers working on global scale apps.

## Cache-able Responses
Nawah Cache Workflow gives developers the power to cache queries without having a hassle. Simple instructions, and condition checkers and developers get apps with dynamic cache feature.

## The Cron we All Like!
Nawah has Cron-like Jobs Workflow that allows developers to run background tasks using Cron timing expression. The jobs can be Nawah calls, or simple Python function that can be run for any purpose.

## Analytics that just Work
Nawah offers module-level Analytics Workflow that allow you developers to insert sample instructions which generate `Analytic` docs which can be later used programmatically by other modules, or for handy data researches.

# Docs Index
> Nawah docs are available at [https://github.com/nawah-io/nawah_docs](https://github.com/nawah-io/nawah_docs).


%package -n python3-nawah
Summary:	Nawah framework--Rapid app development framework
Provides:	python-nawah
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pip
%description -n python3-nawah
![Codecov](https://codecov.io/gh/nawah-io/nawah_framework/graphs/badge.svg)

# Nawah Framework
Nawah is a framework that is designed for rapid app development. It uses `HTTP/2 Websocket` as primary protocol of communication with clients. However, it also provides an `HTTP/1 GET`, `POST` interfaces for additional communication windows.

# Features
## Modern
Nawah is based on modern approaches of apps development. It enables both backend developers and front-end developers with set of tools to achieve better and more from very simple and powerful set of tools.

## Type Driven
Nawah has sophisticated workflow to handle types. It has the tools to convert types when needed. And, it has the process to reject wrong data types. This gives developers huge relieve and peace of mind when developing complicated apps that require type accuracy.

## Advanced Users, Sessions and Privileges Control Out-of-the-Box
Apps development platforms and frameworks provide users and privileges control in various forms and levels. What makes Nawah approach unique and developer-friendly is the fact user-management has endless aspects, with the ability to extend it to your needs without a single edit on the original structure of Nawah. This means your app can always keep up-to-date with Nawah upstream, without compromising on your requirements for advanced user management options. All using simple tools that are available to all.

## Multi-Environment Ready
Nawah gives the developers the ability to get started with single app that is having the ability to run the exact same app on different [environments](https://github.com/nawah-io/nawah_docs/blob/master/api-package.md#envs) without any custom configurations.

## Test-Driven Development Out-of-the-Box
That's correct! You can now develop your app and [test](https://github.com/nawah-io/nawah_docs/blob/master/tests.md) it with minimal set of instructions in under 5 minutes.

## Easy to Install, Upgrade and deploy
Nawah has simple workflow to [set it up](https://github.com/nawah-io/nawah_docs/blob/master/quick-start.md). Upgrading it is also as simple as pulling latest version of Nawah from this repository, as well as the latest version of the packages your app uses for its functionalities. Deploying is as a simple as creating a [Docker](https://www.docker.com) image using the provided `Dockerfile`.

## Multi-language and Localisation-ready
Yes! No more dealing with custom handlers for multi-language apps. Your app is multi-language out-of-the-box. Not only this, but your app can keep adding locales and change them along the way. This is a paradise for developers working on global scale apps.

## Cache-able Responses
Nawah Cache Workflow gives developers the power to cache queries without having a hassle. Simple instructions, and condition checkers and developers get apps with dynamic cache feature.

## The Cron we All Like!
Nawah has Cron-like Jobs Workflow that allows developers to run background tasks using Cron timing expression. The jobs can be Nawah calls, or simple Python function that can be run for any purpose.

## Analytics that just Work
Nawah offers module-level Analytics Workflow that allow you developers to insert sample instructions which generate `Analytic` docs which can be later used programmatically by other modules, or for handy data researches.

# Docs Index
> Nawah docs are available at [https://github.com/nawah-io/nawah_docs](https://github.com/nawah-io/nawah_docs).


%package help
Summary:	Development documents and examples for nawah
Provides:	python3-nawah-doc
%description help
![Codecov](https://codecov.io/gh/nawah-io/nawah_framework/graphs/badge.svg)

# Nawah Framework
Nawah is a framework that is designed for rapid app development. It uses `HTTP/2 Websocket` as primary protocol of communication with clients. However, it also provides an `HTTP/1 GET`, `POST` interfaces for additional communication windows.

# Features
## Modern
Nawah is based on modern approaches of apps development. It enables both backend developers and front-end developers with set of tools to achieve better and more from very simple and powerful set of tools.

## Type Driven
Nawah has sophisticated workflow to handle types. It has the tools to convert types when needed. And, it has the process to reject wrong data types. This gives developers huge relieve and peace of mind when developing complicated apps that require type accuracy.

## Advanced Users, Sessions and Privileges Control Out-of-the-Box
Apps development platforms and frameworks provide users and privileges control in various forms and levels. What makes Nawah approach unique and developer-friendly is the fact user-management has endless aspects, with the ability to extend it to your needs without a single edit on the original structure of Nawah. This means your app can always keep up-to-date with Nawah upstream, without compromising on your requirements for advanced user management options. All using simple tools that are available to all.

## Multi-Environment Ready
Nawah gives the developers the ability to get started with single app that is having the ability to run the exact same app on different [environments](https://github.com/nawah-io/nawah_docs/blob/master/api-package.md#envs) without any custom configurations.

## Test-Driven Development Out-of-the-Box
That's correct! You can now develop your app and [test](https://github.com/nawah-io/nawah_docs/blob/master/tests.md) it with minimal set of instructions in under 5 minutes.

## Easy to Install, Upgrade and deploy
Nawah has simple workflow to [set it up](https://github.com/nawah-io/nawah_docs/blob/master/quick-start.md). Upgrading it is also as simple as pulling latest version of Nawah from this repository, as well as the latest version of the packages your app uses for its functionalities. Deploying is as a simple as creating a [Docker](https://www.docker.com) image using the provided `Dockerfile`.

## Multi-language and Localisation-ready
Yes! No more dealing with custom handlers for multi-language apps. Your app is multi-language out-of-the-box. Not only this, but your app can keep adding locales and change them along the way. This is a paradise for developers working on global scale apps.

## Cache-able Responses
Nawah Cache Workflow gives developers the power to cache queries without having a hassle. Simple instructions, and condition checkers and developers get apps with dynamic cache feature.

## The Cron we All Like!
Nawah has Cron-like Jobs Workflow that allows developers to run background tasks using Cron timing expression. The jobs can be Nawah calls, or simple Python function that can be run for any purpose.

## Analytics that just Work
Nawah offers module-level Analytics Workflow that allow you developers to insert sample instructions which generate `Analytic` docs which can be later used programmatically by other modules, or for handy data researches.

# Docs Index
> Nawah docs are available at [https://github.com/nawah-io/nawah_docs](https://github.com/nawah-io/nawah_docs).


%prep
%autosetup -n nawah-2.0.0b37

%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-nawah -f filelist.lst
%dir %{python3_sitelib}/*

%files help -f doclist.lst
%{_docdir}/*

%changelog
* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.0b37-1
- Package Spec generated