forked from npryce/python-factcheck
/
setup.py
51 lines (42 loc) · 1.58 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
#!/usr/bin/env python
from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
import os
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_suite = True
self.test_args = ['test/test_factcheck.py']
if sys.version_info[0] > 2:
self.test_args.append('test/test_factcheck_python3.py')
self.test_args.append('--duration=10')
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(name='factcheck',
version='1.3.0.2',
description='A simple, extensible implementation of QuickCheck for Python',
author='Nat Pryce',
author_email='about-factcheck@natpryce.com',
url='http://github.com/npryce/python-factcheck',
license="Apache 2.0",
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Natural Language :: English',
'Topic :: Software Development :: Testing',
],
provides=['factcheck'],
py_modules=['factcheck'],
tests_require=['pytest'],
cmdclass = {'test': PyTest}
)