From a38534f7abfac12c37c009d978df1cd89a2ed498 Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (ACSONE)" Date: Fri, 6 Oct 2023 09:56:14 +0200 Subject: [PATCH] [MIG] shopinvader_auth_jwt: Migration to 16.0 From 14.0. Renames shopinvader_auth_jwt to shopinvader_restapi_auth_jwt to ensure naming consistency --- .pre-commit-config.yaml | 1 - .../odoo/addons/shopinvader_restapi_auth_jwt | 1 + setup/shopinvader_restapi_auth_jwt/setup.py | 6 ++++++ .../README.rst | 0 .../__init__.py | 0 .../__manifest__.py | 6 +++--- .../components/__init__.py | 0 .../components/service_context_provider.py | 0 .../controllers/__init__.py | 0 .../controllers/main.py | 0 .../i18n/shopinvader_auth_jwt.pot | 0 .../models/__init__.py | 0 .../models/shopinvader_backend.py | 0 .../readme/CONTRIBUTORS.rst | 0 .../readme/DESCRIPTION.rst | 0 .../static/description/index.html | 0 .../views/shopinvader_backend.xml | 5 ++++- 17 files changed, 14 insertions(+), 5 deletions(-) create mode 120000 setup/shopinvader_restapi_auth_jwt/odoo/addons/shopinvader_restapi_auth_jwt create mode 100644 setup/shopinvader_restapi_auth_jwt/setup.py rename {shopinvader_auth_jwt => shopinvader_restapi_auth_jwt}/README.rst (100%) rename {shopinvader_auth_jwt => shopinvader_restapi_auth_jwt}/__init__.py (100%) rename {shopinvader_auth_jwt => shopinvader_restapi_auth_jwt}/__manifest__.py (85%) rename {shopinvader_auth_jwt => shopinvader_restapi_auth_jwt}/components/__init__.py (100%) rename {shopinvader_auth_jwt => shopinvader_restapi_auth_jwt}/components/service_context_provider.py (100%) rename {shopinvader_auth_jwt => shopinvader_restapi_auth_jwt}/controllers/__init__.py (100%) rename {shopinvader_auth_jwt => shopinvader_restapi_auth_jwt}/controllers/main.py (100%) rename {shopinvader_auth_jwt => shopinvader_restapi_auth_jwt}/i18n/shopinvader_auth_jwt.pot (100%) rename {shopinvader_auth_jwt => shopinvader_restapi_auth_jwt}/models/__init__.py (100%) rename {shopinvader_auth_jwt => shopinvader_restapi_auth_jwt}/models/shopinvader_backend.py (100%) rename {shopinvader_auth_jwt => shopinvader_restapi_auth_jwt}/readme/CONTRIBUTORS.rst (100%) rename {shopinvader_auth_jwt => shopinvader_restapi_auth_jwt}/readme/DESCRIPTION.rst (100%) rename {shopinvader_auth_jwt => shopinvader_restapi_auth_jwt}/static/description/index.html (100%) rename {shopinvader_auth_jwt => shopinvader_restapi_auth_jwt}/views/shopinvader_backend.xml (80%) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 10184207da..97755dfc47 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,6 @@ exclude: | ^shopinvader_algolia/| ^shopinvader_assortment/| ^shopinvader_auth_api_key/| - ^shopinvader_auth_jwt/| ^shopinvader_backend_image_proxy/| ^shopinvader_cart_expiry/| ^shopinvader_category_image_for_product/| diff --git a/setup/shopinvader_restapi_auth_jwt/odoo/addons/shopinvader_restapi_auth_jwt b/setup/shopinvader_restapi_auth_jwt/odoo/addons/shopinvader_restapi_auth_jwt new file mode 120000 index 0000000000..20bf9a3488 --- /dev/null +++ b/setup/shopinvader_restapi_auth_jwt/odoo/addons/shopinvader_restapi_auth_jwt @@ -0,0 +1 @@ +../../../../shopinvader_restapi_auth_jwt \ No newline at end of file diff --git a/setup/shopinvader_restapi_auth_jwt/setup.py b/setup/shopinvader_restapi_auth_jwt/setup.py new file mode 100644 index 0000000000..28c57bb640 --- /dev/null +++ b/setup/shopinvader_restapi_auth_jwt/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/shopinvader_auth_jwt/README.rst b/shopinvader_restapi_auth_jwt/README.rst similarity index 100% rename from shopinvader_auth_jwt/README.rst rename to shopinvader_restapi_auth_jwt/README.rst diff --git a/shopinvader_auth_jwt/__init__.py b/shopinvader_restapi_auth_jwt/__init__.py similarity index 100% rename from shopinvader_auth_jwt/__init__.py rename to shopinvader_restapi_auth_jwt/__init__.py diff --git a/shopinvader_auth_jwt/__manifest__.py b/shopinvader_restapi_auth_jwt/__manifest__.py similarity index 85% rename from shopinvader_auth_jwt/__manifest__.py rename to shopinvader_restapi_auth_jwt/__manifest__.py index 1d8af79efb..73d81c4382 100644 --- a/shopinvader_auth_jwt/__manifest__.py +++ b/shopinvader_restapi_auth_jwt/__manifest__.py @@ -3,18 +3,18 @@ { "name": "Shopinvader JWT Authentication", - "version": "14.0.1.2.0", + "version": "16.0.1.2.0", "summary": "Find shopinvader backend and partner from JWT token", "author": "ACSONE SA/NV", "website": "https://github.com/shopinvader/odoo-shopinvader", "license": "AGPL-3", "depends": [ - "shopinvader", + "shopinvader_restapi", "auth_jwt", ], "data": [ "views/shopinvader_backend.xml", ], "demo": [], - "installable": False, + "installable": True, } diff --git a/shopinvader_auth_jwt/components/__init__.py b/shopinvader_restapi_auth_jwt/components/__init__.py similarity index 100% rename from shopinvader_auth_jwt/components/__init__.py rename to shopinvader_restapi_auth_jwt/components/__init__.py diff --git a/shopinvader_auth_jwt/components/service_context_provider.py b/shopinvader_restapi_auth_jwt/components/service_context_provider.py similarity index 100% rename from shopinvader_auth_jwt/components/service_context_provider.py rename to shopinvader_restapi_auth_jwt/components/service_context_provider.py diff --git a/shopinvader_auth_jwt/controllers/__init__.py b/shopinvader_restapi_auth_jwt/controllers/__init__.py similarity index 100% rename from shopinvader_auth_jwt/controllers/__init__.py rename to shopinvader_restapi_auth_jwt/controllers/__init__.py diff --git a/shopinvader_auth_jwt/controllers/main.py b/shopinvader_restapi_auth_jwt/controllers/main.py similarity index 100% rename from shopinvader_auth_jwt/controllers/main.py rename to shopinvader_restapi_auth_jwt/controllers/main.py diff --git a/shopinvader_auth_jwt/i18n/shopinvader_auth_jwt.pot b/shopinvader_restapi_auth_jwt/i18n/shopinvader_auth_jwt.pot similarity index 100% rename from shopinvader_auth_jwt/i18n/shopinvader_auth_jwt.pot rename to shopinvader_restapi_auth_jwt/i18n/shopinvader_auth_jwt.pot diff --git a/shopinvader_auth_jwt/models/__init__.py b/shopinvader_restapi_auth_jwt/models/__init__.py similarity index 100% rename from shopinvader_auth_jwt/models/__init__.py rename to shopinvader_restapi_auth_jwt/models/__init__.py diff --git a/shopinvader_auth_jwt/models/shopinvader_backend.py b/shopinvader_restapi_auth_jwt/models/shopinvader_backend.py similarity index 100% rename from shopinvader_auth_jwt/models/shopinvader_backend.py rename to shopinvader_restapi_auth_jwt/models/shopinvader_backend.py diff --git a/shopinvader_auth_jwt/readme/CONTRIBUTORS.rst b/shopinvader_restapi_auth_jwt/readme/CONTRIBUTORS.rst similarity index 100% rename from shopinvader_auth_jwt/readme/CONTRIBUTORS.rst rename to shopinvader_restapi_auth_jwt/readme/CONTRIBUTORS.rst diff --git a/shopinvader_auth_jwt/readme/DESCRIPTION.rst b/shopinvader_restapi_auth_jwt/readme/DESCRIPTION.rst similarity index 100% rename from shopinvader_auth_jwt/readme/DESCRIPTION.rst rename to shopinvader_restapi_auth_jwt/readme/DESCRIPTION.rst diff --git a/shopinvader_auth_jwt/static/description/index.html b/shopinvader_restapi_auth_jwt/static/description/index.html similarity index 100% rename from shopinvader_auth_jwt/static/description/index.html rename to shopinvader_restapi_auth_jwt/static/description/index.html diff --git a/shopinvader_auth_jwt/views/shopinvader_backend.xml b/shopinvader_restapi_auth_jwt/views/shopinvader_backend.xml similarity index 80% rename from shopinvader_auth_jwt/views/shopinvader_backend.xml rename to shopinvader_restapi_auth_jwt/views/shopinvader_backend.xml index 91b6f1b363..11807dd968 100644 --- a/shopinvader_auth_jwt/views/shopinvader_backend.xml +++ b/shopinvader_restapi_auth_jwt/views/shopinvader_backend.xml @@ -5,7 +5,10 @@ shopinvader.backend.inherit.view.form shopinvader.backend - +