-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
91 lines (86 loc) · 2.85 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
from os import path
from setuptools import setup, find_packages
here = path.abspath(path.dirname(__file__))
about = {}
with open(path.join(here, 'py_abac', 'version.py'), mode='r', encoding='utf-8') as f:
exec(f.read(), about)
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
extra_requires_mongo = [
'pymongo~=3.5'
]
extra_requires_sql = [
'SQLAlchemy~=1.3'
]
extra_requires_redis = [
'redis~=3.5'
]
extra_requires_doc = [
'sphinx==2.4.1',
'sphinx-rtd-theme~=0.4'
]
extra_requires_file = [
'dotty-dict==1.2.1',
'flatten-dict==0.3.0'
]
extra_requires_utils = [
'pytest~=4.6',
'pytest-cov~=2.6',
'pylint~=1.0',
'bandit~=1.6',
'PyMySQL~=0.9',
'psycopg2cffi~=2.8'
]
extra_requires_dev = extra_requires_utils + \
extra_requires_mongo + \
extra_requires_sql + \
extra_requires_redis + \
extra_requires_file + \
extra_requires_doc
if __name__ == '__main__':
setup(
name='py_abac',
description='Attribute-based access control (ABAC)',
keywords='ACL ABAC access-control policy security authorization permission',
version=about['__version__'],
author='Ketan Goyal',
author_email='[email protected]',
license="Apache 2.0 license",
url='https://github.com/ketgo/py-abac',
long_description=long_description,
long_description_content_type='text/markdown',
py_modules=['py_abac'],
python_requires='>3.4',
install_requires=[
'marshmallow~=3.2',
'marshmallow-oneofschema~=2.0',
'objectpath~=0.6',
'lru-dict~=1.1'
],
extras_require={
'dev': extra_requires_dev,
'doc': extra_requires_doc,
'mongo': extra_requires_mongo,
'sql': extra_requires_sql,
'file': extra_requires_file,
'redis': extra_requires_redis,
},
packages=find_packages(exclude=('tests', 'benchmarks')),
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Topic :: System :: Systems Administration',
'Topic :: System :: Networking',
'Topic :: System :: Networking :: Firewalls',
'Topic :: Security',
'Topic :: Software Development',
'Topic :: Utilities',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: PyPy',
],
)