Skip to content

Commit 66e935f

Browse files
committed
[MIG] extendable_fastapi: Migration to 18.0
1 parent c142bd9 commit 66e935f

File tree

12 files changed

+89
-71
lines changed

12 files changed

+89
-71
lines changed

extendable/tests/common.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
from contextlib import contextmanager
55

6-
import odoo
76
from odoo import SUPERUSER_ID, api
87
from odoo.modules.registry import Registry
98
from odoo.tests import common

extendable_fastapi/README.rst

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,22 @@ Extendable Fastapi
1717
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
1818
:alt: License: LGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frest--framework-lightgray.png?logo=github
20-
:target: https://github.com/OCA/rest-framework/tree/16.0/extendable_fastapi
20+
:target: https://github.com/OCA/rest-framework/tree/18.0/extendable_fastapi
2121
:alt: OCA/rest-framework
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/rest-framework-16-0/rest-framework-16-0-extendable_fastapi
23+
:target: https://translation.odoo-community.org/projects/rest-framework-18-0/rest-framework-18-0-extendable_fastapi
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

3131
This addon is a technical addon used to allows the use of
32-
`extendable <https://pypi.org/project/extendable/>`_
33-
classes in the implementation of your fastapi endpoint handlers. It also
34-
allows you to use `extendable_pydantic <https://pypi.org/project/extendable_pydantic/>`_
32+
`extendable <https://pypi.org/project/extendable/>`__ classes in the
33+
implementation of your fastapi endpoint handlers. It also allows you to
34+
use
35+
`extendable_pydantic <https://pypi.org/project/extendable_pydantic/>`__
3536
models when defining your endpoint handlers request and response models.
3637

3738
**Table of contents**
@@ -43,52 +44,57 @@ Changelog
4344
=========
4445

4546
16.0.2.1.1 (2023-11-07)
46-
~~~~~~~~~~~~~~~~~~~~~~~
47+
-----------------------
4748

4849
**Bugfixes**
4950

50-
- Fix registry corruption when running tests difined in a class inheriting of the *FastAPITransactionCase* class if an error occurs in the *setUpClass* after the call to super(). (`#392 <https://github.com/OCA/rest-framework/issues/392>`_)
51-
51+
- Fix registry corruption when running tests difined in a class
52+
inheriting of the *FastAPITransactionCase* class if an error occurs
53+
in the *setUpClass* after the call to super().
54+
(`#392 <https://github.com/OCA/rest-framework/issues/392>`__)
5255

5356
16.0.2.1.0 (2023-10-13)
54-
~~~~~~~~~~~~~~~~~~~~~~~
57+
-----------------------
5558

5659
**Features**
5760

58-
- * New base schemas: *PagedCollection*. This schema is used to define the
59-
the structure of a paged collection of resources. This schema is similar
60-
to the ones defined in the Odoo's **fastapi** addon but works as/with
61-
extendable models.
61+
-
6262

63-
* The *StrictExtendableBaseModel* has been moved to the *extendable_pydantic*
64-
python lib. You should consider to import it from there. (`#380 <https://github.com/OCA/rest-framework/issues/380>`_)
63+
- New base schemas: *PagedCollection*. This schema is used to define
64+
the the structure of a paged collection of resources. This schema
65+
is similar to the ones defined in the Odoo's **fastapi** addon but
66+
works as/with extendable models.
67+
- The *StrictExtendableBaseModel* has been moved to the
68+
*extendable_pydantic* python lib. You should consider to import it
69+
from there.
70+
(`#380 <https://github.com/OCA/rest-framework/issues/380>`__)
6571

6672
Bug Tracker
6773
===========
6874

6975
Bugs are tracked on `GitHub Issues <https://github.com/OCA/rest-framework/issues>`_.
7076
In case of trouble, please check there if your issue has already been reported.
7177
If you spotted it first, help us to smash it by providing a detailed and welcomed
72-
`feedback <https://github.com/OCA/rest-framework/issues/new?body=module:%20extendable_fastapi%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
78+
`feedback <https://github.com/OCA/rest-framework/issues/new?body=module:%20extendable_fastapi%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
7379

7480
Do not contact contributors directly about support or help with technical issues.
7581

7682
Credits
7783
=======
7884

7985
Authors
80-
~~~~~~~
86+
-------
8187

8288
* ACSONE SA/NV
8389

8490
Contributors
85-
~~~~~~~~~~~~
91+
------------
8692

87-
* Laurent Mignon <laurent.mignon@acsone.eu> (https://acsone.eu)
88-
* Marie Lejeune <marie.lejeune@acsone.eu> (https://acsone.eu)
93+
- Laurent Mignon <laurent.mignon@acsone.eu> (https://acsone.eu)
94+
- Marie Lejeune <marie.lejeune@acsone.eu> (https://acsone.eu)
8995

9096
Maintainers
91-
~~~~~~~~~~~
97+
-----------
9298

9399
This module is maintained by the OCA.
94100

@@ -108,6 +114,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
108114

109115
|maintainer-lmignon|
110116

111-
This module is part of the `OCA/rest-framework <https://github.com/OCA/rest-framework/tree/16.0/extendable_fastapi>`_ project on GitHub.
117+
This module is part of the `OCA/rest-framework <https://github.com/OCA/rest-framework/tree/18.0/extendable_fastapi>`_ project on GitHub.
112118

113119
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

extendable_fastapi/__manifest__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Extendable Fastapi",
66
"summary": """
77
Allows the use of extendable into fastapi apps""",
8-
"version": "16.0.2.1.1",
8+
"version": "18.0.1.0.0",
99
"license": "LGPL-3",
1010
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
1111
"maintainers": ["lmignon"],
@@ -19,5 +19,5 @@
1919
"extendable-pydantic>=1.2.0",
2020
],
2121
},
22-
"installable": False,
22+
"installable": True,
2323
}

extendable_fastapi/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Laurent Mignon \<<laurent.mignon@acsone.eu>\> (<https://acsone.eu>)
2+
- Marie Lejeune \<<marie.lejeune@acsone.eu>\> (<https://acsone.eu>)

extendable_fastapi/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This addon is a technical addon used to allows the use of
2+
[extendable](https://pypi.org/project/extendable/) classes in the
3+
implementation of your fastapi endpoint handlers. It also allows you to
4+
use [extendable_pydantic](https://pypi.org/project/extendable_pydantic/)
5+
models when defining your endpoint handlers request and response models.

extendable_fastapi/readme/DESCRIPTION.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## 16.0.2.1.1 (2023-11-07)
2+
3+
**Bugfixes**
4+
5+
- Fix registry corruption when running tests difined in a class
6+
inheriting of the *FastAPITransactionCase* class if an error occurs in
7+
the *setUpClass* after the call to super().
8+
([\#392](https://github.com/OCA/rest-framework/issues/392))
9+
10+
## 16.0.2.1.0 (2023-10-13)
11+
12+
**Features**
13+
14+
- - New base schemas: *PagedCollection*. This schema is used to define
15+
the the structure of a paged collection of resources. This schema is
16+
similar to the ones defined in the Odoo's **fastapi** addon but
17+
works as/with extendable models.
18+
- The *StrictExtendableBaseModel* has been moved to the
19+
*extendable_pydantic* python lib. You should consider to import it
20+
from there.
21+
([\#380](https://github.com/OCA/rest-framework/issues/380))

extendable_fastapi/readme/HISTORY.rst

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)