From 07aff930c31cac3eba61a0618aed67dfe6e01967 Mon Sep 17 00:00:00 2001 From: Benoit Aimont Date: Fri, 13 Oct 2023 10:29:34 +0200 Subject: [PATCH] [IMP] checklog-odoo - no need for cli folder --- pyproject.toml | 2 +- src/checklog_odoo/__init__.py | 2 ++ src/checklog_odoo/__main__.py | 2 +- src/checklog_odoo/{cli => }/checklog.py | 0 src/checklog_odoo/cli/__init__.py | 6 ------ tests/test_checklog.py | 2 +- 6 files changed, 5 insertions(+), 9 deletions(-) rename src/checklog_odoo/{cli => }/checklog.py (100%) delete mode 100644 src/checklog_odoo/cli/__init__.py diff --git a/pyproject.toml b/pyproject.toml index 84d971b..6da6092 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ Issues = "https://github.com/unknown/checklog-odoo/issues" Source = "https://github.com/unknown/checklog-odoo" [project.scripts] -checklog-odoo = "checklog_odoo.cli.checklog:checklog_odoo" +checklog-odoo = "checklog_odoo.checklog:checklog_odoo" [tool.hatch.version] source = "vcs" diff --git a/src/checklog_odoo/__init__.py b/src/checklog_odoo/__init__.py index d2d41bd..a8c557b 100644 --- a/src/checklog_odoo/__init__.py +++ b/src/checklog_odoo/__init__.py @@ -1,3 +1,5 @@ # SPDX-FileCopyrightText: 2023-present ACSONE # # SPDX-License-Identifier: MIT + +from . import checklog diff --git a/src/checklog_odoo/__main__.py b/src/checklog_odoo/__main__.py index 9a92b07..319051f 100644 --- a/src/checklog_odoo/__main__.py +++ b/src/checklog_odoo/__main__.py @@ -4,6 +4,6 @@ import sys if __name__ == "__main__": - from checklog_odoo.cli.checklog import checklog_odoo + from checklog_odoo.checklog import checklog_odoo sys.exit(checklog_odoo()) diff --git a/src/checklog_odoo/cli/checklog.py b/src/checklog_odoo/checklog.py similarity index 100% rename from src/checklog_odoo/cli/checklog.py rename to src/checklog_odoo/checklog.py diff --git a/src/checklog_odoo/cli/__init__.py b/src/checklog_odoo/cli/__init__.py deleted file mode 100644 index 30d028c..0000000 --- a/src/checklog_odoo/cli/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -# SPDX-FileCopyrightText: 2023-present ACSONE -# -# SPDX-License-Identifier: MIT - -from . import checklog - diff --git a/tests/test_checklog.py b/tests/test_checklog.py index adc0286..d72f99e 100644 --- a/tests/test_checklog.py +++ b/tests/test_checklog.py @@ -6,7 +6,7 @@ from click.testing import CliRunner -from checklog_odoo.cli.checklog import checklog_odoo +from checklog_odoo.checklog import checklog_odoo DATA_DIR = os.path.join(os.path.dirname(__file__), "data")