forked from code-dice/dice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·51 lines (40 loc) · 1.14 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
"""
DICE is a black-box random testing framework. It aims to help testers random
testing a project while exploring its feature by writing some constraints.
"""
import os
from setuptools import setup
import dice
def get_config_dir():
settings_system_wide = os.path.join('/etc')
settings_local_install = os.path.join('etc')
if 'VIRTUAL_ENV' in os.environ:
return settings_local_install
else:
return settings_system_wide
def get_data_files():
data_files = [(get_config_dir(), ['etc/dice.conf'])]
return data_files
def get_packages():
packages = [
'dice',
'dice/core',
'dice/client',
'dice/utils',
]
return packages
setup(
name='dice',
version=dice.__version__,
url='http://github.com/code-dice/dice/',
license='GNU General Public License v2',
author='Hao Liu',
author_email='[email protected]',
description='A random testing framework',
long_description=__doc__,
scripts=['scripts/dice'],
packages=get_packages(),
# Config file will be introduced later.
# Currently this does nothing but fail rtd build.
)