-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
78 lines (65 loc) · 2.35 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
# -*- coding: utf-8 -*-
"""
Created on Tue May 12 12:58:55 2015
@author: dthor
"""
### #------------------------------------------------------------------------
### Imports
### #------------------------------------------------------------------------
# Standard Library
import os
import sys
from setuptools import setup, find_packages
# Third Party
# Package / Application
# Read the "__about__" file.
# This is how the `cryptography` package does it. Seems like a decent
# way because it prevents the main package from being imported.
# I'm not sure how I feel about `exec()` though...
about = {}
base_dir = os.path.dirname(__file__)
sys.path.insert(0, base_dir)
with open(os.path.join(base_dir, "pybank", "__about__.py")) as f:
exec(f.read(), about)
with open(os.path.join(base_dir, "README.rst")) as f:
long_description = f.read()
# See https://chriswarrick.com/blog/2014/09/15/python-apps-the-right-way-entry_points-and-scripts/
# See http://stackoverflow.com/a/9615473/1354930
entry_points = {
'gui_scripts': ['pybank = pybank.__main__:main'],
}
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Environment :: Win32 (MS Windows)",
"Environment :: X11 Applications",
"Environment :: MacOS X",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Financial and Insurance Industry",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Office/Business :: Financial",
"Topic :: Office/Business :: Financial :: Accounting",
"Topic :: Utilities",
]
setup(
name=about["__package_name__"],
version=about["__version__"],
description=about["__description__"],
long_description=long_description,
url=about["__project_url__"],
author=about["__author__"],
license=about["__license__"],
entry_points=entry_points,
packages=find_packages(),
classifiers=classifiers,
requires=["wxPython",
"keyring",
"docopt",
"BeautifulSoup4",
],
)