Skip to content

Commit

Permalink
Initialize 16.0 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lmignon committed Sep 27, 2022
1 parent ab1902c commit 7a65788
Show file tree
Hide file tree
Showing 44 changed files with 70 additions and 197 deletions.
15 changes: 11 additions & 4 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.5.2
_src_path: gh:oca/oca-addons-repo-template
_commit: v1.9.0-2-g3169ba3
_src_path: ../../../oca-addons-repo-template/
ci: GitHub
dependency_installation_mode: PIP
generate_requirements_txt: true
github_check_license: true
github_enable_codecov: true
github_enable_makepot: true
github_enable_stale_action: true
github_enforce_dev_status_compatibility: true
include_wkhtmltopdf: false
odoo_version: 15.0
odoo_version: 16.0
org_name: Odoo Community Association (OCA)
org_slug: OCA
rebel_module_groups: []
repo_description: 'TODO: add repo description.'
repo_description: This repository has nice modules to interact with Odoo using JSON
an HTTP requests.
repo_name: rest-framework
repo_slug: rest-framework
repo_website: https://github.com/OCA/rest-framework
travis_apt_packages: []
travis_apt_sources: []

6 changes: 3 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: pre-commit
on:
pull_request:
branches:
- "15.0*"
- "16.0*"
push:
branches:
- "15.0"
- "15.0-ocabot-*"
- "16.0"
- "16.0-ocabot-*"

jobs:
pre-commit:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: tests
on:
pull_request:
branches:
- "15.0*"
- "16.0*"
push:
branches:
- "15.0"
- "15.0-ocabot-*"
- "16.0"
- "16.0-ocabot-*"

jobs:
unreleased-deps:
Expand Down Expand Up @@ -35,14 +35,14 @@ jobs:
fail-fast: false
matrix:
include:
- container: ghcr.io/oca/oca-ci/py3.8-odoo15.0:latest
- container: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest
makepot: "true"
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.8-ocb15.0:latest
- container: ghcr.io/oca/oca-ci/py3.10-ocb16.0:latest
name: test with OCB
services:
postgres:
image: postgres:9.6
image: postgres:12.0
env:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ build/
develop-eggs/
dist/
eggs/
lib/
lib64/
parts/
sdist/
Expand Down
47 changes: 27 additions & 20 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
exclude: |
(?x)
# NOT INSTALLABLE ADDONS
^base_rest/|
^base_rest_auth_api_key/|
^base_rest_auth_jwt/|
^base_rest_auth_user_service/|
^base_rest_datamodel/|
^base_rest_demo/|
^base_rest_pydantic/|
^datamodel/|
^extendable/|
^graphql_base/|
^graphql_demo/|
^model_serializer/|
^pydantic/|
^rest_log/|
# END NOT INSTALLABLE ADDONS
# Files and folders generated by bots, to avoid loops
^setup/|/static/description/index\.html$|
Expand All @@ -19,7 +30,7 @@ exclude: |
(LICENSE.*|COPYING.*)
default_language_version:
python: python3
node: "14.18.0"
node: "16.17.0"
repos:
- repo: local
hooks:
Expand All @@ -31,14 +42,14 @@ repos:
language: fail
files: "\\.rej$"
- repo: https://github.com/oca/maintainer-tools
rev: dfba427ba03900b69e0a7f2c65890dc48921d36a
rev: 4cd2b852214dead80822e93e6749b16f2785b2fe
hooks:
# update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons
- id: oca-fix-manifest-website
args: ["https://github.com/OCA/rest-framework"]
- repo: https://github.com/myint/autoflake
rev: v1.4
rev: v1.6.1
hooks:
- id: autoflake
args:
Expand All @@ -49,30 +60,30 @@ repos:
- --remove-duplicate-keys
- --remove-unused-variables
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 22.8.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.4.1
rev: v2.7.1
hooks:
- id: prettier
name: prettier (with plugin-xml)
additional_dependencies:
- "prettier@2.4.1"
- "@prettier/plugin-xml@1.1.0"
- "prettier@2.7.1"
- "@prettier/plugin-xml@2.2.0"
args:
- --plugin=@prettier/plugin-xml
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v7.32.0
rev: v8.24.0
hooks:
- id: eslint
verbose: true
args:
- --color
- --fix
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.3.0
hooks:
- id: trailing-whitespace
# exclude autogenerated files
Expand All @@ -94,20 +105,20 @@ repos:
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/asottile/pyupgrade
rev: v2.29.0
rev: v2.38.2
hooks:
- id: pyupgrade
args: ["--keep-percent-format"]
- repo: https://github.com/PyCQA/isort
rev: 5.9.3
rev: 5.10.1
hooks:
- id: isort
name: isort except __init__.py
args:
- --settings=.
exclude: /__init__\.py$
- repo: https://github.com/acsone/setuptools-odoo
rev: 3.0.3
rev: 3.1.5
hooks:
- id: setuptools-odoo-make-default
- id: setuptools-odoo-get-requirements
Expand All @@ -122,19 +133,15 @@ repos:
- id: flake8
name: flake8
additional_dependencies: ["flake8-bugbear==21.9.2"]
- repo: https://github.com/PyCQA/pylint
rev: v2.11.1
- repo: https://github.com/OCA/pylint-odoo
rev: 7.0.1
hooks:
- id: pylint
- id: pylint_odoo
name: pylint with optional checks
args:
- --rcfile=.pylintrc
- --exit-zero
verbose: true
additional_dependencies: &pylint_deps
- pylint-odoo==5.0.5
- id: pylint
name: pylint with mandatory checks
- id: pylint_odoo
args:
- --rcfile=.pylintrc-mandatory
additional_dependencies: *pylint_deps
4 changes: 3 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


[MASTER]
load-plugins=pylint_odoo
score=n
Expand All @@ -8,7 +10,7 @@ manifest_required_authors=Odoo Community Association (OCA)
manifest_required_keys=license
manifest_deprecated_keys=description,active
license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
valid_odoo_versions=15.0
valid_odoo_versions=16.0

[MESSAGES CONTROL]
disable=all
Expand Down
3 changes: 2 additions & 1 deletion .pylintrc-mandatory
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

[MASTER]
load-plugins=pylint_odoo
score=n
Expand All @@ -8,7 +9,7 @@ manifest_required_authors=Odoo Community Association (OCA)
manifest_required_keys=license
manifest_deprecated_keys=description,active
license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
valid_odoo_versions=15.0
valid_odoo_versions=16.0

[MESSAGES CONTROL]
disable=all
Expand Down
37 changes: 7 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,23 @@

[![Runboat](https://img.shields.io/badge/runboat-Try%20me-875A7B.png)](https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&target_branch=15.0)
[![Pre-commit Status](https://github.com/OCA/rest-framework/actions/workflows/pre-commit.yml/badge.svg?branch=15.0)](https://github.com/OCA/rest-framework/actions/workflows/pre-commit.yml?query=branch%3A15.0)
[![Build Status](https://github.com/OCA/rest-framework/actions/workflows/test.yml/badge.svg?branch=15.0)](https://github.com/OCA/rest-framework/actions/workflows/test.yml?query=branch%3A15.0)
[![codecov](https://codecov.io/gh/OCA/rest-framework/branch/15.0/graph/badge.svg)](https://codecov.io/gh/OCA/rest-framework)
[![Translation Status](https://translation.odoo-community.org/widgets/rest-framework-15-0/-/svg-badge.svg)](https://translation.odoo-community.org/engage/rest-framework-15-0/?utm_source=widget)
[![Runboat](https://img.shields.io/badge/runboat-Try%20me-875A7B.png)](https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&target_branch=16.0)
[![Pre-commit Status](https://github.com/OCA/rest-framework/actions/workflows/pre-commit.yml/badge.svg?branch=16.0)](https://github.com/OCA/rest-framework/actions/workflows/pre-commit.yml?query=branch%3A16.0)
[![Build Status](https://github.com/OCA/rest-framework/actions/workflows/test.yml/badge.svg?branch=16.0)](https://github.com/OCA/rest-framework/actions/workflows/test.yml?query=branch%3A16.0)
[![codecov](https://codecov.io/gh/OCA/rest-framework/branch/16.0/graph/badge.svg)](https://codecov.io/gh/OCA/rest-framework)
[![Translation Status](https://translation.odoo-community.org/widgets/rest-framework-16-0/-/svg-badge.svg)](https://translation.odoo-community.org/engage/rest-framework-16-0/?utm_source=widget)

<!-- /!\ do not modify above this line -->

# rest-framework

This repository has nice modules to interact with Odoo using JSON an HTTP requests.
This repository has nice modules to interact with Odoo using JSON an HTTP requests.

<!-- /!\ do not modify below this line -->

<!-- prettier-ignore-start -->

[//]: # (addons)

Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[base_rest](base_rest/) | 15.0.1.2.0 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Develop your own high level REST APIs for Odoo thanks to this addon.
[base_rest_auth_api_key](base_rest_auth_api_key/) | 15.0.1.0.0 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Base Rest: Add support for the auth_api_key security policy into the openapi documentation
[base_rest_auth_user_service](base_rest_auth_user_service/) | 15.0.1.0.1 | | Login/logout from session using a REST call
[base_rest_datamodel](base_rest_datamodel/) | 15.0.1.1.0 | | Datamodel binding for base_rest
[base_rest_demo](base_rest_demo/) | 15.0.1.0.1 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Demo addon for Base REST
[base_rest_pydantic](base_rest_pydantic/) | 15.0.4.3.0 | | Pydantic binding for base_rest
[datamodel](datamodel/) | 15.0.1.0.1 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | This addon allows you to define simple data models supporting serialization/deserialization
[extendable](extendable/) | 15.0.1.0.1 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Extendable classes registry loader for Odoo
[model_serializer](model_serializer/) | 15.0.1.2.0 | [![fdegrave](https://github.com/fdegrave.png?size=30px)](https://github.com/fdegrave) | Automatically translate Odoo models into Datamodels for (de)serialization
[pydantic](pydantic/) | 15.0.1.1.1 | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Utility addon to ease mapping between Pydantic and Odoo models
[rest_log](rest_log/) | 15.0.1.0.0 | [![simahawk](https://github.com/simahawk.png?size=30px)](https://github.com/simahawk) | Track REST API calls into DB


Unported addons
---------------
addon | version | maintainers | summary
--- | --- | --- | ---
[base_rest_auth_jwt](base_rest_auth_jwt/) | 15.0.1.1.0 (unported) | [![lmignon](https://github.com/lmignon.png?size=30px)](https://github.com/lmignon) | Base Rest: Add support for the auth_jwt security policy into the openapi documentation
[graphql_base](graphql_base/) | 14.0.1.0.0 (unported) | [![sbidoul](https://github.com/sbidoul.png?size=30px)](https://github.com/sbidoul) | Base GraphQL/GraphiQL controller
[graphql_demo](graphql_demo/) | 14.0.1.0.0 (unported) | [![sbidoul](https://github.com/sbidoul.png?size=30px)](https://github.com/sbidoul) | GraphQL Demo
This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.

[//]: # (end addons)

Expand Down
2 changes: 1 addition & 1 deletion base_rest/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
"apispec>=4.0.0",
]
},
"installable": True,
"installable": False,
}
2 changes: 1 addition & 1 deletion base_rest_auth_api_key/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"website": "https://github.com/OCA/rest-framework",
"depends": ["base_rest", "auth_api_key"],
"maintainers": ["lmignon"],
"installable": True,
"installable": False,
"auto_install": True,
"external_dependencies": {
"python": [
Expand Down
2 changes: 1 addition & 1 deletion base_rest_auth_user_service/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"author": "Wakari, Odoo Community Association (OCA)",
"depends": ["base_rest"],
"data": [],
"installable": True,
"installable": False,
}
2 changes: 1 addition & 1 deletion base_rest_datamodel/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"data": [],
"demo": [],
"external_dependencies": {"python": ["apispec>=4.0.0", "marshmallow"]},
"installable": True,
"installable": False,
}
2 changes: 1 addition & 1 deletion base_rest_demo/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
"external_dependencies": {
"python": ["jsondiff", "extendable-pydantic", "pydantic"]
},
"installable": True,
"installable": False,
}
2 changes: 1 addition & 1 deletion base_rest_pydantic/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"depends": ["base_rest"],
"data": [],
"demo": [],
"installable": True,
"installable": False,
"external_dependencies": {
"python": [
"pydantic",
Expand Down
2 changes: 1 addition & 1 deletion datamodel/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"data": [],
"demo": [],
"external_dependencies": {"python": ["marshmallow", "marshmallow-objects>=2.0.0"]},
"installable": True,
"installable": False,
}
1 change: 1 addition & 0 deletions extendable/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
"website": "https://github.com/OCA/rest-framework",
"depends": [],
"external_dependencies": {"python": ["extendable"]},
"installable": False,
}
2 changes: 1 addition & 1 deletion model_serializer/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
]
},
"data": [],
"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 @@ -17,5 +17,5 @@
"external_dependencies": {
"python": ["pydantic", "contextvars", "typing-extensions"]
},
"installable": True,
"installable": False,
}
12 changes: 0 additions & 12 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
# generated from manifests external_dependencies
apispec>=4.0.0
cerberus
contextvars;python_version<"3.7"
extendable
extendable-pydantic
jsondiff
marshmallow
marshmallow-objects>=2.0.0
parse-accept-language
pydantic
pyquerystring
typing-extensions
1 change: 1 addition & 0 deletions rest_log/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
"views/rest_log_views.xml",
"views/menu.xml",
],
"installable": False,
}
1 change: 0 additions & 1 deletion setup/_metapackage/VERSION.txt

This file was deleted.

Loading

0 comments on commit 7a65788

Please sign in to comment.