gOdoo-cli 0.0.3__tar.gz → 0.0.4__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.0.3 → godoo_cli-0.0.4}/PKG-INFO +23 -11
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/README.md +9 -9
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/pyproject.toml +29 -16
- godoo_cli-0.0.4/setup.py +61 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/__init__.py +1 -1
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/commands/source_get.py +1 -1
- godoo_cli-0.0.3/setup.py +0 -48
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/LICENSE +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/__main__.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/cli.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/commands/__init__.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/commands/bootstrap.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/commands/launch.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/commands/makedev.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/commands/rpc/__init__.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/commands/rpc/cli.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/commands/rpc/cli_callbacks.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/commands/rpc/importer.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/commands/rpc/modules.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/commands/rpc/translations.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/commands/shell.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/commands/test.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/git/__init__.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/git/git_odoo.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/git/git_odoo_addons.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/git/git_repo.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/git/git_url.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/git/zip_download.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/helpers/__init__.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/helpers/cli.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/helpers/odoo_files.py +0 -0
- {godoo_cli-0.0.3 → godoo_cli-0.0.4}/src/godoo_cli/helpers/repospec.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: godoo-cli
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: Wrapper around Odoo-Bin with some convinience RPC functions.
|
|
5
5
|
License: LGPL-3
|
|
6
6
|
Author: Joshua Kreuder
|
|
@@ -11,13 +11,25 @@ Classifier: Programming Language :: Python :: 3
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.8
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.9
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Provides-Extra: codequality
|
|
15
|
+
Provides-Extra: devcontainer
|
|
16
|
+
Requires-Dist: black (==22.10.0); extra == "codequality"
|
|
17
|
+
Requires-Dist: debugpy (==1.6.0); extra == "devcontainer"
|
|
18
|
+
Requires-Dist: flake8 (==5.0.4); extra == "codequality"
|
|
14
19
|
Requires-Dist: gitpython (==3.1.27)
|
|
15
|
-
Requires-Dist: godoo-rpc (==0.0.
|
|
20
|
+
Requires-Dist: godoo-rpc (==0.0.3)
|
|
21
|
+
Requires-Dist: ipdb (==0.13.9); extra == "devcontainer"
|
|
22
|
+
Requires-Dist: isort (==5.10.1); extra == "codequality"
|
|
16
23
|
Requires-Dist: openupgradelib (==3.3.4)
|
|
24
|
+
Requires-Dist: pre-commit (==2.20.0); extra == "devcontainer"
|
|
25
|
+
Requires-Dist: py-spy (==0.3.11); extra == "devcontainer"
|
|
26
|
+
Requires-Dist: pylint-odoo (==8.0.16); extra == "codequality"
|
|
17
27
|
Requires-Dist: python-dotenv (==0.20.0)
|
|
18
28
|
Requires-Dist: rich (==12.6.0)
|
|
29
|
+
Requires-Dist: rope (==0.23.0); extra == "devcontainer"
|
|
19
30
|
Requires-Dist: ruamel-yaml (==0.17.21)
|
|
20
31
|
Requires-Dist: typer[all] (>=0.7.0,<0.8.0)
|
|
32
|
+
Requires-Dist: watchdog (==2.1.7); extra == "devcontainer"
|
|
21
33
|
Description-Content-Type: text/markdown
|
|
22
34
|
|
|
23
35
|
# gOdoo Dev Environment
|
|
@@ -56,13 +68,15 @@ They are used to provide either easy Odoo instances where the source is pulled a
|
|
|
56
68
|
- [Docker Compose](https://github.com/docker/compose)
|
|
57
69
|
- [Traefik](https://doc.traefik.io/traefik/) container running with docker provider and "traefik" named docker network.
|
|
58
70
|
Example: [Traefik Devproxy](https://github.com/joshkreud/traefik_devproxy)
|
|
71
|
+
- SSH Agent running. (check `echo $SSH_AUTH_SOCK`)\
|
|
72
|
+
This gets passed trough in the Buildprocess to clone Thirdparty repos.
|
|
59
73
|
|
|
60
74
|
## Just wanna have a quick and easy Odoo Instance?
|
|
61
75
|
|
|
62
76
|
```bash
|
|
63
77
|
git clone https://github.com/OpenJKSoftware/gOdoo
|
|
64
78
|
cd godoo
|
|
65
|
-
|
|
79
|
+
. scripts/container_requirements.sh # Check Requirements
|
|
66
80
|
docker-compose build
|
|
67
81
|
docker-compose up
|
|
68
82
|
# wait......
|
|
@@ -101,20 +115,18 @@ docker-compose up
|
|
|
101
115
|
2. Have [Traefik](https://github.com/traefik/traefik) Running on `docker.localhost`
|
|
102
116
|
[Example](https://github.com/joshkreud/traefik_devproxy) \
|
|
103
117
|
There must be a Docker network called `traefik` that can reach traefik.
|
|
104
|
-
3.
|
|
105
|
-
4. Open Devcontianer:
|
|
118
|
+
3. Open Devcontianer:
|
|
106
119
|
- If you have the Devcontainer CLI: `devcontainer open .`
|
|
107
|
-
- If not open the workspace in Local Vscode. In the Command pallete search for
|
|
108
|
-
|
|
109
|
-
5. From **within the container** start Odoo using one of the following commands:
|
|
120
|
+
- If not open the workspace in Local Vscode. In the Command pallete search for `Reopen in container`
|
|
121
|
+
4. From **within the container** start Odoo using one of the following commands:
|
|
110
122
|
- `make` -> Loads Odoo + Workspace Addons
|
|
111
123
|
- `make bare` -> Loads Odoo with ony `web` installed.
|
|
112
124
|
- `make enterprise` -> godoo launch with install script for web_enterprise
|
|
113
125
|
- The full init script is available via "`godoo`". (See --help for Options)
|
|
114
|
-
|
|
126
|
+
5. Open Odoo `https://$COMPOSE_PROJECT_NAME.docker.localhost`\
|
|
115
127
|
For example `COMPOSE_PROJECT_NAME=godoo` --> [https://godoo.docker.localhost](https://godoo.docker.localhost)
|
|
116
|
-
|
|
117
|
-
|
|
128
|
+
6. Login with `admin:admin`
|
|
129
|
+
7. Profit!
|
|
118
130
|
|
|
119
131
|
### Access to Odoo and Thirdparty addon Source
|
|
120
132
|
|
|
@@ -34,13 +34,15 @@ They are used to provide either easy Odoo instances where the source is pulled a
|
|
|
34
34
|
- [Docker Compose](https://github.com/docker/compose)
|
|
35
35
|
- [Traefik](https://doc.traefik.io/traefik/) container running with docker provider and "traefik" named docker network.
|
|
36
36
|
Example: [Traefik Devproxy](https://github.com/joshkreud/traefik_devproxy)
|
|
37
|
+
- SSH Agent running. (check `echo $SSH_AUTH_SOCK`)\
|
|
38
|
+
This gets passed trough in the Buildprocess to clone Thirdparty repos.
|
|
37
39
|
|
|
38
40
|
## Just wanna have a quick and easy Odoo Instance?
|
|
39
41
|
|
|
40
42
|
```bash
|
|
41
43
|
git clone https://github.com/OpenJKSoftware/gOdoo
|
|
42
44
|
cd godoo
|
|
43
|
-
|
|
45
|
+
. scripts/container_requirements.sh # Check Requirements
|
|
44
46
|
docker-compose build
|
|
45
47
|
docker-compose up
|
|
46
48
|
# wait......
|
|
@@ -79,20 +81,18 @@ docker-compose up
|
|
|
79
81
|
2. Have [Traefik](https://github.com/traefik/traefik) Running on `docker.localhost`
|
|
80
82
|
[Example](https://github.com/joshkreud/traefik_devproxy) \
|
|
81
83
|
There must be a Docker network called `traefik` that can reach traefik.
|
|
82
|
-
3.
|
|
83
|
-
4. Open Devcontianer:
|
|
84
|
+
3. Open Devcontianer:
|
|
84
85
|
- If you have the Devcontainer CLI: `devcontainer open .`
|
|
85
|
-
- If not open the workspace in Local Vscode. In the Command pallete search for
|
|
86
|
-
|
|
87
|
-
5. From **within the container** start Odoo using one of the following commands:
|
|
86
|
+
- If not open the workspace in Local Vscode. In the Command pallete search for `Reopen in container`
|
|
87
|
+
4. From **within the container** start Odoo using one of the following commands:
|
|
88
88
|
- `make` -> Loads Odoo + Workspace Addons
|
|
89
89
|
- `make bare` -> Loads Odoo with ony `web` installed.
|
|
90
90
|
- `make enterprise` -> godoo launch with install script for web_enterprise
|
|
91
91
|
- The full init script is available via "`godoo`". (See --help for Options)
|
|
92
|
-
|
|
92
|
+
5. Open Odoo `https://$COMPOSE_PROJECT_NAME.docker.localhost`\
|
|
93
93
|
For example `COMPOSE_PROJECT_NAME=godoo` --> [https://godoo.docker.localhost](https://godoo.docker.localhost)
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
6. Login with `admin:admin`
|
|
95
|
+
7. Profit!
|
|
96
96
|
|
|
97
97
|
### Access to Odoo and Thirdparty addon Source
|
|
98
98
|
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "gOdoo-cli"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.4"
|
|
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"
|
|
7
7
|
readme = "README.md"
|
|
8
8
|
packages = [{include = "godoo_cli", from = "src"}]
|
|
9
9
|
|
|
10
|
-
[tool.poetry_bumpversion]
|
|
11
|
-
file ="src/godoo_cli/__init__.py"
|
|
10
|
+
[tool.poetry_bumpversion.file."src/godoo_cli/__init__.py"]
|
|
12
11
|
|
|
13
12
|
[tool.poetry.scripts]
|
|
14
13
|
godoo = "godoo_cli:launch_cli"
|
|
@@ -20,21 +19,35 @@ ruamel-yaml = "0.17.21"
|
|
|
20
19
|
typer = {extras = ["all"], version = "^0.7.0"}
|
|
21
20
|
gitpython = "3.1.27"
|
|
22
21
|
rich = "12.6.0"
|
|
23
|
-
godoo-rpc = "0.0.
|
|
22
|
+
godoo-rpc = "0.0.3"
|
|
24
23
|
openupgradelib = "3.3.4"
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
25
|
+
pylint-odoo = { version="8.0.16", optional = true}
|
|
26
|
+
ipdb = { version="0.13.9", optional = true}
|
|
27
|
+
debugpy = { version="1.6.0", optional = true}
|
|
28
|
+
black = { version="22.10.0", optional = true}
|
|
29
|
+
isort = { version="5.10.1", optional = true}
|
|
30
|
+
pre-commit = { version="2.20.0", optional = true}
|
|
31
|
+
watchdog = { version="2.1.7", optional = true}
|
|
32
|
+
py-spy = { version="0.3.11", optional = true}
|
|
33
|
+
rope = { version="0.23.0", optional = true}
|
|
34
|
+
flake8 = { version="5.0.4", optional = true}
|
|
35
|
+
|
|
36
|
+
[tool.poetry.extras]
|
|
37
|
+
devcontainer = [
|
|
38
|
+
"ipdb",
|
|
39
|
+
"debugpy",
|
|
40
|
+
"pre-commit",
|
|
41
|
+
"watchdog",
|
|
42
|
+
"rope",
|
|
43
|
+
"py-spy",
|
|
44
|
+
]
|
|
45
|
+
codequality = [
|
|
46
|
+
"pylint-odoo",
|
|
47
|
+
"black",
|
|
48
|
+
"isort",
|
|
49
|
+
"flake8",
|
|
50
|
+
]
|
|
38
51
|
|
|
39
52
|
[build-system]
|
|
40
53
|
requires = ["poetry-core>=1.0.0"]
|
godoo_cli-0.0.4/setup.py
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
from setuptools import setup
|
|
3
|
+
|
|
4
|
+
package_dir = \
|
|
5
|
+
{'': 'src'}
|
|
6
|
+
|
|
7
|
+
packages = \
|
|
8
|
+
['godoo_cli',
|
|
9
|
+
'godoo_cli.commands',
|
|
10
|
+
'godoo_cli.commands.rpc',
|
|
11
|
+
'godoo_cli.git',
|
|
12
|
+
'godoo_cli.helpers']
|
|
13
|
+
|
|
14
|
+
package_data = \
|
|
15
|
+
{'': ['*']}
|
|
16
|
+
|
|
17
|
+
install_requires = \
|
|
18
|
+
['gitpython==3.1.27',
|
|
19
|
+
'godoo-rpc==0.0.3',
|
|
20
|
+
'openupgradelib==3.3.4',
|
|
21
|
+
'python-dotenv==0.20.0',
|
|
22
|
+
'rich==12.6.0',
|
|
23
|
+
'ruamel-yaml==0.17.21',
|
|
24
|
+
'typer[all]>=0.7.0,<0.8.0']
|
|
25
|
+
|
|
26
|
+
extras_require = \
|
|
27
|
+
{'codequality': ['pylint-odoo==8.0.16',
|
|
28
|
+
'black==22.10.0',
|
|
29
|
+
'isort==5.10.1',
|
|
30
|
+
'flake8==5.0.4'],
|
|
31
|
+
'devcontainer': ['ipdb==0.13.9',
|
|
32
|
+
'debugpy==1.6.0',
|
|
33
|
+
'pre-commit==2.20.0',
|
|
34
|
+
'watchdog==2.1.7',
|
|
35
|
+
'py-spy==0.3.11',
|
|
36
|
+
'rope==0.23.0']}
|
|
37
|
+
|
|
38
|
+
entry_points = \
|
|
39
|
+
{'console_scripts': ['godoo = godoo_cli:launch_cli']}
|
|
40
|
+
|
|
41
|
+
setup_kwargs = {
|
|
42
|
+
'name': 'godoo-cli',
|
|
43
|
+
'version': '0.0.4',
|
|
44
|
+
'description': 'Wrapper around Odoo-Bin with some convinience RPC functions.',
|
|
45
|
+
'long_description': '# gOdoo Dev Environment\n\n\n\n\n**gOdoo** is short for **go Odoo**. \\\nIt is a [Vscode Devcontainer](https://code.visualstudio.com/docs/remote/containers) Environment for [Odoo](https://odoo.com/)\nwith Python CLI `godoo` convenience wrapper around `odoo-bin`.\n\nThis repository is the base source for the Python package [godoo-cli](https://pypi.org/project/godoo-cli/) and serves as\nan all batteries included development environment.\n\nMade Possible by: [WEMPE Elektronic GmbH](https://wetech.de)\n\n# gOdoo-cli\n\nPython package that provides `godoo` command line interface around `odoo-bin`.\n\nIt\'s build with [Typer](https://github.com/tiangolo/typer) to provide some convenience Wrappers for Odoo development and\nDeployment.\n\nMost flags can be configured by Env variables. \\\nUse `godoo --help` to find out more.\n\n# Docker\n\nThis workspace also contains Docker and Docker-Compose files. \\\n\nThey are used to provide either easy Odoo instances where the source is pulled according to\n[odoo_repospec.yml](./odoo_repospec.yml), or as a all batteries included devcontainer for VScode.\n\n## Requirements\n\n- [Docker Compose](https://github.com/docker/compose)\n- [Traefik](https://doc.traefik.io/traefik/) container running with docker provider and "traefik" named docker network.\n Example: [Traefik Devproxy](https://github.com/joshkreud/traefik_devproxy)\n- SSH Agent running. (check `echo $SSH_AUTH_SOCK`)\\\n This gets passed trough in the Buildprocess to clone Thirdparty repos.\n\n## Just wanna have a quick and easy Odoo Instance?\n\n```bash\ngit clone https://github.com/OpenJKSoftware/gOdoo\ncd godoo\n. scripts/container_requirements.sh # Check Requirements\ndocker-compose build\ndocker-compose up\n# wait......\n# wait a bit mode ...\n# just a little bit longer ..\n# There we go.\n# Odoo should be reachable on \'https://godoo.docker.localhost\' assuming you didn\'t change .env TRAEFIK_HOST_RULE or COMPOSE_PROJECT_NAME\n```\n\n# Devcontainer\n\n## Features\n\n- All batteries included [Devcontainer](https://code.visualstudio.com/docs/remote/containers) with postgres service\n Container and local DNS resolvig managed by [Traefik](https://doc.traefik.io/traefik/).\n- Easy fully working Odoo instance by `docker-compose up` with https access.\n- `godoo` CLI wrapper around Odoo. (Most flags can be configured by Environment Variables and are already preconfigured\n in the Containers. See [.env.sample](./.env.sample))\n- `odoo-bin` is added to PATH and can thus be invoked from every folder.\n- Odoo will run in Proxy_Mode behind a Traefik reverse proxy for easy access on\n `https://$COMPOSE_PROJECT_NAME.docker.localhost`\n- [Odoo Pylint plugin](https://github.com/OCA/pylint-odoo) preconfigured in vscode\n- Preinstalled vscode Extensions Highlights:\n - [SQL Tools](https://marketplace.visualstudio.com/items?itemName=mtxr.sqltools) with preconfigured connection for\n easy Database access in the Sidebar.\n - [Docker Extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker) controls\n container host.\n - [Odoo Snippets](https://marketplace.visualstudio.com/items?itemName=mstuttgart.odoo-snippets)\n - [Odoo Developments](https://marketplace.visualstudio.com/items?itemName=scapigliato.vsc-odoo-development) can Grab\n Odoo Model information from a running Server\n - [Todo Tree](https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.todo-tree)\n\n## Usage\n\n1. For Docker on windows: Clone the repo into the WSL2 Filesystem for better IO performance\n2. Have [Traefik](https://github.com/traefik/traefik) Running on `docker.localhost`\n [Example](https://github.com/joshkreud/traefik_devproxy) \\\n There must be a Docker network called `traefik` that can reach traefik.\n3. Open Devcontianer:\n - If you have the Devcontainer CLI: `devcontainer open .`\n - If not open the workspace in Local Vscode. In the Command pallete search for `Reopen in container`\n4. From **within the container** start Odoo using one of the following commands:\n - `make` -> Loads Odoo + Workspace Addons\n - `make bare` -> Loads Odoo with ony `web` installed.\n - `make enterprise` -> godoo launch with install script for web_enterprise\n - The full init script is available via "`godoo`". (See --help for Options)\n5. Open Odoo `https://$COMPOSE_PROJECT_NAME.docker.localhost`\\\n For example `COMPOSE_PROJECT_NAME=godoo` --> [https://godoo.docker.localhost](https://godoo.docker.localhost)\n6. Login with `admin:admin`\n7. Profit!\n\n### Access to Odoo and Thirdparty addon Source\n\nYou can access the Odoo source by opening the VsCode workspace [full.code-workspace](full.code-workspace) from within\nthe Container. This will open a [Multi-Root Workspace](https://code.visualstudio.com/docs/editor/multi-root-workspaces).\nReally waiting for https://github.com/microsoft/vscode-remote-release/issues/3665 here.\n\n## Reset Devcontainer Data\n\nWhen you screwed up so bad its time to just start Over godoo has you covered:\n\n### Automatic Reset\n\nThere are 3 Options to reset the Dev Env.\n\n1. From **Outside** the Container run `make reset` in the project root to delete docker volumes and restart the\n container. (Vscode will prompt to reconnect if still open)\n2. From **Outside** the Container run `make reset-hard` in the project root to force rebuild the main Odoo container and\n then do the same as `make reset`\n3. From **Inside** the Container run `make reset` to drop the DB and delete varlib and the bootstrap flag, which is way\n quicker than the other options.\n\n### Manual Reset\n\n1. Close vscode\n2. Remove `app` and `db` container from docker.\n3. Remove volumes: `db, odoo_thirdparty, odoo_web, vscode_extensions`\n4. Restart Devcontainer\n\n## Python Debugging\n\n### VsCode Debugging\n\nDebugging doesn\'t reliably work with\n[Odoo Multiprocess](https://www.odoo.com/documentation/14.0/developer/misc/other/cmdline.html#multiprocessing) mode\nenabled. \\\nThe container ships with a Vscode Debug profile, that sets `--workers 0` to allow for Debugging Breakpoints. See [.vscode/launch.json](./.vscode/launch.json)\n\n### Interactive Shell\n\nUse `godoo shell` to enter an interactive shell on the Database.\n\n# Odoo Modules\n\n## Third Party Modules (repospec.yml)\n\nThe `godoo` bootstrap function, will download some modules using git. \\\nWhich Repos to download is specified in `odoo_repospec.yml` ([Default](./odoo_repospec.yml)) \\\nNot all of the cloned addons are automatically installed. \\\nInstall them via the Apps Page in Odoo using `godoo rpc modules install` or using `odoo-bin`.\\\nModules downloaded on the Odoo Marketplace can be dropped as a `.zip` archive in [./thirdparty](./thirdparty)\n',
|
|
46
|
+
'author': 'Joshua Kreuder',
|
|
47
|
+
'author_email': 'Joshua_Kreuder@outlook.com',
|
|
48
|
+
'maintainer': 'None',
|
|
49
|
+
'maintainer_email': 'None',
|
|
50
|
+
'url': 'None',
|
|
51
|
+
'package_dir': package_dir,
|
|
52
|
+
'packages': packages,
|
|
53
|
+
'package_data': package_data,
|
|
54
|
+
'install_requires': install_requires,
|
|
55
|
+
'extras_require': extras_require,
|
|
56
|
+
'entry_points': entry_points,
|
|
57
|
+
'python_requires': '>=3.8,<3.11',
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
setup(**setup_kwargs)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = "0.0.
|
|
1
|
+
__version__ = "0.0.4"
|
|
2
2
|
from .cli import launch_cli
|
|
@@ -123,7 +123,7 @@ def get_source(
|
|
|
123
123
|
),
|
|
124
124
|
):
|
|
125
125
|
"""Update Odoo Source and Thirdparty source."""
|
|
126
|
-
LOGGER.info("Updating
|
|
126
|
+
LOGGER.info("Updating Source Repos")
|
|
127
127
|
zip_addon_path = thirdparty_addon_path / "custom"
|
|
128
128
|
|
|
129
129
|
if update_mode in ["all", "zip"]:
|
godoo_cli-0.0.3/setup.py
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
from setuptools import setup
|
|
3
|
-
|
|
4
|
-
package_dir = \
|
|
5
|
-
{'': 'src'}
|
|
6
|
-
|
|
7
|
-
packages = \
|
|
8
|
-
['godoo_cli',
|
|
9
|
-
'godoo_cli.commands',
|
|
10
|
-
'godoo_cli.commands.rpc',
|
|
11
|
-
'godoo_cli.git',
|
|
12
|
-
'godoo_cli.helpers']
|
|
13
|
-
|
|
14
|
-
package_data = \
|
|
15
|
-
{'': ['*']}
|
|
16
|
-
|
|
17
|
-
install_requires = \
|
|
18
|
-
['gitpython==3.1.27',
|
|
19
|
-
'godoo-rpc==0.0.2',
|
|
20
|
-
'openupgradelib==3.3.4',
|
|
21
|
-
'python-dotenv==0.20.0',
|
|
22
|
-
'rich==12.6.0',
|
|
23
|
-
'ruamel-yaml==0.17.21',
|
|
24
|
-
'typer[all]>=0.7.0,<0.8.0']
|
|
25
|
-
|
|
26
|
-
entry_points = \
|
|
27
|
-
{'console_scripts': ['godoo = godoo_cli:launch_cli']}
|
|
28
|
-
|
|
29
|
-
setup_kwargs = {
|
|
30
|
-
'name': 'godoo-cli',
|
|
31
|
-
'version': '0.0.3',
|
|
32
|
-
'description': 'Wrapper around Odoo-Bin with some convinience RPC functions.',
|
|
33
|
-
'long_description': '# gOdoo Dev Environment\n\n\n\n\n**gOdoo** is short for **go Odoo**. \\\nIt is a [Vscode Devcontainer](https://code.visualstudio.com/docs/remote/containers) Environment for [Odoo](https://odoo.com/)\nwith Python CLI `godoo` convenience wrapper around `odoo-bin`.\n\nThis repository is the base source for the Python package [godoo-cli](https://pypi.org/project/godoo-cli/) and serves as\nan all batteries included development environment.\n\nMade Possible by: [WEMPE Elektronic GmbH](https://wetech.de)\n\n# gOdoo-cli\n\nPython package that provides `godoo` command line interface around `odoo-bin`.\n\nIt\'s build with [Typer](https://github.com/tiangolo/typer) to provide some convenience Wrappers for Odoo development and\nDeployment.\n\nMost flags can be configured by Env variables. \\\nUse `godoo --help` to find out more.\n\n# Docker\n\nThis workspace also contains Docker and Docker-Compose files. \\\n\nThey are used to provide either easy Odoo instances where the source is pulled according to\n[odoo_repospec.yml](./odoo_repospec.yml), or as a all batteries included devcontainer for VScode.\n\n## Requirements\n\n- [Docker Compose](https://github.com/docker/compose)\n- [Traefik](https://doc.traefik.io/traefik/) container running with docker provider and "traefik" named docker network.\n Example: [Traefik Devproxy](https://github.com/joshkreud/traefik_devproxy)\n\n## Just wanna have a quick and easy Odoo Instance?\n\n```bash\ngit clone https://github.com/OpenJKSoftware/gOdoo\ncd godoo\ncp .env.sample .env # Change this to your liking or pass the env vars directly to the app container.\ndocker-compose build\ndocker-compose up\n# wait......\n# wait a bit mode ...\n# just a little bit longer ..\n# There we go.\n# Odoo should be reachable on \'https://godoo.docker.localhost\' assuming you didn\'t change .env TRAEFIK_HOST_RULE or COMPOSE_PROJECT_NAME\n```\n\n# Devcontainer\n\n## Features\n\n- All batteries included [Devcontainer](https://code.visualstudio.com/docs/remote/containers) with postgres service\n Container and local DNS resolvig managed by [Traefik](https://doc.traefik.io/traefik/).\n- Easy fully working Odoo instance by `docker-compose up` with https access.\n- `godoo` CLI wrapper around Odoo. (Most flags can be configured by Environment Variables and are already preconfigured\n in the Containers. See [.env.sample](./.env.sample))\n- `odoo-bin` is added to PATH and can thus be invoked from every folder.\n- Odoo will run in Proxy_Mode behind a Traefik reverse proxy for easy access on\n `https://$COMPOSE_PROJECT_NAME.docker.localhost`\n- [Odoo Pylint plugin](https://github.com/OCA/pylint-odoo) preconfigured in vscode\n- Preinstalled vscode Extensions Highlights:\n - [SQL Tools](https://marketplace.visualstudio.com/items?itemName=mtxr.sqltools) with preconfigured connection for\n easy Database access in the Sidebar.\n - [Docker Extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker) controls\n container host.\n - [Odoo Snippets](https://marketplace.visualstudio.com/items?itemName=mstuttgart.odoo-snippets)\n - [Odoo Developments](https://marketplace.visualstudio.com/items?itemName=scapigliato.vsc-odoo-development) can Grab\n Odoo Model information from a running Server\n - [Todo Tree](https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.todo-tree)\n\n## Usage\n\n1. For Docker on windows: Clone the repo into the WSL2 Filesystem for better IO performance\n2. Have [Traefik](https://github.com/traefik/traefik) Running on `docker.localhost`\n [Example](https://github.com/joshkreud/traefik_devproxy) \\\n There must be a Docker network called `traefik` that can reach traefik.\n3. Create `.env` file (see [.env.sample](.env.sample))\n4. Open Devcontianer:\n - If you have the Devcontainer CLI: `devcontainer open .`\n - If not open the workspace in Local Vscode. In the Command pallete search for\n `Devcontainers: Rebuild and Reopen in container`\n5. From **within the container** start Odoo using one of the following commands:\n - `make` -> Loads Odoo + Workspace Addons\n - `make bare` -> Loads Odoo with ony `web` installed.\n - `make enterprise` -> godoo launch with install script for web_enterprise\n - The full init script is available via "`godoo`". (See --help for Options)\n6. Open Odoo `https://$COMPOSE_PROJECT_NAME.docker.localhost`\\\n For example `COMPOSE_PROJECT_NAME=godoo` --> [https://godoo.docker.localhost](https://godoo.docker.localhost)\n7. Login with `admin:admin`\n8. Profit!\n\n### Access to Odoo and Thirdparty addon Source\n\nYou can access the Odoo source by opening the VsCode workspace [full.code-workspace](full.code-workspace) from within\nthe Container. This will open a [Multi-Root Workspace](https://code.visualstudio.com/docs/editor/multi-root-workspaces).\nReally waiting for https://github.com/microsoft/vscode-remote-release/issues/3665 here.\n\n## Reset Devcontainer Data\n\nWhen you screwed up so bad its time to just start Over godoo has you covered:\n\n### Automatic Reset\n\nThere are 3 Options to reset the Dev Env.\n\n1. From **Outside** the Container run `make reset` in the project root to delete docker volumes and restart the\n container. (Vscode will prompt to reconnect if still open)\n2. From **Outside** the Container run `make reset-hard` in the project root to force rebuild the main Odoo container and\n then do the same as `make reset`\n3. From **Inside** the Container run `make reset` to drop the DB and delete varlib and the bootstrap flag, which is way\n quicker than the other options.\n\n### Manual Reset\n\n1. Close vscode\n2. Remove `app` and `db` container from docker.\n3. Remove volumes: `db, odoo_thirdparty, odoo_web, vscode_extensions`\n4. Restart Devcontainer\n\n## Python Debugging\n\n### VsCode Debugging\n\nDebugging doesn\'t reliably work with\n[Odoo Multiprocess](https://www.odoo.com/documentation/14.0/developer/misc/other/cmdline.html#multiprocessing) mode\nenabled. \\\nThe container ships with a Vscode Debug profile, that sets `--workers 0` to allow for Debugging Breakpoints. See [.vscode/launch.json](./.vscode/launch.json)\n\n### Interactive Shell\n\nUse `godoo shell` to enter an interactive shell on the Database.\n\n# Odoo Modules\n\n## Third Party Modules (repospec.yml)\n\nThe `godoo` bootstrap function, will download some modules using git. \\\nWhich Repos to download is specified in `odoo_repospec.yml` ([Default](./odoo_repospec.yml)) \\\nNot all of the cloned addons are automatically installed. \\\nInstall them via the Apps Page in Odoo using `godoo rpc modules install` or using `odoo-bin`.\\\nModules downloaded on the Odoo Marketplace can be dropped as a `.zip` archive in [./thirdparty](./thirdparty)\n',
|
|
34
|
-
'author': 'Joshua Kreuder',
|
|
35
|
-
'author_email': 'Joshua_Kreuder@outlook.com',
|
|
36
|
-
'maintainer': 'None',
|
|
37
|
-
'maintainer_email': 'None',
|
|
38
|
-
'url': 'None',
|
|
39
|
-
'package_dir': package_dir,
|
|
40
|
-
'packages': packages,
|
|
41
|
-
'package_data': package_data,
|
|
42
|
-
'install_requires': install_requires,
|
|
43
|
-
'entry_points': entry_points,
|
|
44
|
-
'python_requires': '>=3.8,<3.11',
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
setup(**setup_kwargs)
|
|
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
|