Skip to content

Commit e889a60

Browse files
committed
update
1 parent 770b3d7 commit e889a60

File tree

4 files changed

+48
-52
lines changed

4 files changed

+48
-52
lines changed

hls4ml/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
from hls4ml import report
55
from hls4ml import utils
66

7+
try:
8+
from ._version import version as __version__
9+
from ._version import version_tuple
10+
except ImportError:
11+
__version__ = "unknown version"
12+
version_tuple = (0, 0, "unknown version")
13+
714
def reseed(newseed):
815
print('\npytest-randomly: reseed with {}'.format(newseed))
916
try:

pyproject.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ build-backend = "setuptools.build_meta"
55

66
[tool.setuptools_scm]
77
# See configuration details in https://github.com/pypa/setuptools_scm
8-
version_scheme = "no-guess-dev"
8+
version_scheme = "no-guess-dev"
9+
git_describe_command = "git describe --dirty --tags --long --match v* --first-parent"
10+
write_to = "hls4ml/_version.py"

setup.cfg

+35
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,44 @@
11
[metadata]
22
description-file = README.md
3+
name = hls4ml
4+
author = HLS4ML Team
5+
author_email = [email protected]
6+
license = Apache 2.0
7+
description = Machine learning in FPGAs using HLS
8+
url = https://fastmachinelearning.org/hls4ml
9+
long_description = file: README.md
10+
long_description_content_type = text/markdown
11+
classifiers =
12+
Development Status :: 3 - Alpha
13+
Intended Audience :: Developers
14+
Intended Audience :: Science/Research
15+
License :: OSI Approved :: Apache Software License
16+
Programming Language :: C++
17+
Programming Language :: Python :: 3
18+
Programming Language :: Python :: 3.7
19+
Programming Language :: Python :: 3.8
20+
Programming Language :: Python :: 3.9
21+
Topic :: Software Development :: Libraries
22+
Topic :: Software Development :: Libraries :: Python Modules
323

424
[options]
525
python_requires = >=3.7
26+
packages = find:
27+
install_requires =
28+
numpy
29+
six
30+
pyyaml
31+
h5py
32+
onnx>=1.4.0
33+
calmjs.parse
34+
tabulate
35+
qkeras
36+
include_package_data = True
37+
scripts = scripts/hls4ml
638

739
[options.entry_points]
840
pytest_randomly.random_seeder =
941
hls4ml = hls4ml:reseed
42+
43+
[options.extras_require]
44+
profiling = pandas; seaborn; matplotlib

setup.py

+3-51
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,4 @@
1-
from setuptools import setup
2-
from setuptools import find_packages
1+
import setuptools
32

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-
setup(name='hls4ml',
13-
use_scm_version={"version_scheme": "no-guess-dev"},
14-
description='Machine learning in FPGAs using HLS',
15-
long_description=read('README.md'),
16-
long_description_content_type='text/markdown',
17-
author='HLS4ML Team',
18-
author_email='[email protected]',
19-
url='https://github.com/hls-fpga-machine-learning/hls4ml',
20-
license='Apache 2.0',
21-
install_requires=[
22-
'numpy',
23-
'six',
24-
'pyyaml',
25-
'h5py',
26-
'onnx>=1.4.0',
27-
'calmjs.parse',
28-
'tabulate',
29-
'pydigitalwavetools==1.1',
30-
'qkeras',
31-
],
32-
extras_require={
33-
'profiling': [
34-
'pandas',
35-
'seaborn',
36-
'matplotlib'
37-
]
38-
},
39-
scripts=['scripts/hls4ml'],
40-
include_package_data=True,
41-
classifiers=[
42-
'Development Status :: 3 - Alpha',
43-
'Intended Audience :: Developers',
44-
'Intended Audience :: Science/Research',
45-
'License :: OSI Approved :: Apache Software License',
46-
'Programming Language :: C++',
47-
'Programming Language :: Python :: 3',
48-
'Programming Language :: Python :: 3.6',
49-
'Topic :: Software Development :: Libraries',
50-
'Topic :: Software Development :: Libraries :: Python Modules'
51-
],
52-
packages=find_packages())
3+
if __name__ == "__main__":
4+
setuptools.setup()

0 commit comments

Comments
 (0)