Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jmduarte committed Oct 25, 2022
1 parent 770b3d7 commit e889a60
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 52 deletions.
7 changes: 7 additions & 0 deletions hls4ml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
from hls4ml import report
from hls4ml import utils

try:
from ._version import version as __version__
from ._version import version_tuple
except ImportError:
__version__ = "unknown version"
version_tuple = (0, 0, "unknown version")

def reseed(newseed):
print('\npytest-randomly: reseed with {}'.format(newseed))
try:
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
# See configuration details in https://github.com/pypa/setuptools_scm
version_scheme = "no-guess-dev"
version_scheme = "no-guess-dev"
git_describe_command = "git describe --dirty --tags --long --match v* --first-parent"
write_to = "hls4ml/_version.py"
35 changes: 35 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,9 +1,44 @@
[metadata]
description-file = README.md
name = hls4ml
author = HLS4ML Team
author_email = [email protected]
license = Apache 2.0
description = Machine learning in FPGAs using HLS
url = https://fastmachinelearning.org/hls4ml
long_description = file: README.md
long_description_content_type = text/markdown
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.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Topic :: Software Development :: Libraries
Topic :: Software Development :: Libraries :: Python Modules

[options]
python_requires = >=3.7
packages = find:
install_requires =
numpy
six
pyyaml
h5py
onnx>=1.4.0
calmjs.parse
tabulate
qkeras
include_package_data = True
scripts = scripts/hls4ml

[options.entry_points]
pytest_randomly.random_seeder =
hls4ml = hls4ml:reseed

[options.extras_require]
profiling = pandas; seaborn; matplotlib
54 changes: 3 additions & 51 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,52 +1,4 @@
from setuptools import setup
from setuptools import find_packages
import setuptools

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()

setup(name='hls4ml',
use_scm_version={"version_scheme": "no-guess-dev"},
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',
'pydigitalwavetools==1.1',
'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())
if __name__ == "__main__":
setuptools.setup()

0 comments on commit e889a60

Please sign in to comment.