A command-line tool to spin up isolated Odoo dev environment in seconds.
Project description
odoo-venv
A command-line tool to spin up isolated Odoo dev environment in seconds.
Installation
pip install odoo-venv
Quick Start
1. Direct CLI Arguments
Example:
odoo-venv create 17.0 \
--odoo-dir ~/code/odoo/odoo/17.0 \
--addons-path ~/code/odoo/addons/web,~/code/odoo/addons/mail \
--python-version 3.10 \
--install-addons-dirs-requirements \
--extra-requirement "debugpy,ipython"
This command creates a virtual environment for Odoo 17.0 with the following specifications:
- Odoo source is located at
~/code/odoo/odoo/17.0. - Additional addons are in
~/code/odoo/addons/weband~/code/odoo/addons/mail. - The environment uses Python 3.10.
- It installs dependencies from
requirements.txtfiles found in the addons paths. - It also installs
debugpyandipython.
2. Using Presets
The tool includes 4 built-in presets: local, demo, project, ci (see odoo_venv/assets/presets.toml)
Example:
odoo-venv create 17.0 \
--odoo-dir ~/code/odoo/odoo/17.0 \
--addons-path ~/code/odoo/addons/web,~/code/odoo/addons/mail \
--preset demo
This command will apply all the options from the demo preset. You can still override any preset option by providing a direct CLI argument. For example, to use a different extra_requirement for a specific run:
odoo-venv create 17.0 \
--odoo-dir ~/code/odoo/odoo/17.0 \
--addons-path ~/code/odoo/addons/web,~/code/odoo/addons/mail \
--preset demo \
--extra-requirement "pylint"
3. As a Library
The tool can also be used as lib in a custom python script
Example:
from odoo_venv import create_odoo_venv
create_odoo_venv(
odoo_version="17.0",
odoo_dir="~/code/odoo/odoo/17.0",
venv_dir="./.venv",
python_version="3.10",
addons_paths=["~/code/odoo/addons/web", "~/code/odoo/addons/mail"],
install_addons_dirs_requirements=True,
extra_requirements=["debugpy", "ipython"],
)
Development
To test with a clean state (no cached packages):
uv cache clean --force
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_venv-1.17.0.tar.gz.
File metadata
- Download URL: odoo_venv-1.17.0.tar.gz
- Upload date:
- Size: 41.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adc7410c0c6fe0e75be97b2bcfb7a33b9179fcfd620dcae474038cf063be0496
|
|
| MD5 |
5786b1254905418f8d7b4fa148869910
|
|
| BLAKE2b-256 |
f4f886e5780722aee373dc8f3a9833e0b28fbe4d13b2d35417f2a78a1d775106
|
Provenance
The following attestation bundles were made for odoo_venv-1.17.0.tar.gz:
Publisher:
release.yaml on trobz/odoo-venv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
odoo_venv-1.17.0.tar.gz -
Subject digest:
adc7410c0c6fe0e75be97b2bcfb7a33b9179fcfd620dcae474038cf063be0496 - Sigstore transparency entry: 1250488159
- Sigstore integration time:
-
Permalink:
trobz/odoo-venv@d656e543dd89d3f72527d48218707e2b02fca75f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/trobz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@d656e543dd89d3f72527d48218707e2b02fca75f -
Trigger Event:
push
-
Statement type:
File details
Details for the file odoo_venv-1.17.0-py3-none-any.whl.
File metadata
- Download URL: odoo_venv-1.17.0-py3-none-any.whl
- Upload date:
- Size: 44.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1a3db61799059e2429a38ed39cd5ce9ed550a4bd43d6adfeb5c276c2fc06e1d
|
|
| MD5 |
10cf7af8f7502c38bc2dfdfe0880398e
|
|
| BLAKE2b-256 |
ac6048f8a5ae0bafd1c94d5f49b2a2d57c0261e7232307276507d31b1aefbc1a
|
Provenance
The following attestation bundles were made for odoo_venv-1.17.0-py3-none-any.whl:
Publisher:
release.yaml on trobz/odoo-venv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
odoo_venv-1.17.0-py3-none-any.whl -
Subject digest:
d1a3db61799059e2429a38ed39cd5ce9ed550a4bd43d6adfeb5c276c2fc06e1d - Sigstore transparency entry: 1250488195
- Sigstore integration time:
-
Permalink:
trobz/odoo-venv@d656e543dd89d3f72527d48218707e2b02fca75f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/trobz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@d656e543dd89d3f72527d48218707e2b02fca75f -
Trigger Event:
push
-
Statement type: