Skip to content

Commit dc19658

Browse files
committed
[MIG] fastapi_auth_jwt_demo: Migration to 18.0
1 parent 2eef11e commit dc19658

File tree

7 files changed

+45
-29
lines changed

7 files changed

+45
-29
lines changed

fastapi_auth_jwt_demo/README.rst

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ FastAPI Auth JWT Test
77
!! This file is generated by oca-gen-addon-readme !!
88
!! changes will be overwritten. !!
99
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:0808c6ada00df4f17e6f45cad7b22796dec0e945b1dddf2814d39a484e976b78
10+
!! source digest: sha256:7e014d71c6caa0eee959cdf9b1153e4ef259b88623dbdac5ff634a95ccfd0695
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -17,21 +17,21 @@ FastAPI Auth JWT Test
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/fastapi_auth_jwt_demo
20+
:target: https://github.com/OCA/rest-framework/tree/18.0/fastapi_auth_jwt_demo
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-fastapi_auth_jwt_demo
23+
:target: https://translation.odoo-community.org/projects/rest-framework-18-0/rest-framework-18-0-fastapi_auth_jwt_demo
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
Tests and demo routes for ``fastapi_auth_jwt``.
3232

33-
The tests and routes are almost identical to those in ``auth_jwt_demo``, and
34-
the JWT validators used are those from ``auth_jwt_demo``.
33+
The tests and routes are almost identical to those in ``auth_jwt_demo``,
34+
and the JWT validators used are those from ``auth_jwt_demo``.
3535

3636
**Table of contents**
3737

@@ -44,20 +44,25 @@ Bug Tracker
4444
Bugs are tracked on `GitHub Issues <https://github.com/OCA/rest-framework/issues>`_.
4545
In case of trouble, please check there if your issue has already been reported.
4646
If you spotted it first, help us to smash it by providing a detailed and welcomed
47-
`feedback <https://github.com/OCA/rest-framework/issues/new?body=module:%20fastapi_auth_jwt_demo%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
47+
`feedback <https://github.com/OCA/rest-framework/issues/new?body=module:%20fastapi_auth_jwt_demo%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
4848

4949
Do not contact contributors directly about support or help with technical issues.
5050

5151
Credits
5252
=======
5353

5454
Authors
55-
~~~~~~~
55+
-------
5656

5757
* ACSONE SA/NV
5858

59+
Contributors
60+
------------
61+
62+
Mohamed Alkobrosli <alkobroslymohamed@gmail.com>
63+
5964
Maintainers
60-
~~~~~~~~~~~
65+
-----------
6166

6267
This module is maintained by the OCA.
6368

@@ -77,6 +82,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
7782

7883
|maintainer-sbidoul|
7984

80-
This module is part of the `OCA/rest-framework <https://github.com/OCA/rest-framework/tree/16.0/fastapi_auth_jwt_demo>`_ project on GitHub.
85+
This module is part of the `OCA/rest-framework <https://github.com/OCA/rest-framework/tree/18.0/fastapi_auth_jwt_demo>`_ project on GitHub.
8186

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

fastapi_auth_jwt_demo/__manifest__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"name": "FastAPI Auth JWT Test",
66
"summary": """
77
Test/demo module for fastapi_auth_jwt.""",
8-
"version": "16.0.2.0.0",
8+
"version": "18.0.0.0.0",
99
"license": "LGPL-3",
1010
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
1111
"maintainers": ["sbidoul"],
1212
"website": "https://github.com/OCA/rest-framework",
1313
"depends": ["fastapi_auth_jwt", "auth_jwt_demo"],
1414
"data": [],
1515
"demo": ["demo/fastapi_endpoint.xml"],
16-
"installable": False,
16+
"installable": True,
1717
}
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Mohamed Alkobrosli \<<alkobroslymohamed@gmail.com>\>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Tests and demo routes for `fastapi_auth_jwt`.
2+
3+
The tests and routes are almost identical to those in `auth_jwt_demo`,
4+
and the JWT validators used are those from `auth_jwt_demo`.

fastapi_auth_jwt_demo/readme/DESCRIPTION.rst

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

fastapi_auth_jwt_demo/static/description/index.html

Lines changed: 20 additions & 13 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 {
@@ -367,19 +367,20 @@ <h1 class="title">FastAPI Auth JWT Test</h1>
367367
!! This file is generated by oca-gen-addon-readme !!
368368
!! changes will be overwritten. !!
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370-
!! source digest: sha256:0808c6ada00df4f17e6f45cad7b22796dec0e945b1dddf2814d39a484e976b78
370+
!! source digest: sha256:7e014d71c6caa0eee959cdf9b1153e4ef259b88623dbdac5ff634a95ccfd0695
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/fastapi_auth_jwt_demo"><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-fastapi_auth_jwt_demo"><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/fastapi_auth_jwt_demo"><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-fastapi_auth_jwt_demo"><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>Tests and demo routes for <tt class="docutils literal">fastapi_auth_jwt</tt>.</p>
374-
<p>The tests and routes are almost identical to those in <tt class="docutils literal">auth_jwt_demo</tt>, and
375-
the JWT validators used are those from <tt class="docutils literal">auth_jwt_demo</tt>.</p>
374+
<p>The tests and routes are almost identical to those in <tt class="docutils literal">auth_jwt_demo</tt>,
375+
and the JWT validators used are those from <tt class="docutils literal">auth_jwt_demo</tt>.</p>
376376
<p><strong>Table of contents</strong></p>
377377
<div class="contents local topic" id="contents">
378378
<ul class="simple">
379379
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-1">Bug Tracker</a></li>
380380
<li><a class="reference internal" href="#credits" id="toc-entry-2">Credits</a><ul>
381381
<li><a class="reference internal" href="#authors" id="toc-entry-3">Authors</a></li>
382-
<li><a class="reference internal" href="#maintainers" id="toc-entry-4">Maintainers</a></li>
382+
<li><a class="reference internal" href="#contributors" id="toc-entry-4">Contributors</a></li>
383+
<li><a class="reference internal" href="#maintainers" id="toc-entry-5">Maintainers</a></li>
383384
</ul>
384385
</li>
385386
</ul>
@@ -389,7 +390,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
389390
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/rest-framework/issues">GitHub Issues</a>.
390391
In case of trouble, please check there if your issue has already been reported.
391392
If you spotted it first, help us to smash it by providing a detailed and welcomed
392-
<a class="reference external" href="https://github.com/OCA/rest-framework/issues/new?body=module:%20fastapi_auth_jwt_demo%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
393+
<a class="reference external" href="https://github.com/OCA/rest-framework/issues/new?body=module:%20fastapi_auth_jwt_demo%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
393394
<p>Do not contact contributors directly about support or help with technical issues.</p>
394395
</div>
395396
<div class="section" id="credits">
@@ -400,16 +401,22 @@ <h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
400401
<li>ACSONE SA/NV</li>
401402
</ul>
402403
</div>
404+
<div class="section" id="contributors">
405+
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
406+
<p>Mohamed Alkobrosli &lt;<a class="reference external" href="mailto:alkobroslymohamed&#64;gmail.com">alkobroslymohamed&#64;gmail.com</a>&gt;</p>
407+
</div>
403408
<div class="section" id="maintainers">
404-
<h2><a class="toc-backref" href="#toc-entry-4">Maintainers</a></h2>
409+
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
405410
<p>This module is maintained by the OCA.</p>
406-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
411+
<a class="reference external image-reference" href="https://odoo-community.org">
412+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
413+
</a>
407414
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
408415
mission is to support the collaborative development of Odoo features and
409416
promote its widespread use.</p>
410417
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
411418
<p><a class="reference external image-reference" href="https://github.com/sbidoul"><img alt="sbidoul" src="https://github.com/sbidoul.png?size=40px" /></a></p>
412-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/rest-framework/tree/16.0/fastapi_auth_jwt_demo">OCA/rest-framework</a> project on GitHub.</p>
419+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/rest-framework/tree/18.0/fastapi_auth_jwt_demo">OCA/rest-framework</a> project on GitHub.</p>
413420
<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>
414421
</div>
415422
</div>

0 commit comments

Comments
 (0)