forked from mkwiatkowski/pythoscope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
70 lines (55 loc) · 2.02 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import sys
try:
from setuptools import setup
# ctypes library is part of standard library since Python 2.5.
if sys.version_info < (2, 5):
install_requires = ['ctypes']
else:
install_requires = []
args = dict(
entry_points = {'console_scripts': ['pythoscope = pythoscope:main']},
install_requires = install_requires,
test_suite = 'nose.collector',
tests_require = ['nose', 'mock', 'docutils', 'setuptools-lint'])
except ImportError:
from distutils.core import setup
args = dict(scripts = ['scripts/pythoscope'])
# The C module doesn't need to be built for Python 2.5 and higher.
if sys.version_info < (2, 5):
from distutils.core import Extension
ext_modules = [Extension('pythoscope._util', sources=['pythoscope/_util.c'])]
else:
ext_modules = []
from pythoscope import __version__ as VERSION
args['install_requires'].append( 'setuptools-lint')
setup(
name='pythoscope',
version=VERSION,
author = 'Michal Kwiatkowski',
author_email = 'constant.beta@gmail.com',
description = 'unit test generator for Python',
long_description = open("README").read() + "\n" + open("Changelog").read(),
license = 'MIT',
# url = 'http://pythoscope.org',
url='https://github.com/h4ck3rm1k3/pythoscope',
ext_modules = ext_modules,
packages = ['pythoscope', 'pythoscope.inspector', 'pythoscope.generator',
'bytecode_tracer',
#'lib2to3', 'lib2to3.pgen2'
],
package_data = {'pythoscope': [],
'bytecode_tracer': [],
#'lib2to3': ['*.txt']
},
keywords='testing test case generator',
classifiers = [
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Programming Language :: Python',
"Operating System :: OS Independent",
'Topic :: Software Development :: Code Generators',
'Topic :: Software Development :: Testing',
],
**args
)