add more bump

This commit is contained in:
shenjack 2023-11-25 19:02:11 +08:00
parent 249b77ba80
commit 76b6a8d0ab
Signed by: shenjack
GPG Key ID: 7B1134A979775551
3 changed files with 13 additions and 3 deletions

View File

@ -77,6 +77,17 @@ lndl_nuitka . -n
# do not run
```
```python
from tomli import loads
from lib_not_dr.nuitka.reader import main, run_nuitka
pyproject_toml = loads(open("pyproject.toml", "r").read())
nuitka_config = pyproject_toml["tool"]["lndl"]["nuitka"]
nuitka_config["product_version"] = "0.1.0"
command = main(nuitka_config)
run_nuitka(command)
```
### Nuitka Compiler Helper
#### Warning/警告

View File

@ -94,7 +94,7 @@ def run_nuitka(subprocess_command: list) -> None:
print(f"Time Elapsed: {end_time - start_time} seconds")
def main(config: support_config_dict) -> None:
def main(config: support_config_dict) -> list:
"""
enter point for python direct call
:param config: nuitka config dict
@ -102,7 +102,7 @@ def main(config: support_config_dict) -> None:
"""
subprocess_command = gen_subprocess_args(config)
display_config(subprocess_command)
run_nuitka(subprocess_command)
return subprocess_command
def cli_main() -> None:

View File

@ -65,7 +65,6 @@ def get_cli_nuitka_args() -> dict:
if len(sys.argv) < 2:
return {}
if '--' not in sys.argv:
print(f"invalid args: {sys.argv}")
return {}
# start from --