-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
120 lines (107 loc) · 3.36 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
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
# -*- coding: utf-8 -*-
"""
pyrin setup module.
"""
import io
import re
from setuptools import find_namespace_packages, setup
with io.open('README.md', 'rt', encoding='utf8') as readme_file:
README = readme_file.read()
with io.open('src/pyrin/__init__.py', 'rt', encoding='utf8') as version_file:
VERSION = re.search(r"__version__ = '(.*?)'", version_file.read()).group(1)
PACKAGES = [
'aniso8601==9.0.1',
'bcrypt==3.2.0',
'pytz==2023.3',
'Flask==2.0.2',
'PyJWT==2.2.0',
'SQLAlchemy==1.4.20',
'colorama==0.4.4',
'python-dotenv==0.18.0',
'cryptography==3.4.7',
'flask-babel==2.0.0',
'babel==2.9.1',
'alembic==1.6.5',
'fire==0.4.0',
'sqlparse==0.4.2',
'titlecase==2.3',
'flasgger==0.9.5',
]
TEST_PACKAGES = PACKAGES [
'pytest==6.2.4',
'pytest-cov==2.12.1',
'pygments==2.9.0',
]
DOC_PACKAGES = [
'sphinx',
'sphinxcontrib-log-cabinet',
'sphinx-issues',
]
MEMCACHED_PACKAGES = [
'pymemcache==3.4.4',
]
SENTRY_PACKAGES = [
'sentry-sdk==1.1.0',
'blinker==1.4',
]
CELERY_PACKAGES = [
'celery==5.1.2',
]
REDIS_PACKAGES = [
'redis==3.5.3',
]
setup(
name='pyrin',
version=VERSION,
url='https://github.com/mononobi/pyrin',
project_urls={
# 'Documentation': '',
'Code': 'https://github.com/mononobi/pyrin',
'Issue tracker': 'https://github.com/mononobi/pyrin/issues',
},
license='BSD-3-Clause',
author='mono',
author_email='[email protected]',
maintainer='mono',
maintainer_email='[email protected]',
description='A rich, fast, performant and easy to use application '
'framework to build apps using Flask on top of it.',
long_description=README,
long_description_content_type='text/markdown',
keywords=('flask python sqlalchemy pyrin core alembic multi-database swagger-ui'
'application-framework rest-api dependency-injection ioc admin-panel'),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Flask',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=find_namespace_packages('src', exclude=('tests', 'tests.*')),
package_dir={'': 'src'},
package_data={'': ['*']},
include_package_data=True,
python_requires='>=3.6',
install_requires=PACKAGES,
extras_require={
'tests': TEST_PACKAGES,
'docs': DOC_PACKAGES,
'memcached': MEMCACHED_PACKAGES,
'sentry': SENTRY_PACKAGES,
'celery': CELERY_PACKAGES,
'redis': REDIS_PACKAGES,
},
entry_points={'console_scripts': ['pyrin = pyrin.cli.core.command:main']},
)