-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
64 lines (51 loc) · 1.48 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
from os.path import dirname, join
from setuptools import find_packages, setup
KEYWORDS = []
CLASSIFIERS = [
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python",
"Topic :: Software Development",
]
INSTALL_REQUIRES = [
'click',
'Flask',
'Flask-SQLAlchemy'
]
PROJECT_DIR = dirname(__file__)
README_FILE = join(PROJECT_DIR, "README.rst")
ABOUT_FILE = join(PROJECT_DIR, "src", "dummyweb", "__about__.py")
def get_readme():
with open(README_FILE, "r") as fileobj:
return fileobj.read()
def get_about():
about = {}
with open(ABOUT_FILE) as fileobj:
exec(fileobj.read(), about)
return about
ABOUT = get_about()
setup(
name=ABOUT["__title__"],
version=ABOUT["__version__"],
description=ABOUT["__summary__"],
long_description=get_readme(),
author=ABOUT["__author__"],
author_email=ABOUT["__email__"],
license=ABOUT["__license__"],
url=ABOUT["__uri__"],
keywords=KEYWORDS,
classifiers=CLASSIFIERS,
package_dir={"": "src"},
packages=find_packages("src"),
entry_points={
"console_scripts": [
"dummyctl=dummyweb.__main__:main"
]
},
install_requires=INSTALL_REQUIRES,
python_requires=">=3.6, <4",
zip_safe=False,
)