This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

Improve the warning message when falling back to the textX.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>

Tim 'mithro' Ansell (Feb 19, 2021, 1:10 PM -0800) 6bdbb14d 037bd746

+24 -13
+11 -5
fasm/parser/__init__.py
··· 20 20 available.append('antlr') 21 21 except ImportError as e: 22 22 warn( 23 - '\nFalling back on slower textX parser implementation:\n' 24 - ' ImportError: {}\n' 25 - 'Please install all dependencies and reinstall with:\n' 26 - ' pip uninstall\n' 27 - ' pip install -v fasm'.format(e), RuntimeWarning) 23 + """Unable to import fast Antlr4 parser implementation. 24 + ImportError: {} 25 + 26 + Falling back to the much slower pure Python textX based parser 27 + implementation. 28 + 29 + Getting the faster antlr parser can normally be done by installing the 30 + required dependencies and then reinstalling the fasm package with: 31 + pip uninstall 32 + pip install -v fasm 33 + """.format(e), RuntimeWarning) 28 34 from fasm.parser.textx import \ 29 35 parse_fasm_filename, parse_fasm_string, implementation 30 36
+13 -8
fasm/version.py
··· 13 13 # This file is auto-generated by the update_version.py script. 14 14 # ** WARNING ** 15 15 16 - version_str = "UNKNOWN" 17 - version_tuple = (0, 0, 0, 0) 16 + version_str = "0.0.2.post66" 17 + version_tuple = (0, 0, 2, 66) 18 + try: 19 + from packaging.version import Version as V 20 + pversion = V("0.0.2.post66") 21 + except ImportError: 22 + pass 18 23 19 - git_hash = "UNKNOWN" 20 - git_describe = "UNKNOWN" 24 + git_hash = "c0b734e6d373fcffd0522acdd102814bcefb626a" 25 + git_describe = "v0.0.2-66-gc0b734e" 21 26 git_msg = """\ 22 - commit UNKNOWN 23 - Author: UNKNOWN 24 - Date: UNKNOWN 27 + commit c0b734e6d373fcffd0522acdd102814bcefb626a 28 + Author: Tim 'mithro' Ansell <me@mith.ro> 29 + Date: Fri Feb 19 13:05:20 2021 -0800 25 30 26 - UNKNOWN 31 + Improve the warning message when falling back to the textX. 27 32 28 33 Signed-off-by: Tim 'mithro' Ansell <me@mith.ro> 29 34