/
setup.py
95 lines (84 loc) · 2.33 KB
/
setup.py
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
from nawah import __version__
from distutils.command.install import install
import setuptools
class version(install):
def run(self):
print(__version__)
class api_level(install):
def run(self):
print('.'.join(__version__.split('.')[:2]))
with open('README.md', 'r') as f:
long_description = f.read()
with open('./requirements.txt', 'r') as f:
requirements = f.readlines()
with open('./dev_requirements.txt', 'r') as f:
dev_requirements = f.readlines()
setuptools.setup(
name='nawah',
version=__version__,
author='Mahmoud Abduljawad',
author_email='mahmoud@masaar.com',
description='Nawah framework--Rapid app development framework',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/nawah-io/nawah_framework',
package_data={
'nawah': ['py.typed'],
'nawah.cli': ['template.tar.gz', 'py.typed'],
'nawah.base_method': ['py.typed'],
'nawah.base_module': ['py.typed'],
'nawah.classes': ['py.typed'],
'nawah.config': ['py.typed'],
'nawah.data': ['py.typed'],
'nawah.enums': ['py.typed'],
'nawah.gateway': ['py.typed'],
'nawah.registry': ['py.typed'],
'nawah.testing': ['py.typed'],
'nawah.utils': ['py.typed'],
'nawah.packages': ['py.typed'],
'nawah.packages.core': ['py.typed'],
},
packages=[
'nawah',
'nawah.cli',
'nawah.base_method',
'nawah.base_module',
'nawah.classes',
'nawah.config',
'nawah.data',
'nawah.enums',
'nawah.gateway',
'nawah.registry',
'nawah.testing',
'nawah.utils',
'nawah.packages',
'nawah.packages.core',
],
project_urls={
'Docs: Github': 'https://github.com/nawah-io/nawah_docs',
'GitHub: issues': 'https://github.com/nawah-io/nawah_framework/issues',
'GitHub: repo': 'https://github.com/nawah-io/nawah_framework',
},
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP',
'Framework :: AsyncIO',
],
python_requires='>=3.8',
install_requires=requirements,
extras_require={'dev': dev_requirements},
cmdclass={
'version': version,
'api_level': api_level,
},
entry_points={
'console_scripts': {
'nawah = nawah.__main__:main',
}
},
zip_safe=False,
)