|
1 | | -from setuptools import setup |
2 | | -from setuptools import find_packages |
| 1 | +import setuptools |
3 | 2 |
|
4 | | -import codecs |
5 | | -import os.path |
6 | | - |
7 | | -def read(rel_path): |
8 | | - this_directory = os.path.abspath(os.path.dirname(__file__)) |
9 | | - with codecs.open(os.path.join(this_directory, rel_path), 'r') as fp: |
10 | | - return fp.read() |
11 | | - |
12 | | -def get_version(rel_path): |
13 | | - for line in read(rel_path).splitlines(): |
14 | | - if line.startswith('__version__'): |
15 | | - delim = '"' if '"' in line else "'" |
16 | | - return line.split(delim)[1] |
17 | | - else: |
18 | | - raise RuntimeError("Unable to find version string.") |
19 | | - |
20 | | -setup(name='hls4ml', |
21 | | - version=get_version("hls4ml/__init__.py"), |
22 | | - description='Machine learning in FPGAs using HLS', |
23 | | - long_description=read('README.md'), |
24 | | - long_description_content_type='text/markdown', |
25 | | - author='HLS4ML Team', |
26 | | - |
27 | | - url='https://github.com/hls-fpga-machine-learning/hls4ml', |
28 | | - license='Apache 2.0', |
29 | | - install_requires=[ |
30 | | - 'numpy', |
31 | | - 'six', |
32 | | - 'pyyaml', |
33 | | - 'h5py', |
34 | | - 'onnx>=1.4.0', |
35 | | - 'calmjs.parse', |
36 | | - 'tabulate', |
37 | | - 'pydigitalwavetools==1.1', |
38 | | - 'qkeras', |
39 | | - ], |
40 | | - extras_require={ |
41 | | - 'profiling': [ |
42 | | - 'pandas', |
43 | | - 'seaborn', |
44 | | - 'matplotlib' |
45 | | - ] |
46 | | - }, |
47 | | - scripts=['scripts/hls4ml'], |
48 | | - include_package_data=True, |
49 | | - classifiers=[ |
50 | | - 'Development Status :: 3 - Alpha', |
51 | | - 'Intended Audience :: Developers', |
52 | | - 'Intended Audience :: Science/Research', |
53 | | - 'License :: OSI Approved :: Apache Software License', |
54 | | - 'Programming Language :: C++', |
55 | | - 'Programming Language :: Python :: 3', |
56 | | - 'Programming Language :: Python :: 3.6', |
57 | | - 'Topic :: Software Development :: Libraries', |
58 | | - 'Topic :: Software Development :: Libraries :: Python Modules' |
59 | | - ], |
60 | | - packages=find_packages()) |
| 3 | +if __name__ == "__main__": |
| 4 | + setuptools.setup() |
0 commit comments