-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
69 lines (57 loc) · 2.21 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
import os
import setuptools
import bettersis._version as _version
version_date = _version.__version__
version = version_date.split(" ")[1]
def get_readme():
"""
Returns README.md content.
:return str long_description: README.md content
"""
long_description = ""
this_directory = os.path.abspath(os.path.dirname(__file__))
if os.path.isfile(os.path.join(this_directory, 'README.md')):
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
else:
raise Exception("README.md file not found")
return long_description
if __name__ == '__main__':
setuptools.setup(
install_requires=[
"siswrapper==1.2.2",
"prompt-toolkit==3.0.39",
"certifi==2022.12.7",
"blifparser==1.0.0",
"blif2graph==1.0.0"
], # dependencies
python_requires='>=3.7',
packages=setuptools.find_packages(include=['bettersis']),
name='bettersis', # name of the PyPI-package.
version=version, # version number
author="Zenaro Stefano (mario33881)",
entry_points={
"console_scripts": ["bettersis = bettersis.bettersis:main"]
},
author_email="[email protected]",
url="https://github.com/mario33881/betterSIS",
keywords='SIS BLIF',
license='MIT',
description='The modern shell for SIS (the circuit simulator and optimizer)',
long_description=get_readme(),
long_description_content_type='text/markdown',
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 5 - Production/Stable',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: MIT License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3',
# Operating systems
'Operating System :: Unix',
]
)