-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
35 lines (30 loc) · 1.13 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
from setuptools import setup, find_packages
from imp import load_source
import unittest
pkginfo = load_source("pkginfo.version", "gtirb_stack_stamp/version.py")
__version__ = pkginfo.__version__
def gtirb_stack_stamp_test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover("tests", pattern="test_*.py")
return test_suite
if __name__ == "__main__":
setup(
name="gtirb-stack-stamp",
version=__version__,
author="Grammatech",
author_email="[email protected]",
description="Apply a stack-stamp transform to GTIRB",
package_data={"gtirb_stack_stamp": ["gtirb_stack_stamp/*.py"]},
packages=find_packages(),
test_suite="setup.gtirb_stack_stamp_test_suite",
install_requires=["gtirb", "gtirb-rewriting"],
classifiers=["Programming Language :: Python :: 3"],
entry_points={
"console_scripts": [
"gtirb-stack-stamp = gtirb_stack_stamp.__main__:main"
],
"gtirb_rewriting": [
"stack-stamp = gtirb_stack_stamp.stack_stamp:StampPass",
],
},
)