-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
63 lines (52 loc) · 1.86 KB
/
setup.py
File metadata and controls
63 lines (52 loc) · 1.86 KB
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
import subprocess
from setuptools import Command, find_packages, setup
# -----------------------------------------------------------------------------
def system(command):
class SystemCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
subprocess.check_call(command, shell=True)
return SystemCommand
# -----------------------------------------------------------------------------
setup(
name="Flask-RESTy-Tenants",
version="0.8.0",
description="Multitenant authorization for Flask-RESTy",
url="https://github.com/4Catalyzer/flask-resty-tenants",
author="Giacomo Tagliabue",
author_email="giacomo.tag@gmail.com",
license="MIT",
python_requires=">=3.6",
classifiers=[
"Development Status :: 3 - Alpha",
"Framework :: Flask",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3 :: Only",
],
keywords="rest flask multitenancy",
packages=find_packages(exclude=("tests",)),
install_requires=(
"Flask>=0.10",
"Flask-RESTy>=0.13.0",
"SQLAlchemy>=1.0.0",
),
cmdclass={
"clean": system("rm -rf build dist *.egg-info"),
"package": system("python setup.py sdist bdist_wheel"),
"publish": system("twine upload dist/*"),
"release": system("python setup.py clean package publish"),
"test": system("tox"),
},
)