This repository was archived by the owner on Mar 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·65 lines (57 loc) · 1.78 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·65 lines (57 loc) · 1.78 KB
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
#!/usr/bin/env python3
from setuptools import setup
import re
import os
with open('tbf/__init__.py') as inp:
version = re.search('^__VERSION__\s*=\s*[\"\'](.*)[\"\']', inp.read(),
re.M).group(1)
def get_files(directory, parent):
files = list()
for path, directories, filenames in os.walk(directory):
rel_path = os.path.relpath(path, parent)
for filename in filenames:
files.append(os.path.join(rel_path, filename))
return files
# Collect package_data for testing tools
tools = ['afl', 'cpatiger', 'crest', 'fshell', 'klee', 'random']
tool_data = list()
for tool in tools:
tool_dir = os.path.join('tbf/tools', tool)
tool_data += get_files(tool_dir, 'tbf/tools')
validator_data = get_files('tbf/validators', 'tbf')
setup(
name='tbf-test',
version=version,
author='Dirk Beyer',
description='tbf, an Automatic Test-Case Generation and Execution Framework',
url='https://github.com/sosy-lab/tbf',
packages=['tbf', 'tbf.tools'],
package_data={
'tbf.tools': tool_data,
'tbf': validator_data
},
entry_points={"console_scripts": ['tbf = tbf:main']},
install_requires=[
'pycparser>=2.18',
'lxml>=4.2',
],
setup_requires=[
'nose>=1.0',
],
tests_require=[
'pylint',
'nose>=1.0',
],
test_suite = 'nose.collector',
license='multiple',
keywords='test execution test-case generation verification',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Operation System :: POSIX :: Linux',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Testing',
],
platforms=['Linux'],
)