odoo-devops-tools 1.23.1__tar.gz → 1.23.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_devops_tools-1.23.1 → odoo_devops_tools-1.23.2}/PKG-INFO +5 -5
- {odoo_devops_tools-1.23.1 → odoo_devops_tools-1.23.2}/README.md +4 -4
- odoo_devops_tools-1.23.2/odoo_devops_tools/__init__.py +1 -0
- {odoo_devops_tools-1.23.1 → odoo_devops_tools-1.23.2}/odoo_devops_tools/env.py +12 -10
- {odoo_devops_tools-1.23.1 → odoo_devops_tools-1.23.2}/odoo_devops_tools.egg-info/PKG-INFO +5 -5
- {odoo_devops_tools-1.23.1 → odoo_devops_tools-1.23.2}/pyproject.toml +1 -1
- odoo_devops_tools-1.23.1/odoo_devops_tools/__init__.py +0 -1
- {odoo_devops_tools-1.23.1 → odoo_devops_tools-1.23.2}/LICENSE +0 -0
- {odoo_devops_tools-1.23.1 → odoo_devops_tools-1.23.2}/odoo_devops_tools.egg-info/SOURCES.txt +0 -0
- {odoo_devops_tools-1.23.1 → odoo_devops_tools-1.23.2}/odoo_devops_tools.egg-info/dependency_links.txt +0 -0
- {odoo_devops_tools-1.23.1 → odoo_devops_tools-1.23.2}/odoo_devops_tools.egg-info/entry_points.txt +0 -0
- {odoo_devops_tools-1.23.1 → odoo_devops_tools-1.23.2}/odoo_devops_tools.egg-info/top_level.txt +0 -0
- {odoo_devops_tools-1.23.1 → odoo_devops_tools-1.23.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: odoo-devops-tools
|
|
3
|
-
Version: 1.23.
|
|
3
|
+
Version: 1.23.2
|
|
4
4
|
Summary: Build reproducible Odoo workspaces from a single project definition.
|
|
5
5
|
Author: Roman Lacko
|
|
6
6
|
License-Expression: MIT
|
|
@@ -120,7 +120,7 @@ Choose the workflow that fits your environment. Both use the same `odoo-project.
|
|
|
120
120
|
Create a new workspace:
|
|
121
121
|
|
|
122
122
|
```bash
|
|
123
|
-
odoo-compose --init
|
|
123
|
+
odoo-compose --init ./odoo19
|
|
124
124
|
```
|
|
125
125
|
|
|
126
126
|
Start the Docker Compose environment:
|
|
@@ -514,7 +514,7 @@ In this workflow, Odoo runs directly on the host using a generated Python virtua
|
|
|
514
514
|
Create the workspace with the Odoo source and virtual environment:
|
|
515
515
|
|
|
516
516
|
```bash
|
|
517
|
-
odoo-compose --init
|
|
517
|
+
odoo-compose --init ./odoo19 --sync-all --create-venv \
|
|
518
518
|
--set config:db_host=127.0.0.1 \
|
|
519
519
|
--set config:db_name=odoo \
|
|
520
520
|
--set config:db_user=odoo \
|
|
@@ -952,7 +952,7 @@ The merged project file is saved as `ROOT/odoo-project.ini`, replacing any exist
|
|
|
952
952
|
### Paths and outputs
|
|
953
953
|
|
|
954
954
|
- `--root ROOT` — workspace root directory. Default: the directory containing a local INI file, or the current working directory for a remote INI or omitted INI. In include mode, the default is the directory of the first local source, or the current working directory when the first source is remote.
|
|
955
|
-
- `--init
|
|
955
|
+
- `--init [ROOT]` — create `ROOT/odoo-project.ini` from the bundled default template if it does not already exist. `ROOT` is optional; when supplied, it is a shorthand for selecting the workspace root directly, for example `odoo-compose --init ./odoo19`. When the optional value is omitted, `--root ROOT` remains supported for backward compatibility. Do not supply both `--init ROOT` and `--root ROOT`; the command exits with an error instead of choosing one implicitly. This option is valid only when `INI` is omitted and no `-i/--include` is provided. Existing project files are not overwritten.
|
|
956
956
|
- `--include INI`, `-i INI` — include an additional project INI layer; can be repeated. Later layers override earlier layers.
|
|
957
957
|
- `--extra-var KEY=VALUE`, `-e KEY=VALUE` — override or inject a value in the optional `[vars]` section; can be repeated.
|
|
958
958
|
- `--set SECTION:KEY=VALUE`, `-S SECTION:KEY=VALUE` — set or override a supported project option; can be repeated. Missing supported sections/options are created automatically. Structured sections (`[virtualenv]`, `[odoo]`, `[addons.<name>]`, and `[docker]`) accept only documented keys; `[config]` remains open to standard Odoo configuration options except `addons_path`.
|
|
@@ -1023,7 +1023,7 @@ The following sections are supported:
|
|
|
1023
1023
|
|
|
1024
1024
|
### General rules
|
|
1025
1025
|
|
|
1026
|
-
- The project file can have any filename when passed explicitly. When `INI` is omitted, `odoo-compose` uses the existing `ROOT/odoo-project.ini`; if it is missing, use `--init
|
|
1026
|
+
- The project file can have any filename when passed explicitly. When `INI` is omitted, `odoo-compose` uses the existing `ROOT/odoo-project.ini`; if it is missing, use `--init` to create it explicitly from the bundled default template. Remote INI sources and merged include layers are materialized as `ROOT/odoo-project.ini`.
|
|
1027
1027
|
- INI interpolation is supported, so values such as `${odoo:version}` can be reused across sections.
|
|
1028
1028
|
- Multiple INI layers can be composed with `-i/--include`. Later layers override earlier layers; multi-line values are replaced as whole option values, not appended.
|
|
1029
1029
|
- The optional `[vars]` section is useful for reusable values referenced as `${vars:name}`.
|
|
@@ -92,7 +92,7 @@ Choose the workflow that fits your environment. Both use the same `odoo-project.
|
|
|
92
92
|
Create a new workspace:
|
|
93
93
|
|
|
94
94
|
```bash
|
|
95
|
-
odoo-compose --init
|
|
95
|
+
odoo-compose --init ./odoo19
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
Start the Docker Compose environment:
|
|
@@ -486,7 +486,7 @@ In this workflow, Odoo runs directly on the host using a generated Python virtua
|
|
|
486
486
|
Create the workspace with the Odoo source and virtual environment:
|
|
487
487
|
|
|
488
488
|
```bash
|
|
489
|
-
odoo-compose --init
|
|
489
|
+
odoo-compose --init ./odoo19 --sync-all --create-venv \
|
|
490
490
|
--set config:db_host=127.0.0.1 \
|
|
491
491
|
--set config:db_name=odoo \
|
|
492
492
|
--set config:db_user=odoo \
|
|
@@ -924,7 +924,7 @@ The merged project file is saved as `ROOT/odoo-project.ini`, replacing any exist
|
|
|
924
924
|
### Paths and outputs
|
|
925
925
|
|
|
926
926
|
- `--root ROOT` — workspace root directory. Default: the directory containing a local INI file, or the current working directory for a remote INI or omitted INI. In include mode, the default is the directory of the first local source, or the current working directory when the first source is remote.
|
|
927
|
-
- `--init
|
|
927
|
+
- `--init [ROOT]` — create `ROOT/odoo-project.ini` from the bundled default template if it does not already exist. `ROOT` is optional; when supplied, it is a shorthand for selecting the workspace root directly, for example `odoo-compose --init ./odoo19`. When the optional value is omitted, `--root ROOT` remains supported for backward compatibility. Do not supply both `--init ROOT` and `--root ROOT`; the command exits with an error instead of choosing one implicitly. This option is valid only when `INI` is omitted and no `-i/--include` is provided. Existing project files are not overwritten.
|
|
928
928
|
- `--include INI`, `-i INI` — include an additional project INI layer; can be repeated. Later layers override earlier layers.
|
|
929
929
|
- `--extra-var KEY=VALUE`, `-e KEY=VALUE` — override or inject a value in the optional `[vars]` section; can be repeated.
|
|
930
930
|
- `--set SECTION:KEY=VALUE`, `-S SECTION:KEY=VALUE` — set or override a supported project option; can be repeated. Missing supported sections/options are created automatically. Structured sections (`[virtualenv]`, `[odoo]`, `[addons.<name>]`, and `[docker]`) accept only documented keys; `[config]` remains open to standard Odoo configuration options except `addons_path`.
|
|
@@ -995,7 +995,7 @@ The following sections are supported:
|
|
|
995
995
|
|
|
996
996
|
### General rules
|
|
997
997
|
|
|
998
|
-
- The project file can have any filename when passed explicitly. When `INI` is omitted, `odoo-compose` uses the existing `ROOT/odoo-project.ini`; if it is missing, use `--init
|
|
998
|
+
- The project file can have any filename when passed explicitly. When `INI` is omitted, `odoo-compose` uses the existing `ROOT/odoo-project.ini`; if it is missing, use `--init` to create it explicitly from the bundled default template. Remote INI sources and merged include layers are materialized as `ROOT/odoo-project.ini`.
|
|
999
999
|
- INI interpolation is supported, so values such as `${odoo:version}` can be reused across sections.
|
|
1000
1000
|
- Multiple INI layers can be composed with `-i/--include`. Later layers override earlier layers; multi-line values are replaced as whole option values, not appended.
|
|
1001
1001
|
- The optional `[vars]` section is useful for reusable values referenced as `${vars:name}`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.23.2"
|
|
@@ -6247,11 +6247,11 @@ def build_parser() -> argparse.ArgumentParser:
|
|
|
6247
6247
|
Examples:
|
|
6248
6248
|
|
|
6249
6249
|
Creating a workspace:
|
|
6250
|
-
odoo-compose --init
|
|
6250
|
+
odoo-compose --init ./odoo18-workspace --sync-all --create-venv \\
|
|
6251
6251
|
--set odoo:version=18.0
|
|
6252
6252
|
|
|
6253
6253
|
Creating a workspace with explicit database settings:
|
|
6254
|
-
odoo-compose --init
|
|
6254
|
+
odoo-compose --init ./odoo18-workspace --sync-all --create-venv \\
|
|
6255
6255
|
--set odoo:version=18.0 \\
|
|
6256
6256
|
--set config:db_host=127.0.0.1 \\
|
|
6257
6257
|
--set config:db_name=odoo \\
|
|
@@ -6268,7 +6268,7 @@ Examples:
|
|
|
6268
6268
|
odoo-compose git+https://github.com/lck/odoo-devops-tools.git//examples/odoo18-minimal.ini?ref=main --sync-all --create-venv
|
|
6269
6269
|
|
|
6270
6270
|
Preparing local Docker development:
|
|
6271
|
-
odoo-compose --init
|
|
6271
|
+
odoo-compose --init ./odoo19 --sync-addons
|
|
6272
6272
|
|
|
6273
6273
|
Generating a deploy Docker build context:
|
|
6274
6274
|
odoo-compose /path/to/odoo-project.ini --sync-addons --create-docker-deploy
|
|
@@ -6336,7 +6336,9 @@ Examples:
|
|
|
6336
6336
|
)
|
|
6337
6337
|
|
|
6338
6338
|
parser.add_argument(
|
|
6339
|
+
"--init",
|
|
6339
6340
|
"--init-project",
|
|
6341
|
+
dest="init_project",
|
|
6340
6342
|
nargs="?",
|
|
6341
6343
|
const="",
|
|
6342
6344
|
default=None,
|
|
@@ -6345,7 +6347,7 @@ Examples:
|
|
|
6345
6347
|
"Create ROOT/odoo-project.ini from the bundled default template if it does not already exist. "
|
|
6346
6348
|
"An optional ROOT can be supplied directly as shorthand for --root. "
|
|
6347
6349
|
"If ROOT is supplied here, --root must not also be used. "
|
|
6348
|
-
"Without --init
|
|
6350
|
+
"Without --init, an existing ROOT/odoo-project.ini is required."
|
|
6349
6351
|
),
|
|
6350
6352
|
)
|
|
6351
6353
|
|
|
@@ -6592,12 +6594,12 @@ def main() -> None:
|
|
|
6592
6594
|
|
|
6593
6595
|
if init_project_root_raw and args.root:
|
|
6594
6596
|
parser.error(
|
|
6595
|
-
"workspace ROOT was specified both as --init
|
|
6597
|
+
"workspace ROOT was specified both as --init ROOT and --root; "
|
|
6596
6598
|
"use only one of them."
|
|
6597
6599
|
)
|
|
6598
6600
|
|
|
6599
6601
|
if bool(getattr(args, 'show_last_run', False)) and init_project:
|
|
6600
|
-
parser.error("--init
|
|
6602
|
+
parser.error("--init cannot be used together with --show-last-run.")
|
|
6601
6603
|
if bool(getattr(args, 'show_last_run', False)) and getattr(args, 'create_from_bundle', None):
|
|
6602
6604
|
parser.error("--create-from-bundle cannot be used together with --show-last-run.")
|
|
6603
6605
|
if bool(getattr(args, 'show_last_run', False)) and getattr(args, 'create_bundle', None) is not None:
|
|
@@ -6656,7 +6658,7 @@ def main() -> None:
|
|
|
6656
6658
|
if getattr(args, 'include_inis', None):
|
|
6657
6659
|
conflicting_options.append("--include")
|
|
6658
6660
|
if init_project:
|
|
6659
|
-
conflicting_options.append("--init
|
|
6661
|
+
conflicting_options.append("--init")
|
|
6660
6662
|
if args.all or args.odoo or args.addons:
|
|
6661
6663
|
conflicting_options.append("--sync-*")
|
|
6662
6664
|
if bool(getattr(args, 'create_venv', False)) or create_venv_from_wheelhouse:
|
|
@@ -6737,14 +6739,14 @@ def main() -> None:
|
|
|
6737
6739
|
project_ini_status: Optional[str] = None
|
|
6738
6740
|
|
|
6739
6741
|
if init_project and not implicit_ini:
|
|
6740
|
-
parser.error("--init
|
|
6742
|
+
parser.error("--init can only be used when INI is omitted and no -i/--include is provided.")
|
|
6741
6743
|
|
|
6742
6744
|
if implicit_ini:
|
|
6743
6745
|
if init_project_root_raw:
|
|
6744
6746
|
root_override = _validate_root_override(
|
|
6745
6747
|
parser,
|
|
6746
6748
|
init_project_root_raw,
|
|
6747
|
-
option_name="--init
|
|
6749
|
+
option_name="--init ROOT",
|
|
6748
6750
|
)
|
|
6749
6751
|
elif args.root:
|
|
6750
6752
|
root_override = _validate_root_override(parser, args.root)
|
|
@@ -6781,7 +6783,7 @@ def main() -> None:
|
|
|
6781
6783
|
project_ini_status = f"used existing ROOT/{_DEFAULT_PROJECT_INI_NAME}"
|
|
6782
6784
|
_logger.info("Project INI already exists, leaving it in place: %s", ini_path)
|
|
6783
6785
|
elif not ini_path.is_file():
|
|
6784
|
-
suggested_cmd = ["odoo-compose", "--init
|
|
6786
|
+
suggested_cmd = ["odoo-compose", "--init"]
|
|
6785
6787
|
if args.root:
|
|
6786
6788
|
suggested_cmd.append(str(root_override))
|
|
6787
6789
|
parser.error(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: odoo-devops-tools
|
|
3
|
-
Version: 1.23.
|
|
3
|
+
Version: 1.23.2
|
|
4
4
|
Summary: Build reproducible Odoo workspaces from a single project definition.
|
|
5
5
|
Author: Roman Lacko
|
|
6
6
|
License-Expression: MIT
|
|
@@ -120,7 +120,7 @@ Choose the workflow that fits your environment. Both use the same `odoo-project.
|
|
|
120
120
|
Create a new workspace:
|
|
121
121
|
|
|
122
122
|
```bash
|
|
123
|
-
odoo-compose --init
|
|
123
|
+
odoo-compose --init ./odoo19
|
|
124
124
|
```
|
|
125
125
|
|
|
126
126
|
Start the Docker Compose environment:
|
|
@@ -514,7 +514,7 @@ In this workflow, Odoo runs directly on the host using a generated Python virtua
|
|
|
514
514
|
Create the workspace with the Odoo source and virtual environment:
|
|
515
515
|
|
|
516
516
|
```bash
|
|
517
|
-
odoo-compose --init
|
|
517
|
+
odoo-compose --init ./odoo19 --sync-all --create-venv \
|
|
518
518
|
--set config:db_host=127.0.0.1 \
|
|
519
519
|
--set config:db_name=odoo \
|
|
520
520
|
--set config:db_user=odoo \
|
|
@@ -952,7 +952,7 @@ The merged project file is saved as `ROOT/odoo-project.ini`, replacing any exist
|
|
|
952
952
|
### Paths and outputs
|
|
953
953
|
|
|
954
954
|
- `--root ROOT` — workspace root directory. Default: the directory containing a local INI file, or the current working directory for a remote INI or omitted INI. In include mode, the default is the directory of the first local source, or the current working directory when the first source is remote.
|
|
955
|
-
- `--init
|
|
955
|
+
- `--init [ROOT]` — create `ROOT/odoo-project.ini` from the bundled default template if it does not already exist. `ROOT` is optional; when supplied, it is a shorthand for selecting the workspace root directly, for example `odoo-compose --init ./odoo19`. When the optional value is omitted, `--root ROOT` remains supported for backward compatibility. Do not supply both `--init ROOT` and `--root ROOT`; the command exits with an error instead of choosing one implicitly. This option is valid only when `INI` is omitted and no `-i/--include` is provided. Existing project files are not overwritten.
|
|
956
956
|
- `--include INI`, `-i INI` — include an additional project INI layer; can be repeated. Later layers override earlier layers.
|
|
957
957
|
- `--extra-var KEY=VALUE`, `-e KEY=VALUE` — override or inject a value in the optional `[vars]` section; can be repeated.
|
|
958
958
|
- `--set SECTION:KEY=VALUE`, `-S SECTION:KEY=VALUE` — set or override a supported project option; can be repeated. Missing supported sections/options are created automatically. Structured sections (`[virtualenv]`, `[odoo]`, `[addons.<name>]`, and `[docker]`) accept only documented keys; `[config]` remains open to standard Odoo configuration options except `addons_path`.
|
|
@@ -1023,7 +1023,7 @@ The following sections are supported:
|
|
|
1023
1023
|
|
|
1024
1024
|
### General rules
|
|
1025
1025
|
|
|
1026
|
-
- The project file can have any filename when passed explicitly. When `INI` is omitted, `odoo-compose` uses the existing `ROOT/odoo-project.ini`; if it is missing, use `--init
|
|
1026
|
+
- The project file can have any filename when passed explicitly. When `INI` is omitted, `odoo-compose` uses the existing `ROOT/odoo-project.ini`; if it is missing, use `--init` to create it explicitly from the bundled default template. Remote INI sources and merged include layers are materialized as `ROOT/odoo-project.ini`.
|
|
1027
1027
|
- INI interpolation is supported, so values such as `${odoo:version}` can be reused across sections.
|
|
1028
1028
|
- Multiple INI layers can be composed with `-i/--include`. Later layers override earlier layers; multi-line values are replaced as whole option values, not appended.
|
|
1029
1029
|
- The optional `[vars]` section is useful for reusable values referenced as `${vars:name}`.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.23.1"
|
|
File without changes
|
{odoo_devops_tools-1.23.1 → odoo_devops_tools-1.23.2}/odoo_devops_tools.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{odoo_devops_tools-1.23.1 → odoo_devops_tools-1.23.2}/odoo_devops_tools.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{odoo_devops_tools-1.23.1 → odoo_devops_tools-1.23.2}/odoo_devops_tools.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|