-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.py
53 lines (46 loc) · 1.41 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
#!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
except ImportError:
from distutils.core import setup
PyTest = lambda x: x
try:
long_description = open(os.path.join(os.path.dirname(__file__),
'README.rst')).read()
except Exception:
long_description = None
test_requires = [
'pytest >= 2.5.2',
'pytest-cov >= 2.3',
]
if sys.version_info[:2] < (3, 0):
test_requires.append('mock')
setup(
name='serfclient',
version='1.2.0',
description='Python client for the Serf orchestration tool',
long_description=long_description,
url='https://github.com/KushalP/serfclient-py',
author='Kushal Pisavadia',
author_email='[email protected]',
maintainer='Kushal Pisavadia',
maintainer_email='[email protected]',
keywords=['Serf', 'orchestration', 'service discovery'],
license='MIT',
packages=['serfclient'],
install_requires=['msgpack >= 0.5.0'],
tests_require=test_requires,
cmdclass={'test': PyTest},
)