-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (33 loc) · 1.05 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
import sys
from setuptools import find_packages, setup
CURRENT_PYTHON = sys.version_info[:2]
REQUIRED_PYTHON = (3, 7)
# Check python version
if CURRENT_PYTHON < REQUIRED_PYTHON:
sys.stderr.write("""
==========================
Unsupported Python version
==========================
This version of modnet requires Python {}.{}, but you're trying to
install it on Python {}.{}.
""".format(*(REQUIRED_PYTHON + CURRENT_PYTHON)))
sys.exit(1)
# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name="mod-net",
version="v2.0.0-beta5",
description="Make SET and SEU fault injections in hierarchical verilog netlists",
long_description=long_description,
long_description_content_type='text/x-rst',
packages=find_packages(exclude=("tests",)),
install_requires=[
'Click==7.*',
],
entry_points={
'console_scripts': ['modnet=modnet.cli:main'],
}
)