odoo-deploy 0.1.0__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_deploy-0.1.0/.forgejo/workflows/publish.yml +44 -0
- odoo_deploy-0.1.0/.gitignore +34 -0
- odoo_deploy-0.1.0/CHANGELOG.md +27 -0
- odoo_deploy-0.1.0/LICENSE +661 -0
- odoo_deploy-0.1.0/PKG-INFO +109 -0
- odoo_deploy-0.1.0/README.md +80 -0
- odoo_deploy-0.1.0/bin/_link-addons +172 -0
- odoo_deploy-0.1.0/bin/build +293 -0
- odoo_deploy-0.1.0/bin/install +58 -0
- odoo_deploy-0.1.0/bin/run +39 -0
- odoo_deploy-0.1.0/bin/start +37 -0
- odoo_deploy-0.1.0/bin/status +34 -0
- odoo_deploy-0.1.0/bin/stop +32 -0
- odoo_deploy-0.1.0/bin/test +38 -0
- odoo_deploy-0.1.0/bin/update +57 -0
- odoo_deploy-0.1.0/bootstrap.sh +136 -0
- odoo_deploy-0.1.0/catalog/17.0.yaml +15 -0
- odoo_deploy-0.1.0/catalog/18.0.yaml +15 -0
- odoo_deploy-0.1.0/catalog/19.0.yaml +18 -0
- odoo_deploy-0.1.0/catalog/20.0.yaml +18 -0
- odoo_deploy-0.1.0/docs/architecture/README.md +107 -0
- odoo_deploy-0.1.0/docs/architecture/architecture.pdf +0 -0
- odoo_deploy-0.1.0/docs/architecture/deployment-flow.dsl +214 -0
- odoo_deploy-0.1.0/docs/architecture/diagrams.md +330 -0
- odoo_deploy-0.1.0/docs/architecture/generate-diagrams.sh +229 -0
- odoo_deploy-0.1.0/docs/architecture/workspace.dsl +271 -0
- odoo_deploy-0.1.0/docs/cli-design.md +383 -0
- odoo_deploy-0.1.0/docs/global-design.md +198 -0
- odoo_deploy-0.1.0/docs/manual/00-introduction.md +90 -0
- odoo_deploy-0.1.0/docs/manual/01-overview.md +140 -0
- odoo_deploy-0.1.0/docs/manual/02-install-and-first-project.md +213 -0
- odoo_deploy-0.1.0/docs/manual/README.md +39 -0
- odoo_deploy-0.1.0/docs/manual/build-html.sh +44 -0
- odoo_deploy-0.1.0/docs/manual/build-pdf.sh +45 -0
- odoo_deploy-0.1.0/docs/manual/housestyle.css +135 -0
- odoo_deploy-0.1.0/docs/manual/img/logo.png +0 -0
- odoo_deploy-0.1.0/docs/runbooks/install-with-docker-or-podman-compose.md +120 -0
- odoo_deploy-0.1.0/pyproject.toml +90 -0
- odoo_deploy-0.1.0/python-version +1 -0
- odoo_deploy-0.1.0/repos.yaml +158 -0
- odoo_deploy-0.1.0/requirements.txt +6 -0
- odoo_deploy-0.1.0/scripts/completions/odoo-deploy.bash +314 -0
- odoo_deploy-0.1.0/src/odoo_deploy/__init__.py +18 -0
- odoo_deploy-0.1.0/src/odoo_deploy/actions.py +332 -0
- odoo_deploy-0.1.0/src/odoo_deploy/aggregate.py +1140 -0
- odoo_deploy-0.1.0/src/odoo_deploy/builders/__init__.py +33 -0
- odoo_deploy-0.1.0/src/odoo_deploy/builders/base.py +348 -0
- odoo_deploy-0.1.0/src/odoo_deploy/builders/docker.py +84 -0
- odoo_deploy-0.1.0/src/odoo_deploy/builders/podman.py +86 -0
- odoo_deploy-0.1.0/src/odoo_deploy/builders/zip.py +109 -0
- odoo_deploy-0.1.0/src/odoo_deploy/catalog.py +164 -0
- odoo_deploy-0.1.0/src/odoo_deploy/cli.py +840 -0
- odoo_deploy-0.1.0/src/odoo_deploy/config.py +148 -0
- odoo_deploy-0.1.0/src/odoo_deploy/deploy_assets.py +67 -0
- odoo_deploy-0.1.0/src/odoo_deploy/dev_requirements.py +183 -0
- odoo_deploy-0.1.0/src/odoo_deploy/init_project.py +660 -0
- odoo_deploy-0.1.0/src/odoo_deploy/ops.py +543 -0
- odoo_deploy-0.1.0/src/odoo_deploy/templates/deploy/.env.prod.example +72 -0
- odoo_deploy-0.1.0/src/odoo_deploy/templates/deploy/.env.staging.example +36 -0
- odoo_deploy-0.1.0/src/odoo_deploy/templates/deploy/bootstrap-instance.sh +341 -0
- odoo_deploy-0.1.0/src/odoo_deploy/templates/deploy/install-docker.sh +9 -0
- odoo_deploy-0.1.0/src/odoo_deploy/templates/deploy/install-podman.sh +10 -0
- odoo_deploy-0.1.0/src/odoo_deploy/templates/deploy/prod.yaml +139 -0
- odoo_deploy-0.1.0/src/odoo_deploy/templates/deploy/staging.yaml +90 -0
- odoo_deploy-0.1.0/src/odoo_deploy/templates/docker/Dockerfile +121 -0
- odoo_deploy-0.1.0/src/odoo_deploy/templates/docker/docker-bake.hcl +28 -0
- odoo_deploy-0.1.0/src/odoo_deploy/templates/docker/entrypoint.py +96 -0
- odoo_deploy-0.1.0/src/odoo_deploy/templates/zip/install.sh +41 -0
- odoo_deploy-0.1.0/src/odoo_deploy/templates/zip/odoo.service +17 -0
- odoo_deploy-0.1.0/src/odoo_deploy/venv.py +419 -0
- odoo_deploy-0.1.0/tests/test_aggregate.py +467 -0
- odoo_deploy-0.1.0/tests/test_builders.py +140 -0
- odoo_deploy-0.1.0/tests/test_dev_requirements.py +95 -0
- odoo_deploy-0.1.0/tests/test_init.py +139 -0
- odoo_deploy-0.1.0/tests/test_ops.py +261 -0
- odoo_deploy-0.1.0/tests/test_staging_container_context.py +274 -0
- odoo_deploy-0.1.0/tests/test_sync.py +383 -0
- odoo_deploy-0.1.0/tests/test_venv.py +247 -0
- odoo_deploy-0.1.0/uv.lock +287 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Publish odoo-deploy to PyPI when a release tag v* is pushed (or manually).
|
|
2
|
+
#
|
|
3
|
+
# Setup:
|
|
4
|
+
# 1. Create a project-scoped API token on https://pypi.org/manage/account/#api-tokens
|
|
5
|
+
# (scope: the odoo-deploy project, once it exists — create it with a first
|
|
6
|
+
# manual upload, or use a user-scoped token for the first upload).
|
|
7
|
+
# 2. Store it as a Forgejo secret named PYPI_API_TOKEN:
|
|
8
|
+
# repo Settings -> Actions -> Secrets -> New secret -> PYPI_API_TOKEN = pypi-...
|
|
9
|
+
# (TestPyPI first: same flow with a test.pypi.org token in TEST_PYPI_API_TOKEN
|
|
10
|
+
# and `twine upload --repository-url https://test.pypi.org/legacy/`.)
|
|
11
|
+
#
|
|
12
|
+
# For Forgejo versions with OIDC support you can instead use PyPI "trusted
|
|
13
|
+
# publishing" (no long-lived token): configure the publisher on PyPI for
|
|
14
|
+
# repository OpenEyeDev/odoo-deploy, workflow .forgejo/workflows/publish.yml,
|
|
15
|
+
# environment pypi, and replace the token step below with `id-token: write`.
|
|
16
|
+
|
|
17
|
+
name: publish
|
|
18
|
+
|
|
19
|
+
on:
|
|
20
|
+
push:
|
|
21
|
+
tags:
|
|
22
|
+
- "v*"
|
|
23
|
+
workflow_dispatch:
|
|
24
|
+
|
|
25
|
+
permissions: {}
|
|
26
|
+
|
|
27
|
+
jobs:
|
|
28
|
+
build:
|
|
29
|
+
runs-on: ubuntu-latest
|
|
30
|
+
steps:
|
|
31
|
+
- uses: actions/checkout@v4
|
|
32
|
+
with:
|
|
33
|
+
fetch-depth: 0
|
|
34
|
+
- uses: actions/setup-python@v5
|
|
35
|
+
with:
|
|
36
|
+
python-version: "3.12"
|
|
37
|
+
- run: python -m pip install --upgrade build twine
|
|
38
|
+
- run: python -m build
|
|
39
|
+
- run: python -m twine check dist/*
|
|
40
|
+
- name: upload to PyPI
|
|
41
|
+
env:
|
|
42
|
+
TWINE_USERNAME: __token__
|
|
43
|
+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
|
44
|
+
run: python -m twine upload dist/*
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Build artefacts (generated by `odoo-deploy aggregate` or legacy `bin/build`):
|
|
2
|
+
parts/
|
|
3
|
+
addons/
|
|
4
|
+
.venv/
|
|
5
|
+
logs/
|
|
6
|
+
etc/odoo.conf
|
|
7
|
+
|
|
8
|
+
# Local cache rewriting (generated by `bin/build` or `odoo-deploy aggregate`):
|
|
9
|
+
repos.local.yaml
|
|
10
|
+
|
|
11
|
+
# Python:
|
|
12
|
+
__pycache__/
|
|
13
|
+
*.pyc
|
|
14
|
+
|
|
15
|
+
# Package build artefacts:
|
|
16
|
+
dist/
|
|
17
|
+
build/
|
|
18
|
+
src/odoo_deploy.egg-info/
|
|
19
|
+
*.egg-info/
|
|
20
|
+
|
|
21
|
+
# Editor / IDE:
|
|
22
|
+
.vscode/
|
|
23
|
+
.idea/
|
|
24
|
+
|
|
25
|
+
# Generated C4 diagram renders — regenerate with
|
|
26
|
+
# docs/architecture/generate-diagrams.sh. Only diagrams.md (mermaid blocks)
|
|
27
|
+
# and architecture.pdf are committed; everything under diagrams/ is ignored:
|
|
28
|
+
docs/architecture/diagrams/
|
|
29
|
+
|
|
30
|
+
# Generated manual builds — regenerate with docs/manual/build-html.sh and
|
|
31
|
+
# docs/manual/build-pdf.sh; only the NN-*.md chapters are committed:
|
|
32
|
+
docs/manual/manual.md
|
|
33
|
+
docs/manual/manual.html
|
|
34
|
+
docs/manual/manual.pdf
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `odoo-deploy` are documented here. Versions follow
|
|
4
|
+
semantic versioning; the PyPI release name is `v<version>`.
|
|
5
|
+
|
|
6
|
+
## 0.1.0 — 2026-11-24
|
|
7
|
+
|
|
8
|
+
Initial public release.
|
|
9
|
+
|
|
10
|
+
- `odoo-deploy init` / `sync` — create / reconcile a project repository
|
|
11
|
+
(`project.yaml`, `repos.yaml`, stubs, `deploy/`), initial branch
|
|
12
|
+
`deploy-<odoo-version>`.
|
|
13
|
+
- `odoo-deploy aggregate` — aggregate sources (`parts/`), link modules
|
|
14
|
+
(`addons/`), build the venv, install layered requirements, write
|
|
15
|
+
`etc/odoo.conf`.
|
|
16
|
+
- Action subcommands `run`/`start`/`stop`/`status`/`test`/`update`/`install`
|
|
17
|
+
for the dev instance.
|
|
18
|
+
- `odoo-deploy build zip|docker|podman` — deployment artifacts. Container
|
|
19
|
+
images are environment-agnostic, tagged with the ISO build date by default
|
|
20
|
+
(`--tag` for a custom tag, plus `:latest`); staging/prod differ only in the
|
|
21
|
+
compose configuration (`deploy/<env>.yaml` + `.env`).
|
|
22
|
+
- Project-ops: `up`/`down`/`restart`/`logs`/`ps`/`compose`, `db …`,
|
|
23
|
+
`module …`, `lint`, `info`.
|
|
24
|
+
- `odoo-deploy install-dev-requirements` — sudo installer for the developer
|
|
25
|
+
requirements on Debian/Ubuntu (git, python build deps, docker or podman +
|
|
26
|
+
compose).
|
|
27
|
+
- Catalog for Odoo 17.0, 18.0, 19.0, 20.0.
|