-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (50 loc) · 1.99 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
import os
import setuptools
version = "2.0.0"
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=[
"pygraphviz",
"blifparser==2.0.1"
], # dependencies
python_requires='>=3.7',
packages=setuptools.find_packages(include=['blif2graph'], exclude=("tests",)),
name='blif2graph', # name of the PyPI-package.
version=version, # version number
author="Zenaro Stefano (mario33881)",
entry_points={
"console_scripts": ["blif2graph = blif2graph.blif2graph:main"]
},
author_email="mariortgasd@hotmail.com",
url="https://github.com/mario33881/blif2graph",
keywords='SIS BLIF Graph',
license='MIT',
description='Generate graphs from BLIF files',
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',
]
)