forked from pymtl/pymtl3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
97 lines (77 loc) · 2.93 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
"""
========================================================================
setup.py
========================================================================
setup.py inspired by the PyPA sample project:
https://github.com/pypa/sampleproject/blob/master/setup.py
"""
from os import path
from setuptools import find_packages, setup
#-------------------------------------------------------------------------
# get_version
#-------------------------------------------------------------------------
def get_version():
# Check Python version compatibility
import sys
assert sys.version_info[0] > 2, "Python 2 is no longer supported!"
_d = {}
with open(path.join(path.dirname(__file__), "pymtl3/version.py")) as f:
exec(f.read(), _d)
return _d['__version__']
#-------------------------------------------------------------------------
# get_long_descrption
#-------------------------------------------------------------------------
def get_long_description():
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
return f.read()
#-------------------------------------------------------------------------
# setup
#-------------------------------------------------------------------------
setup(
name = 'pymtl3',
version = get_version(),
description = \
'PyMTL 3 (Mamba): A Python-based hardware generation, simulation, and verification framework',
long_description = get_long_description(),
long_description_content_type = "text/markdown",
url = 'https://github.com/pymtl/pymtl3',
author = 'Batten Research Group',
author_email = '[email protected]',
# BSD 3-Clause License:
# - http://choosealicense.com/licenses/bsd-3-clause
# - http://opensource.org/licenses/BSD-3-Clause
license='BSD',
# Pip will block installation on unsupported versions of Python
python_requires=">=3.6",
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3 :: Only',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)',
],
packages = find_packages(
exclude=['scripts', 'examples', 'examples.*', 'examples.*.*']
),
package_data={
'pymtl3': [
# 'passes/backends/verilog/import_/verilator_wrapper.c.template',
# 'passes/backends/verilog/import_/verilator_wrapper.py.template',
# 'passes/backends/verilog/tbgen/verilog_tbgen.v.template',
],
},
install_requires = [
'pytest',
'hypothesis >= 4.18.1',
'cffi',
'greenlet',
],
entry_points = {
'pytest11' : [
'pytest-pymtl3 = pytest_plugin.pytest_pymtl3',
]
}
)