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
|
# run without confirmation
|
||||||
lndl_nuitka . -n
|
lndl_nuitka . -n
|
||||||
# do not run
|
# 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
|
### Nuitka Compiler Helper
|
||||||
|
@ -94,7 +94,7 @@ def run_nuitka(subprocess_command: list) -> None:
|
|||||||
print(f"Time Elapsed: {end_time - start_time} seconds")
|
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
|
enter point for python direct call
|
||||||
:param config: nuitka config dict
|
:param config: nuitka config dict
|
||||||
@ -102,7 +102,7 @@ def main(config: support_config_dict) -> None:
|
|||||||
"""
|
"""
|
||||||
subprocess_command = gen_subprocess_args(config)
|
subprocess_command = gen_subprocess_args(config)
|
||||||
display_config(subprocess_command)
|
display_config(subprocess_command)
|
||||||
run_nuitka(subprocess_command)
|
return subprocess_command
|
||||||
|
|
||||||
|
|
||||||
def cli_main() -> None:
|
def cli_main() -> None:
|
||||||
|
@ -65,7 +65,6 @@ def get_cli_nuitka_args() -> dict:
|
|||||||
if len(sys.argv) < 2:
|
if len(sys.argv) < 2:
|
||||||
return {}
|
return {}
|
||||||
if '--' not in sys.argv:
|
if '--' not in sys.argv:
|
||||||
print(f"invalid args: {sys.argv}")
|
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
# start from --
|
# start from --
|
||||||
|
Loading…
Reference in New Issue
Block a user