forked from PyHDI/Pyverilog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
30 lines (24 loc) · 1.08 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
from setuptools import setup, find_packages
import pyverilog.utils.version
import re
import os
m = re.search(r'(\d+\.\d+\.\d+(-.+)?)', pyverilog.utils.version.VERSION)
version = m.group(1) if m is not None else '0.0.0'
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename), encoding='utf8').read()
setup(name='pyverilog',
version=version,
description='Python-based Hardware Design Processing Toolkit for Verilog HDL: Parser, Dataflow Analyzer, Controlflow Analyzer and Code Generator',
long_description=read('README.rst'),
keywords='Verilog HDL, Lexer, Parser, Dataflow Analyzer, Control-flow Analyzer, Code Generator, Visualizer',
author='Shinya Takamaeda-Yamazaki',
license="Apache License 2.0",
url='https://github.com/PyHDI/Pyverilog',
packages=find_packages(),
package_data={'pyverilog.ast_code_generator': ['template/*'], },
install_requires=['Jinja2>=2.10'],
extras_require={
'graph': ['pygraphviz>=1.3.1'],
'test': ['pytest>=3.2', 'pytest-pythonpath>=0.7'],
},
)