forked from shelson/will
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (52 loc) · 1.78 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
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
from will import __name__ as PACKAGE_NAME
from will import VERSION
DESCRIPTION = "A friendly python hipchat bot"
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
reqs = []
for req_file in ("requirements.base.txt", "requirements.txt"):
with open(req_file, "r+") as f:
for line in f.readlines():
if line[0] == "-":
continue
reqs.append(line.strip())
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError, OSError, RuntimeError):
try:
import os
long_description = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
except:
long_description = DESCRIPTION + '\n'
setup(
name=PACKAGE_NAME,
description=DESCRIPTION,
long_description=long_description,
author="Steven Skoczen",
author_email="[email protected]",
url="https://github.com/skoczen/will",
version=VERSION,
download_url=['https://github.com/skoczen/will/tarball/%s' % VERSION, ],
install_requires=reqs,
packages=find_packages(),
include_package_data=True,
keywords=["hipchat", "bot"],
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Communications :: Chat",
"Topic :: Software Development :: Libraries :: Python Modules",
],
entry_points={
'console_scripts': ['generate_will_project = will.scripts.generate_will_project:main'],
},
)