forked from fastmachinelearning/hls4ml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (55 loc) · 1.84 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
from setuptools import setup
from setuptools import find_packages
import codecs
import os.path
def read(rel_path):
this_directory = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(this_directory, rel_path), 'r') as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
setup(name='hls4ml',
version=get_version("hls4ml/__init__.py"),
description='Machine learning in FPGAs using HLS',
long_description=read('README.md'),
long_description_content_type='text/markdown',
author='HLS4ML Team',
author_email='[email protected]',
url='https://github.com/hls-fpga-machine-learning/hls4ml',
license='Apache 2.0',
install_requires=[
'numpy',
'six',
'pyyaml',
'h5py',
'onnx>=1.4.0',
'calmjs.parse',
'tabulate',
'qkeras',
],
extras_require={
'profiling': [
'pandas',
'seaborn',
'matplotlib'
]
},
scripts=['scripts/hls4ml'],
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: C++',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules'
],
packages=find_packages())