Skip to content

Commit

Permalink
Forward port from 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lmignon committed Jun 14, 2022
1 parent 6a9b550 commit 6285e64
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 28 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ exclude: |
(?x)
# NOT INSTALLABLE ADDONS
^base_rest_auth_jwt/|
^graphql_base/|
^graphql_demo/|
^model_serializer/|
# END NOT INSTALLABLE ADDONS
# Files and folders generated by bots, to avoid loops
Expand Down
2 changes: 1 addition & 1 deletion base_rest_auth_jwt/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"summary": """
Base Rest: Add support for the auth_jwt security policy into the
openapi documentation""",
"version": "14.0.1.1.0",
"version": "15.0.1.1.0",
"license": "LGPL-3",
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/rest-framework",
Expand Down
12 changes: 10 additions & 2 deletions base_rest_demo/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@
"author": "ACSONE SA/NV, " "Odoo Community Association (OCA)",
"maintainers": ["lmignon"],
"website": "https://github.com/OCA/rest-framework",
"depends": ["base_rest", "base_rest_datamodel", "component"],
"depends": [
"base_rest",
"base_rest_datamodel",
"base_rest_pydantic",
"component",
"extendable",
],
"data": [],
"demo": [],
"external_dependencies": {"python": ["jsondiff"]},
"external_dependencies": {
"python": ["jsondiff", "extendable-pydantic", "pydantic"]
},
"installable": True,
}
2 changes: 1 addition & 1 deletion base_rest_pydantic/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Base Rest Datamodel",
"summary": """
Pydantic binding for base_rest""",
"version": "14.0.4.2.0",
"version": "15.0.4.2.0",
"license": "LGPL-3",
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/rest-framework",
Expand Down
4 changes: 2 additions & 2 deletions base_rest_pydantic/tests/test_from_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
import mock

from odoo.exceptions import UserError
from odoo.tests.common import SavepointCase
from odoo.tests.common import TransactionCase

from pydantic import BaseModel

from .. import restapi


class TestPydantic(SavepointCase):
class TestPydantic(TransactionCase):
def setUp(self):
super(TestPydantic, self).setUp()

Expand Down
4 changes: 2 additions & 2 deletions base_rest_pydantic/tests/test_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

import mock

from odoo.tests.common import SavepointCase
from odoo.tests.common import TransactionCase

from pydantic import BaseModel

from .. import restapi


class TestPydantic(SavepointCase):
class TestPydantic(TransactionCase):
def _to_response(self, instance: BaseModel):
restapi_pydantic = restapi.PydanticModel(instance.__class__)
mock_service = mock.Mock()
Expand Down
2 changes: 1 addition & 1 deletion extendable/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Extendable",
"summary": """
Extendable classes registry loader for Odoo""",
"version": "14.0.1.0.0",
"version": "15.0.1.0.0",
"development_status": "Beta",
"maintainers": ["lmignon"],
"license": "LGPL-3",
Expand Down
2 changes: 1 addition & 1 deletion graphql_base/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"external_dependencies": {"python": ["graphene", "graphql_server"]},
"development_status": "Production/Stable",
"maintainers": ["sbidoul"],
"installable": True,
"installable": False,
}
2 changes: 1 addition & 1 deletion graphql_demo/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"external_dependencies": {"python": ["graphene"]},
"development_status": "Beta",
"maintainers": ["sbidoul"],
"installable": True,
"installable": False,
}
2 changes: 1 addition & 1 deletion pydantic/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Pydantic",
"summary": """
Utility addon to ease mapping between Pydantic and Odoo models""",
"version": "14.0.1.1.0",
"version": "15.0.1.1.0",
"development_status": "Beta",
"license": "LGPL-3",
"maintainers": ["lmignon"],
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ apispec>=4.0.0
cerberus
contextvars;python_version<"3.7"
extendable
graphene
graphql_server
extendable-pydantic
jsondiff
marshmallow
marshmallow-objects>=2.0.0
Expand Down
1 change: 0 additions & 1 deletion setup/graphql_base/odoo/addons/graphql_base

This file was deleted.

6 changes: 0 additions & 6 deletions setup/graphql_base/setup.py

This file was deleted.

1 change: 0 additions & 1 deletion setup/graphql_demo/odoo/addons/graphql_demo

This file was deleted.

6 changes: 0 additions & 6 deletions setup/graphql_demo/setup.py

This file was deleted.

0 comments on commit 6285e64

Please sign in to comment.