-
Notifications
You must be signed in to change notification settings - Fork 462
set version using setuptools_scm
#479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
07ef508
bump version
jmduarte 68fc5de
add pyproject.toml
jmduarte 770b3d7
update
jmduarte e889a60
update
jmduarte 62dc443
update
jmduarte 3abd03a
gitignore update
jmduarte d65f976
try different scheme
jmduarte 098a683
lower tolerance pytest
jmduarte ed70a79
Update setup.cfg
jmduarte File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.pyc | ||
_version.py | ||
__pycache__ | ||
build/ | ||
dist/ | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[build-system] | ||
# AVOID CHANGING REQUIRES: IT WILL BE UPDATED BY PYSCAFFOLD! | ||
requires = ["setuptools>=46.1.0", "setuptools_scm[toml]>=5", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
# See configuration details in https://github.com/pypa/setuptools_scm | ||
version_scheme = "release-branch-semver" | ||
git_describe_command = "git describe --dirty --tags --long --match v* --first-parent" | ||
write_to = "hls4ml/_version.py" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,47 @@ | ||
[metadata] | ||
description-file = README.md | ||
name = hls4ml | ||
author = hls4ml Team | ||
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 | ||
pydigitalwavetools==1.1 | ||
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +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() | ||
|
||
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', | ||
'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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.