forked from tancheng/mflowgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
120 lines (96 loc) · 3.58 KB
/
setup.py
File metadata and controls
120 lines (96 loc) · 3.58 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
"""
========================================================================
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
from mflowgen.version import __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(
# General information
name = 'mflowgen',
version = __version__,
description = \
'mflowgen: A Modular ASIC and FPGA Flow Generator',
long_description = get_long_description(),
long_description_content_type = 'text/markdown',
url = 'https://github.com/mflowgen/mflowgen',
author = 'Christopher Torng',
author_email = 'clt67@cornell.edu',
# Packages
#
# - Add root as a "package" in order to force non-Python files to appear
# in the bdist_wheel
#
packages = find_packages(
exclude = [ 'adks', 'designs', 'docs', 'requirements', 'steps' ],
) + ['.'],
# 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',
# Dependencies
install_requires = [
'pytest>=4.4',
'pyyaml>=5.0',
],
# Classifiers
#
# 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',
'Environment :: Console',
'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)',
'Topic :: Software Development :: Build Tools',
],
# Non-Python files
#
# - Very hard to get non-python files to be included in the install
#
# - These two are enough to include everything in the sdist
#
# include_package_data = True,
# setup_requires = [ 'setuptools_scm' ],
# (put more stuff in MANIFEST.in if you want)
#
# - To include everything in the bdist_wheel, the root dir needs to
# be seen as a "package". Only files in packages appear in bdist.
#
# - "Ionel Cristian Mărieș - Less known packaging features and tricks"
#
# - See this video for best practices overall
# - Avoid data_files, very inconsistent
# - Do not use package_data either
# - if "include_package_data" is True, then MANIFEST.in files get
# included... but only _if_ they are inside a package
#
include_package_data = True,
setup_requires = [ 'setuptools_scm' ], # include any files that git sees
# Executable scripts
entry_points = {
'console_scripts': [
'mflowgen = mflowgen.cli:main',
'mflowgen-python = mflowgen.mflowgen_python:_mflowgen_python_main',
# 'mflowgen-info = mflowgen.scripts:main' # use MFLOWGEN_HOME for now
]
},
)