This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·75 lines (64 loc) · 2.05 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
#!/usr/bin/env python
"""
opbeatcli is a command line client for `Opbeat <https://opbeat.com/>`_.
It provides access to the Opbeat API through the command line. It is also
useful for use in your own applications. "opbeat" is installed as a binary.
"""
from setuptools import setup, find_packages
from opbeatcli import __version__
try:
# Python 2.6 workaround to prevent:
# "TypeError: 'NoneType' object is not callable"
# in multiprocessing/util.py _exit_function
# when running `python setup.py test`
# <http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html>
# noinspection PyUnresolvedReferences
import multiprocessing
except ImportError:
pass
with open('README.rst') as f:
long_description = f.read().strip()
with open('requirements.txt') as f:
install_requires = f.read().strip().splitlines()
try:
# noinspection PyUnresolvedReferences
import argparse
except ImportError:
install_requires.append('argparse')
with open('requirements-tests.txt') as f:
tests_require = f.read().strip().splitlines()
try:
# noinspection PyUnresolvedReferences
import unittest
# noinspection PyStatementEffect
unittest.TestCase.assertDictContainsSubset
except (ImportError, AttributeError):
tests_require.append('unittest2')
setup(
name='opbeatcli',
version=__version__,
author='Ron Cohen',
author_email='[email protected]',
url='http://github.com/opbeat/opbeatcli',
description=__doc__.strip(),
long_description=long_description,
packages=find_packages('.', exclude=['tests']),
zip_safe=False,
install_requires=install_requires,
tests_require=tests_require,
extras_require={
'test': tests_require
},
test_suite ='nose.collector',
entry_points={
'console_scripts': [
'opbeat = opbeatcli.__main__:main',
],
},
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Software Development'
],
)