File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 1
1
from __future__ import absolute_import
2
2
3
- __version__ = '0.6.0'
4
-
5
3
from hls4ml import converters
6
4
from hls4ml import report
7
5
from hls4ml import utils
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ # AVOID CHANGING REQUIRES: IT WILL BE UPDATED BY PYSCAFFOLD!
3
+ requires = [" setuptools>=46.1.0" , " setuptools_scm[toml]>=5" , " wheel" ]
4
+ build-backend = " setuptools.build_meta"
5
+
6
+ [tool .setuptools_scm ]
7
+ # See configuration details in https://github.com/pypa/setuptools_scm
8
+ version_scheme = " no-guess-dev"
Original file line number Diff line number Diff line change @@ -9,16 +9,8 @@ def read(rel_path):
9
9
with codecs .open (os .path .join (this_directory , rel_path ), 'r' ) as fp :
10
10
return fp .read ()
11
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
12
setup (name = 'hls4ml' ,
21
- version = get_version ( "hls4ml/__init__.py" ) ,
13
+ use_scm_version = { "version_scheme" : "no-guess-dev" } ,
22
14
description = 'Machine learning in FPGAs using HLS' ,
23
15
long_description = read ('README.md' ),
24
16
long_description_content_type = 'text/markdown' ,
You can’t perform that action at this time.
0 commit comments