-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (25 loc) · 734 Bytes
/
setup.py
File metadata and controls
32 lines (25 loc) · 734 Bytes
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
import subprocess
import sys
from setuptools import setup, Command
import restle
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call(['py.test', 'test_restle.py', '--cov=restle', '--cov-branch'])
raise SystemExit(errno)
setup(
name='restle',
description='A REST client framework',
keywords='rest,mapper,client',
version=restle.__version__,
packages=['restle'],
requires=['six', 'requests'],
url='https://github.com/consbio/restle',
license='BSD',
tests_require=['pytest', 'pytest-cov', 'httpretty==0.8.6', 'mock'],
cmdclass={'test': PyTest}
)