odoo-dev 0.2.0__tar.gz → 0.2.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.
- odoo_dev-0.2.2/.claude/settings.local.json +8 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/PKG-INFO +4 -1
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/pyproject.toml +6 -1
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/src/odoo_dev/__init__.py +1 -1
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/src/odoo_dev/cli.py +25 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/test_cli.py +15 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/uv.lock +1 -1
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/.gitignore +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/.gitmodules +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/.python-version +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/README.md +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/src/odoo_dev/commands/__init__.py +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/src/odoo_dev/commands/db.py +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/src/odoo_dev/commands/docker.py +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/src/odoo_dev/commands/run.py +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/src/odoo_dev/commands/setup.py +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/src/odoo_dev/config.py +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/src/odoo_dev/utils/__init__.py +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/src/odoo_dev/utils/console.py +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/__init__.py +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/__init__.py +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.git +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.gitignore +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.gitlab-ci.yml +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.gitmodules +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.odoo-deploy/.git +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.odoo-deploy/.gitignore +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.odoo-deploy/Dockerfile +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.odoo-deploy/Makefile +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.odoo-deploy/README.md +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.odoo-deploy/compose.yaml +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.odoo-deploy/docker-entrypoint.sh +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.odoo-deploy/install.sh +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.odoo-deploy/odoo-dev.sh +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.odoo-deploy/templates/odoo.conf +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.odoo-deploy/templates/vscode/launch.json +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.odoo-deploy/templates/vscode/settings.json +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.odoo-deploy/templates/vscode/tasks.json +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.odoo-deploy/uninstall.sh +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.repos/.gitkeep +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/Notes/Warning Upgrade all +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/README.md +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/addons/.gitkeep +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/note.txt +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/requirements.txt +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/tools/abstorelsymlink.sh +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/tools/adaptation.md +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/tools/after_migration.sh +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/tools/checkout2 +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/tools/cleanup.sql +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/tools/deploy +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/tools/fix_mail_templates.sql +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/tools/gitpull +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/tools/main.py +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/tools/modules_cleanup.sql +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/tools/post-upgrade steps.md +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/tools/pre_commit_hook.py +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/tools/requirements.txt +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/tools/test +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/tools/update_addon_versions.py +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/test_config.py +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/test_db.py +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/test_integration.py +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/test_run.py +0 -0
- {odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/test_setup.py +0 -0
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: odoo-dev
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Odoo Development Environment Helper
|
|
5
|
+
Project-URL: Homepage, https://git.bemade.org/bemade/odoo-dev
|
|
6
|
+
Project-URL: Repository, https://git.bemade.org/bemade/odoo-dev
|
|
7
|
+
Project-URL: Issues, https://git.bemade.org/bemade/odoo-dev/-/issues
|
|
5
8
|
Requires-Python: >=3.12
|
|
6
9
|
Requires-Dist: rich>=13.0.0
|
|
7
10
|
Requires-Dist: typer>=0.9.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "odoo-dev"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.2"
|
|
4
4
|
description = "Odoo Development Environment Helper"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
@@ -9,6 +9,11 @@ dependencies = [
|
|
|
9
9
|
"rich>=13.0.0",
|
|
10
10
|
]
|
|
11
11
|
|
|
12
|
+
[project.urls]
|
|
13
|
+
Homepage = "https://git.bemade.org/bemade/odoo-dev"
|
|
14
|
+
Repository = "https://git.bemade.org/bemade/odoo-dev"
|
|
15
|
+
Issues = "https://git.bemade.org/bemade/odoo-dev/-/issues"
|
|
16
|
+
|
|
12
17
|
[project.scripts]
|
|
13
18
|
odoo-dev = "odoo_dev.cli:app"
|
|
14
19
|
|
|
@@ -1,15 +1,40 @@
|
|
|
1
1
|
"""Main CLI entry point for odoo-dev."""
|
|
2
2
|
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
3
5
|
import typer
|
|
4
6
|
|
|
7
|
+
from odoo_dev import __version__
|
|
5
8
|
from odoo_dev.commands import db, docker, run, setup
|
|
6
9
|
|
|
10
|
+
|
|
11
|
+
def _version_callback(value: bool) -> None:
|
|
12
|
+
if value:
|
|
13
|
+
print(f"odoo-dev {__version__}")
|
|
14
|
+
raise typer.Exit()
|
|
15
|
+
|
|
16
|
+
|
|
7
17
|
app = typer.Typer(
|
|
8
18
|
name="odoo-dev",
|
|
9
19
|
help="Odoo Development Environment Helper",
|
|
10
20
|
no_args_is_help=True,
|
|
11
21
|
)
|
|
12
22
|
|
|
23
|
+
|
|
24
|
+
@app.callback()
|
|
25
|
+
def _main(
|
|
26
|
+
version: Optional[bool] = typer.Option(
|
|
27
|
+
None,
|
|
28
|
+
"--version",
|
|
29
|
+
"-v",
|
|
30
|
+
callback=_version_callback,
|
|
31
|
+
is_eager=True,
|
|
32
|
+
help="Show version and exit.",
|
|
33
|
+
),
|
|
34
|
+
) -> None:
|
|
35
|
+
"""Odoo Development Environment Helper."""
|
|
36
|
+
pass
|
|
37
|
+
|
|
13
38
|
# Command groups
|
|
14
39
|
app.add_typer(db.app, name="db")
|
|
15
40
|
app.add_typer(docker.app, name="docker")
|
|
@@ -2,11 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
from typer.testing import CliRunner
|
|
4
4
|
|
|
5
|
+
from odoo_dev import __version__
|
|
5
6
|
from odoo_dev.cli import app
|
|
6
7
|
|
|
7
8
|
runner = CliRunner()
|
|
8
9
|
|
|
9
10
|
|
|
11
|
+
class TestVersion:
|
|
12
|
+
"""Test version flag."""
|
|
13
|
+
|
|
14
|
+
def test_version_long(self):
|
|
15
|
+
result = runner.invoke(app, ["--version"])
|
|
16
|
+
assert result.exit_code == 0
|
|
17
|
+
assert __version__ in result.output
|
|
18
|
+
|
|
19
|
+
def test_version_short(self):
|
|
20
|
+
result = runner.invoke(app, ["-v"])
|
|
21
|
+
assert result.exit_code == 0
|
|
22
|
+
assert "odoo-dev" in result.output
|
|
23
|
+
|
|
24
|
+
|
|
10
25
|
class TestCliHelp:
|
|
11
26
|
"""Verify all commands respond to --help without crashing."""
|
|
12
27
|
|
|
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
|
{odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.odoo-deploy/docker-entrypoint.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.odoo-deploy/templates/odoo.conf
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{odoo_dev-0.2.0 → odoo_dev-0.2.2}/tests/fixtures/odoo-empty/.odoo-deploy/templates/vscode/tasks.json
RENAMED
|
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
|