Skip to content
Snippets Groups Projects
Commit 5cc31bc61121 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:shirt: pylint, use correct XCG website URL, use copyright sign

parent 9b807ed3d967
No related branches found
No related tags found
No related merge requests found
Pipeline #58282 passed
##############################################################################
#
# ICU Format, a module for Odoo
# Copyright (C) 2019-2021, 2022 XCG Consulting <https://xcg-consulting.fr/>
# Copyright © 2019-2021, 2022 XCG Consulting <https://xcg-consulting.fr>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
......@@ -24,7 +24,7 @@
"version": "16.0.1.0.0",
"category": "Technical",
"author": "XCG Consulting",
"website": "https://odoo.consulting/",
"website": "https://orbeet.io/",
"license": "AGPL-3",
"depends": ["base"],
"external_dependencies": {"python": ["PyICU"]},
......
......@@ -2,7 +2,7 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2014, 2018, 2022 XCG Consulting
# Copyright © 2014, 2018, 2022 XCG Consulting
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
......
......@@ -11,7 +11,8 @@
import configparser
import os
import sys
from importlib.metadata import PackageNotFoundError, version
from importlib.metadata import PackageNotFoundError
from importlib.metadata import version as import_version
from odoo_scripts.config import Configuration
......@@ -55,7 +56,7 @@
# The full version, including alpha/beta/rc tags.
try:
# TEMPLATE Update with the name of the project as defined in pyproject.toml
release = version("odoo-addon-icuformat")
release = import_version("odoo-addon-icuformat")
# The short X.Y version.
version = ".".join(release.split(".")[:2])
except PackageNotFoundError:
......@@ -176,7 +177,7 @@
c.read(setup_path)
if c.has_section("odoo_scripts"):
# reload with odoo_scripts
c = Configuration(os.path.dirname(setup_path))
c = Configuration(directory)
else:
c = None
if not c:
......
##############################################################################
#
# ICU Format, a module for Odoo
# Copyright (C) 2021 XCG Consulting <https://odoo.consulting>
# Copyright © 2021 XCG Consulting <https://xcg-consulting.fr/>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
......
##############################################################################
#
# ICU Format, a module for Odoo
# Copyright (C) 2019-2021 XCG Consulting <https://odoo.consulting>
# Copyright © 2019-2021 XCG Consulting <https://xcg-consulting.fr>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
......@@ -21,8 +21,6 @@
import logging
from typing import Callable, Dict, Mapping, Optional, ParamSpec, TypeVar, Union
# Disable the warning as the library name is pyicu
# pylint: disable=missing-manifest-dependency
from icu import Formattable, ICUError, ListFormatter, Locale, MessageFormat
_logger = logging.getLogger(__name__)
......
##############################################################################
#
# ICU Format, a module for Odoo
# Copyright (C) 2019-2021 XCG Consulting <https://odoo.consulting>
# Copyright © 2019-2021 XCG Consulting <https://xcg-consulting.fr>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
......
from . import base # noqa: F401
from . import currency # noqa: F401
from . import base, currency
##############################################################################
#
# ICU Format, a module for Odoo
# Copyright (C) 2021, 2022 XCG Consulting (https://xcg-consulting.fr/)
# Copyright © 2021, 2022 XCG Consulting (https://xcg-consulting.fr/)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
......@@ -21,8 +21,7 @@
import logging
from typing import Dict, Mapping, Union
# Disable the warning as the library name is pyicu
from icu import ICUError # pylint: disable=missing-manifest-dependency
from icu import ICUError
from odoo import _, models
......
##############################################################################
#
# ICU Format, a module for Odoo
# Copyright (C) 2021, 2022 XCG Consulting <https://xcg-consulting.fr/>
# Copyright © 2021, 2022 XCG Consulting <https://xcg-consulting.fr/>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
......
###############################################################################
#
# ICU Format, a module for Odoo
# Copyright (C) 2019, 2021, 2022 XCG Consulting (https://xcg-consulting.fr/)
# Copyright © 2019, 2021, 2022 XCG Consulting (https://xcg-consulting.fr/)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
......
###############################################################################
#
# ICU Format, a module for Odoo
# Copyright (C) 2019, 2021, 2022 XCG Consulting (https://xcg-consulting.fr/)
# Copyright © 2019, 2021, 2022 XCG Consulting (https://xcg-consulting.fr/)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment