-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
33 lines (26 loc) · 881 Bytes
/
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
#!/usr/bin/env python
from setuptools import setup
from setuptools.command.test import test as TestCommand
# Inspired by the example at https://pytest.org/latest/goodpractises.html
class NoseTestCommand(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# Run nose ensuring that argv simulates running nosetests directly
import nose
nose.run_exit(argv=['nosetests'])
setup(name='monon',
version='1.0',
description='Money and Currency library',
author='Pedro Burón',
author_email='pedroburonv@gmail.com',
url='https://github.com/pedroburon',
packages=['monon'],
setup_requires=[
'nose==1.3.7',
'coverage==4.4.1'
],
cmdclass={'test': NoseTestCommand},
)