-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (43 loc) · 1.37 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
"""
Setup script. Used to distribute and install this project.
See setuptools documentation at setuptools.readthedocs.io
"""
import setuptools
def read(fname):
"""Return contents of fname"""
txt = None
with open(fname) as ftoken:
txt = ftoken.read()
return txt
PROJECT_NAME = read("metadata/project_name")
VERSION = read("metadata/version")
DESCRIPTION = read("metadata/short_description")
LONG_DESCRIPTION = read("README.rst")
PACKAGES = setuptools.find_packages(exclude=("dist"))
DATA_FILES = [("share/man/man1", ["docs/man/{}.1.gz".format(PROJECT_NAME)])]
setuptools.setup(
author="Micah Culpepper",
author_email="[email protected]",
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache License",
"Programming Language :: Python :: 2.7",
"Topic :: Software Development :: Libraries :: Python Modules",
],
data_files=DATA_FILES,
description=DESCRIPTION,
entry_points={
"console_scripts": [
"{0} = {0}.__main__:main".format(PROJECT_NAME)
]
},
install_requires=[
],
license="Apache License",
long_description=LONG_DESCRIPTION,
name=PROJECT_NAME,
packages=PACKAGES,
test_suite="{}.tests".format(PROJECT_NAME),
url="https://github.com/micahculpepper/{}".format(PROJECT_NAME),
version=VERSION
)