gOdoo-cli 0.12.0__tar.gz → 0.12.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/PKG-INFO +26 -25
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/pyproject.toml +28 -28
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/shell/shell.py +12 -10
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/test/test_load_data.py +3 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/test/test_run.py +2 -1
- godoo_cli-0.12.2/src/godoo_cli/version.py +1 -0
- godoo_cli-0.12.0/src/godoo_cli/version.py +0 -1
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/LICENSE +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/README.md +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/__init__.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/__main__.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/cli.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/cli_common.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/__init__.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/backup/__init__.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/backup/cli.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/backup/dump.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/backup/load.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/backup/pull.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/backup/util.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/bootstrap.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/config.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/db/__init__.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/db/cli.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/db/connection.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/db/passwords.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/db/query.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/launch.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/rpc/__init__.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/rpc/cli.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/rpc/config_parameters.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/rpc/importer.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/rpc/modules.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/rpc/translations.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/shell/scripts/odoo_banner.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/source_get.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/test/__init__.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/commands/test/cli.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/git/__init__.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/git/git_odoo.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/git/git_odoo_addons.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/git/git_repo.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/git/git_url.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/git/zip_download.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/helpers/__init__.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/helpers/cli.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/helpers/modules.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/helpers/modules_git.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/helpers/modules_py.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/helpers/odoo_files.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/helpers/odoo_manifest.py +0 -0
- {godoo_cli-0.12.0 → godoo_cli-0.12.2}/src/godoo_cli/helpers/system.py +0 -0
|
@@ -1,43 +1,44 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gOdoo-cli
|
|
3
|
-
Version: 0.12.
|
|
3
|
+
Version: 0.12.2
|
|
4
4
|
Summary: Wrapper around Odoo-Bin with some convinience RPC functions.
|
|
5
5
|
Home-page: https://github.com/OpenJKSoftware/gOdoo
|
|
6
6
|
License: LGPL-3
|
|
7
7
|
Keywords: odoo,godoo,devcontainer
|
|
8
8
|
Author: Joshua Kreuder
|
|
9
9
|
Author-email: Joshua_Kreuder@outlook.com
|
|
10
|
-
Requires-Python: >=3.9
|
|
10
|
+
Requires-Python: >=3.9
|
|
11
11
|
Classifier: License :: Other/Proprietary License
|
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.9
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
17
|
Provides-Extra: codequality
|
|
17
18
|
Provides-Extra: devcontainer
|
|
18
|
-
Requires-Dist: black (>=22.10.0
|
|
19
|
-
Requires-Dist: debugpy (>=1.6.0
|
|
20
|
-
Requires-Dist: flake8 (>=5.0.4
|
|
21
|
-
Requires-Dist: gitpython (>=3.1.27
|
|
22
|
-
Requires-Dist: godoo-rpc (>=0.1.
|
|
23
|
-
Requires-Dist: inotify (>=0.2.10
|
|
24
|
-
Requires-Dist: ipdb (>=0.13.9
|
|
25
|
-
Requires-Dist: isort (>=5.10.1
|
|
26
|
-
Requires-Dist: mock (>=4.0.3
|
|
27
|
-
Requires-Dist: openupgradelib (>=3.3.4
|
|
28
|
-
Requires-Dist: passlib (>=1.7.3
|
|
29
|
-
Requires-Dist: psycopg2 (>=2.8.6
|
|
30
|
-
Requires-Dist: py-spy (>=0.3.11
|
|
31
|
-
Requires-Dist: pydevd-odoo (>=1.2.1
|
|
32
|
-
Requires-Dist: pylint-odoo (>=8.0.16
|
|
33
|
-
Requires-Dist: pytest (>=7.2.1
|
|
34
|
-
Requires-Dist: pytest-cov (>=4.0.0
|
|
35
|
-
Requires-Dist: python-dotenv (>=0.20.0
|
|
36
|
-
Requires-Dist: rope (>=0.23.0
|
|
37
|
-
Requires-Dist: ruamel-yaml (>=0.17.21
|
|
38
|
-
Requires-Dist: typer (>=0.9.0
|
|
39
|
-
Requires-Dist: typer-common-functions (>=0.0.
|
|
40
|
-
Requires-Dist: watchdog (>=2.1.7
|
|
19
|
+
Requires-Dist: black (>=22.10.0) ; extra == "codequality"
|
|
20
|
+
Requires-Dist: debugpy (>=1.6.0) ; extra == "devcontainer"
|
|
21
|
+
Requires-Dist: flake8 (>=5.0.4) ; extra == "codequality"
|
|
22
|
+
Requires-Dist: gitpython (>=3.1.27)
|
|
23
|
+
Requires-Dist: godoo-rpc (>=0.1.4)
|
|
24
|
+
Requires-Dist: inotify (>=0.2.10) ; extra == "devcontainer"
|
|
25
|
+
Requires-Dist: ipdb (>=0.13.9) ; extra == "devcontainer"
|
|
26
|
+
Requires-Dist: isort (>=5.10.1) ; extra == "codequality"
|
|
27
|
+
Requires-Dist: mock (>=4.0.3) ; extra == "devcontainer"
|
|
28
|
+
Requires-Dist: openupgradelib (>=3.3.4)
|
|
29
|
+
Requires-Dist: passlib (>=1.7.3)
|
|
30
|
+
Requires-Dist: psycopg2 (>=2.8.6)
|
|
31
|
+
Requires-Dist: py-spy (>=0.3.11) ; extra == "devcontainer"
|
|
32
|
+
Requires-Dist: pydevd-odoo (>=1.2.1) ; extra == "devcontainer"
|
|
33
|
+
Requires-Dist: pylint-odoo (>=8.0.16) ; extra == "codequality"
|
|
34
|
+
Requires-Dist: pytest (>=7.2.1) ; extra == "codequality"
|
|
35
|
+
Requires-Dist: pytest-cov (>=4.0.0) ; extra == "codequality"
|
|
36
|
+
Requires-Dist: python-dotenv (>=0.20.0)
|
|
37
|
+
Requires-Dist: rope (>=0.23.0) ; extra == "devcontainer"
|
|
38
|
+
Requires-Dist: ruamel-yaml (>=0.17.21)
|
|
39
|
+
Requires-Dist: typer (>=0.9.0)
|
|
40
|
+
Requires-Dist: typer-common-functions (>=0.0.12)
|
|
41
|
+
Requires-Dist: watchdog (>=2.1.7) ; extra == "devcontainer"
|
|
41
42
|
Project-URL: Repository, https://github.com/OpenJKSoftware/gOdoo
|
|
42
43
|
Description-Content-Type: text/markdown
|
|
43
44
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "gOdoo-cli"
|
|
3
|
-
version = "0.12.
|
|
3
|
+
version = "0.12.2"
|
|
4
4
|
description = "Wrapper around Odoo-Bin with some convinience RPC functions."
|
|
5
5
|
authors = ["Joshua Kreuder <Joshua_Kreuder@outlook.com>"]
|
|
6
6
|
license = "LGPL-3"
|
|
@@ -10,7 +10,7 @@ repository = "https://github.com/OpenJKSoftware/gOdoo"
|
|
|
10
10
|
keywords = ["odoo", "godoo","devcontainer"]
|
|
11
11
|
|
|
12
12
|
[tool.poetry.group.dev.dependencies]
|
|
13
|
-
pre-commit = "
|
|
13
|
+
pre-commit = ">=3.4.0"
|
|
14
14
|
|
|
15
15
|
[tool.poetry_bumpversion.file."src/godoo_cli/version.py"]
|
|
16
16
|
|
|
@@ -18,31 +18,31 @@ pre-commit = "^3.4.0"
|
|
|
18
18
|
godoo = "godoo_cli:launch_cli"
|
|
19
19
|
|
|
20
20
|
[tool.poetry.dependencies]
|
|
21
|
-
python = ">=3.9
|
|
22
|
-
python-dotenv = "
|
|
23
|
-
ruamel-yaml = "
|
|
24
|
-
gitpython = "
|
|
25
|
-
godoo-rpc = "
|
|
26
|
-
openupgradelib = "
|
|
27
|
-
psycopg2 = "
|
|
28
|
-
passlib = "
|
|
29
|
-
typer-common-functions = "
|
|
30
|
-
typer = "
|
|
31
|
-
|
|
32
|
-
pylint-odoo = { version="
|
|
33
|
-
ipdb = { version="
|
|
34
|
-
debugpy = { version="
|
|
35
|
-
black = { version="
|
|
36
|
-
isort = { version="
|
|
37
|
-
watchdog = { version="
|
|
38
|
-
py-spy = { version="
|
|
39
|
-
rope = { version="
|
|
40
|
-
flake8 = { version="
|
|
41
|
-
inotify = { version="
|
|
42
|
-
mock = { version="
|
|
43
|
-
pytest = { version="
|
|
44
|
-
pytest-cov = {version="
|
|
45
|
-
pydevd-odoo = { version="
|
|
21
|
+
python = ">=3.9"
|
|
22
|
+
python-dotenv = ">=0.20.0"
|
|
23
|
+
ruamel-yaml = ">=0.17.21"
|
|
24
|
+
gitpython = ">=3.1.27"
|
|
25
|
+
godoo-rpc = ">=0.1.4"
|
|
26
|
+
openupgradelib = ">=3.3.4"
|
|
27
|
+
psycopg2 = ">=2.8.6" # Mirror Odoo Reqs
|
|
28
|
+
passlib = ">=1.7.3" # Mirror Odoo Reqs
|
|
29
|
+
typer-common-functions = ">=0.0.12"
|
|
30
|
+
typer = ">=0.9.0"
|
|
31
|
+
|
|
32
|
+
pylint-odoo = { version=">=8.0.16", optional = true}
|
|
33
|
+
ipdb = { version=">=0.13.9", optional = true}
|
|
34
|
+
debugpy = { version=">=1.6.0", optional = true}
|
|
35
|
+
black = { version=">=22.10.0", optional = true}
|
|
36
|
+
isort = { version=">=5.10.1", optional = true}
|
|
37
|
+
watchdog = { version=">=2.1.7", optional = true}
|
|
38
|
+
py-spy = { version=">=0.3.11", optional = true}
|
|
39
|
+
rope = { version=">=0.23.0", optional = true}
|
|
40
|
+
flake8 = { version=">=5.0.4", optional = true}
|
|
41
|
+
inotify = { version=">=0.2.10",optional = true}
|
|
42
|
+
mock = { version=">=4.0.3", optional= true}
|
|
43
|
+
pytest = { version=">=7.2.1", optional= true}
|
|
44
|
+
pytest-cov = {version=">=4.0.0",optional=true}
|
|
45
|
+
pydevd-odoo = { version=">=1.2.1",optional=true}
|
|
46
46
|
|
|
47
47
|
[tool.poetry.extras]
|
|
48
48
|
devcontainer = [
|
|
@@ -75,7 +75,7 @@ log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(linen
|
|
|
75
75
|
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
|
|
76
76
|
|
|
77
77
|
[tool.pyright]
|
|
78
|
-
ignore="**/__manifest__.py"
|
|
78
|
+
ignore=["**/__manifest__.py"]
|
|
79
79
|
|
|
80
80
|
[tool.black]
|
|
81
81
|
line-length = 120
|
|
@@ -92,17 +92,19 @@ def odoo_shell_run_script(
|
|
|
92
92
|
if not script_path.exists():
|
|
93
93
|
LOGGER.error("Script '%s' not found in %s", script_name, script_folder)
|
|
94
94
|
return CLI.returner(1)
|
|
95
|
+
|
|
96
|
+
shell_cmd = f"{str(odoo_main_path.absolute())}/odoo-bin shell --no-http"
|
|
97
|
+
if odoo_conf_path.exists():
|
|
98
|
+
shell_cmd += f" -c {str(odoo_conf_path.absolute())}"
|
|
99
|
+
else:
|
|
100
|
+
LOGGER.warning("No Odoo Config File found at %s", odoo_conf_path)
|
|
101
|
+
if not all([db_host, db_port, db_name, db_user, db_password]):
|
|
102
|
+
LOGGER.error("Missing database options and Config File. Aborting.")
|
|
103
|
+
return CLI.returner(1)
|
|
104
|
+
shell_cmd += f" --db_host={db_host} --db_port={db_port} --database={db_name} --db_user={db_user} --db_password={db_password}"
|
|
105
|
+
|
|
95
106
|
LOGGER.info("Running Script: %s", script_path)
|
|
96
|
-
|
|
97
|
-
pipe_in_command=script_path.read_text(),
|
|
98
|
-
odoo_main_path=odoo_main_path,
|
|
99
|
-
odoo_conf_path=odoo_conf_path,
|
|
100
|
-
db_host=db_host,
|
|
101
|
-
db_port=db_port,
|
|
102
|
-
db_name=db_name,
|
|
103
|
-
db_user=db_user,
|
|
104
|
-
db_password=db_password,
|
|
105
|
-
)
|
|
107
|
+
run_cmd(shell_cmd, stdin=script_path.open("r"))
|
|
106
108
|
|
|
107
109
|
|
|
108
110
|
def odoo_pregenerate_assets(odoo_main_path: Path):
|
|
@@ -31,6 +31,7 @@ def odoo_load_test_data(
|
|
|
31
31
|
thirdparty_addon_path=CLI.odoo_paths.thirdparty_addon_path,
|
|
32
32
|
odoo_conf_path=CLI.odoo_paths.conf_path,
|
|
33
33
|
extra_launch_args=CLI.odoo_launch.extra_cmd_args,
|
|
34
|
+
extra_bootstrap_args=CLI.odoo_launch.extra_cmd_args_bootstrap,
|
|
34
35
|
db_filter=CLI.database.db_filter,
|
|
35
36
|
db_host=CLI.database.db_host,
|
|
36
37
|
db_port=CLI.database.db_port,
|
|
@@ -78,6 +79,8 @@ def odoo_load_test_data(
|
|
|
78
79
|
|
|
79
80
|
if extra_launch_args:
|
|
80
81
|
launch_args = extra_launch_args + launch_args
|
|
82
|
+
if extra_bootstrap_args:
|
|
83
|
+
bootstrap_args = extra_bootstrap_args + bootstrap_args
|
|
81
84
|
|
|
82
85
|
db_connection = DBConnection(
|
|
83
86
|
hostname=db_host,
|
|
@@ -136,7 +136,8 @@ def odoo_run_tests(
|
|
|
136
136
|
launch_or_bootstrap = True
|
|
137
137
|
bootstrap_args.append(f"--test-tags {test_module_list}")
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
if extra_bootstrap_args:
|
|
140
|
+
bootstrap_args = extra_bootstrap_args + bootstrap_args
|
|
140
141
|
|
|
141
142
|
db_connection = DBConnection(
|
|
142
143
|
hostname=db_host,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.12.2"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.12.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|