Skip to content

Commit 8faa13a

Browse files
committed
[MIG] extendable_fastapi: Migration to 18.0
1 parent 38bd754 commit 8faa13a

File tree

10 files changed

+88
-70
lines changed

10 files changed

+88
-70
lines changed

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.

extendable_fastapi/static/description/index.html

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="utf-8"?>
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
32
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
43
<head>
@@ -9,10 +8,11 @@
98

109
/*
1110
:Author: David Goodger (goodger@python.org)
12-
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1312
:Copyright: This stylesheet has been placed in the public domain.
1413
1514
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1616
1717
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1818
customize this style sheet.
@@ -275,7 +275,7 @@
275275
margin-left: 2em ;
276276
margin-right: 2em }
277277

278-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
279279
pre.code, code { background-color: #eeeeee }
280280
pre.code .comment, code .comment { color: #5C6576 }
281281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +301,7 @@
301301
span.pre {
302302
white-space: pre }
303303

304-
span.problematic {
304+
span.problematic, pre.problematic {
305305
color: red }
306306

307307
span.section-subtitle {
@@ -369,11 +369,12 @@ <h1 class="title">Extendable Fastapi</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:4e4f5d96294f860ce7f0c4e023431f8ed9ca011c318b5ba4a3cfcd15c31eac1a
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/rest-framework/tree/16.0/extendable_fastapi"><img alt="OCA/rest-framework" src="https://img.shields.io/badge/github-OCA%2Frest--framework-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/rest-framework-16-0/rest-framework-16-0-extendable_fastapi"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/rest-framework/tree/18.0/extendable_fastapi"><img alt="OCA/rest-framework" src="https://img.shields.io/badge/github-OCA%2Frest--framework-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/rest-framework-18-0/rest-framework-18-0-extendable_fastapi"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>This addon is a technical addon used to allows the use of
374-
<a class="reference external" href="https://pypi.org/project/extendable/">extendable</a>
375-
classes in the implementation of your fastapi endpoint handlers. It also
376-
allows you to use <a class="reference external" href="https://pypi.org/project/extendable_pydantic/">extendable_pydantic</a>
374+
<a class="reference external" href="https://pypi.org/project/extendable/">extendable</a> classes in the
375+
implementation of your fastapi endpoint handlers. It also allows you to
376+
use
377+
<a class="reference external" href="https://pypi.org/project/extendable_pydantic/">extendable_pydantic</a>
377378
models when defining your endpoint handlers request and response models.</p>
378379
<p><strong>Table of contents</strong></p>
379380
<div class="contents local topic" id="contents">
@@ -398,20 +399,25 @@ <h1><a class="toc-backref" href="#toc-entry-1">Changelog</a></h1>
398399
<h2><a class="toc-backref" href="#toc-entry-2">16.0.2.1.1 (2023-11-07)</a></h2>
399400
<p><strong>Bugfixes</strong></p>
400401
<ul class="simple">
401-
<li>Fix registry corruption when running tests difined in a class inheriting of the <em>FastAPITransactionCase</em> class if an error occurs in the <em>setUpClass</em> after the call to super(). (<a class="reference external" href="https://github.com/OCA/rest-framework/issues/392">#392</a>)</li>
402+
<li>Fix registry corruption when running tests difined in a class
403+
inheriting of the <em>FastAPITransactionCase</em> class if an error occurs
404+
in the <em>setUpClass</em> after the call to super().
405+
(<a class="reference external" href="https://github.com/OCA/rest-framework/issues/392">#392</a>)</li>
402406
</ul>
403407
</div>
404408
<div class="section" id="section-2">
405409
<h2><a class="toc-backref" href="#toc-entry-3">16.0.2.1.0 (2023-10-13)</a></h2>
406410
<p><strong>Features</strong></p>
407411
<ul class="simple">
408412
<li><ul class="first">
409-
<li>New base schemas: <em>PagedCollection</em>. This schema is used to define the
410-
the structure of a paged collection of resources. This schema is similar
411-
to the ones defined in the Odoo’s <strong>fastapi</strong> addon but works as/with
412-
extendable models.</li>
413-
<li>The <em>StrictExtendableBaseModel</em> has been moved to the <em>extendable_pydantic</em>
414-
python lib. You should consider to import it from there. (<a class="reference external" href="https://github.com/OCA/rest-framework/issues/380">#380</a>)</li>
413+
<li>New base schemas: <em>PagedCollection</em>. This schema is used to define
414+
the the structure of a paged collection of resources. This schema
415+
is similar to the ones defined in the Odoo’s <strong>fastapi</strong> addon but
416+
works as/with extendable models.</li>
417+
<li>The <em>StrictExtendableBaseModel</em> has been moved to the
418+
<em>extendable_pydantic</em> python lib. You should consider to import it
419+
from there.
420+
(<a class="reference external" href="https://github.com/OCA/rest-framework/issues/380">#380</a>)</li>
415421
</ul>
416422
</li>
417423
</ul>
@@ -422,7 +428,7 @@ <h1><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h1>
422428
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/rest-framework/issues">GitHub Issues</a>.
423429
In case of trouble, please check there if your issue has already been reported.
424430
If you spotted it first, help us to smash it by providing a detailed and welcomed
425-
<a class="reference external" href="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**">feedback</a>.</p>
431+
<a class="reference external" href="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**">feedback</a>.</p>
426432
<p>Do not contact contributors directly about support or help with technical issues.</p>
427433
</div>
428434
<div class="section" id="credits">
@@ -443,13 +449,15 @@ <h2><a class="toc-backref" href="#toc-entry-7">Contributors</a></h2>
443449
<div class="section" id="maintainers">
444450
<h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
445451
<p>This module is maintained by the OCA.</p>
446-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
452+
<a class="reference external image-reference" href="https://odoo-community.org">
453+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
454+
</a>
447455
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
448456
mission is to support the collaborative development of Odoo features and
449457
promote its widespread use.</p>
450458
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
451459
<p><a class="reference external image-reference" href="https://github.com/lmignon"><img alt="lmignon" src="https://github.com/lmignon.png?size=40px" /></a></p>
452-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/rest-framework/tree/16.0/extendable_fastapi">OCA/rest-framework</a> project on GitHub.</p>
460+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/rest-framework/tree/18.0/extendable_fastapi">OCA/rest-framework</a> project on GitHub.</p>
453461
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
454462
</div>
455463
</div>

0 commit comments

Comments
 (0)