Overview
| Comment: | [build][server][cli] better Python version test |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | cli | build | server |
| Files: | files | file ages | folders |
| SHA3-256: |
9fcb8afcbe28341e3d1292305080e1dd |
| User & Date: | olr on 2021-02-22 07:43:55 |
| Other Links: | manifest | tags |
Context
|
2021-02-22
| ||
| 08:05 | [fr] faux positifs et ajustements check-in: f48e7eee2c user: olr tags: trunk, fr | |
| 07:43 | [build][server][cli] better Python version test check-in: 9fcb8afcbe user: olr tags: trunk, cli, build, server | |
|
2021-02-21
| ||
| 10:51 | [fr] faux positifs check-in: babfb0cacb user: olr tags: trunk, fr | |
Changes
Modified grammalecte-cli.py from [79b3c7cfb2] to [be081db1ae].
| ︙ | ︙ | |||
128 129 130 131 132 133 134 |
else:
vSugg = m.group(2)[1:]
return (nError, cAction, vSugg)
def main ():
"launch the CLI (command line interface)"
| | | 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
else:
vSugg = m.group(2)[1:]
return (nError, cAction, vSugg)
def main ():
"launch the CLI (command line interface)"
if sys.version_info < (3, 5):
print("Python 3.5+ required")
return
xParser = argparse.ArgumentParser()
xParser.add_argument("-f", "--file", help="parse file (UTF-8 required!) [on Windows, -f is similar to -ff]", type=str)
xParser.add_argument("-ff", "--file_to_file", help="parse file (UTF-8 required!) and create a result file (*.res.txt)", type=str)
xParser.add_argument("-iff", "--interactive_file_to_file", help="parse file (UTF-8 required!) and create a result file (*.res.txt)", type=str)
|
| ︙ | ︙ |
Modified grammalecte-server.py from [5d984abc19] to [d086212d10].
| ︙ | ︙ | |||
316 317 318 319 320 321 322 |
TESTPAGE = True
HOMEPAGE = HOMEPAGE.replace("{SERVER_PORT}", str(nPort))
if dOptions:
oGCE.setOptions(dOptions)
# Python version
print("Python: " + sys.version)
| | | 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 |
TESTPAGE = True
HOMEPAGE = HOMEPAGE.replace("{SERVER_PORT}", str(nPort))
if dOptions:
oGCE.setOptions(dOptions)
# Python version
print("Python: " + sys.version)
if sys.version_info.major < (3, 7):
print("Python 3.7+ required")
return
# Grammalecte
echo("Grammalecte v{}".format(oGCE.version))
oGCE.displayOptions()
# Process Pool Executor
initExecutor(nMultiCPU)
|
| ︙ | ︙ |
Modified make.py from [b370bc0e26] to [2c13d42c51].
| ︙ | ︙ | |||
381 382 383 384 385 386 387 |
else:
print(f"# Error. No folder <gc_lang/{sLang}/tests>. With option -tt, all texts named <test_*.txt> in this folder will be parsed by the grammar checker.")
def main ():
"build Grammalecte with requested options"
print("Python: " + sys.version)
| | | 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 |
else:
print(f"# Error. No folder <gc_lang/{sLang}/tests>. With option -tt, all texts named <test_*.txt> in this folder will be parsed by the grammar checker.")
def main ():
"build Grammalecte with requested options"
print("Python: " + sys.version)
if sys.version_info < (3, 7):
print("Python 3.7+ required")
return
xParser = argparse.ArgumentParser()
xParser.add_argument("lang", type=str, nargs='+', help="lang project to generate (name of folder in /lang)")
xParser.add_argument("-uc", "--use_cache", help="use data cache instead of rebuilding rules", action="store_true")
xParser.add_argument("-frb", "--force_rebuild", help="force rebuilding rules", action="store_true")
xParser.add_argument("-b", "--build_data", help="launch build_data.py (part 1 and 2)", action="store_true")
|
| ︙ | ︙ |