-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
55 lines (47 loc) · 1.39 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
import re
import setuptools.command.test
class PyTest(setuptools.command.test.test):
def finalize_options(self):
setuptools.command.test.test.finalize_options(self)
self.test_args = ['tests']
self.test_suite = True
def run_tests(self):
import pytest
pytest.main(self.test_args)
extras_require = {
'tests': [
'pytest >=2.5,<3.0',
'pytest-cov >=1.7,<2.0',
'unittest2 >=0.5.1,<0.6',
],
}
setuptools.setup(
name='nacha',
version=(
re
.compile(r".*__version__ = '(.*?)'", re.S)
.match(open('nacha/__init__.py').read())
.group(1)
),
url='https://github.com/balanced/nacha',
author='Balanced',
author_email='[email protected]',
description='NACHA',
long_description='',
platforms='any',
include_package_data=True,
install_requires=[],
extras_require=extras_require,
tests_require=extras_require['tests'],
packages=setuptools.find_packages('.', exclude=('tests', 'tests.*')),
cmdclass={'test': PyTest},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: ISC License (ISCL)',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
],
test_suite='nose.collector',
)