add more bump
This commit is contained in:
parent
249b77ba80
commit
76b6a8d0ab
11
README.md
11
README.md
@ -75,6 +75,17 @@ lndl_nuitka . -y
|
||||
# run without confirmation
|
||||
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
|
||||
|
@ -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:
|
||||
|
@ -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 --
|
||||
|
Loading…
Reference in New Issue
Block a user