forked from RidersDiscountCom/HypChat
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
59 lines (47 loc) · 1.7 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
#!/usr/bin/env python
from setuptools import setup, Command
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys, subprocess
errno = subprocess.call([sys.executable, '-m', 'unittest', 'discover'])
raise SystemExit(errno)
def read_file(name):
"""
Read file content
"""
f = open(name)
try:
return f.read()
except IOError:
print("could not read %r" % name)
f.close()
setup(name='hypchat',
version='0.21',
description="Package for HipChat's v2 API",
long_description=read_file('README.rst'),
author='Riders Discount',
author_email='opensource@ridersdiscount.com',
url='https://github.com/RidersDiscountCom/HypChat',
packages=['hypchat'],
install_requires=['requests', 'python-dateutil', 'six'],
test_requires=['requests_mock'],
provides=['hypchat'],
cmdclass={'test': PyTest},
classifiers=[ # https://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Communications :: Chat',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)