From dde3513cee3a532407256e36bea715d0d1f58539 Mon Sep 17 00:00:00 2001 From: Daniel Reis Date: Sat, 27 Apr 2024 15:17:22 +0100 Subject: [PATCH] [REF] connector_magento: lint fixes --- .pre-commit-config.yaml | 1 - connector_magento/__manifest__.py | 2 +- connector_magento/components/exporter.py | 1 - connector_magento/doc/conf.py | 2 +- requirements.txt | 2 ++ setup/.setuptools-odoo-make-default-ignore | 2 ++ setup/README | 2 ++ setup/connector_magento/odoo/addons/connector_magento | 1 + setup/connector_magento/setup.py | 6 ++++++ 9 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 requirements.txt create mode 100644 setup/.setuptools-odoo-make-default-ignore create mode 100644 setup/README create mode 120000 setup/connector_magento/odoo/addons/connector_magento create mode 100644 setup/connector_magento/setup.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 41b346002..c8c28b627 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -140,4 +140,3 @@ repos: args: - --rcfile=.pylintrc-mandatory additional_dependencies: *pylint_deps - diff --git a/connector_magento/__manifest__.py b/connector_magento/__manifest__.py index 14fa33036..d71f9b81c 100644 --- a/connector_magento/__manifest__.py +++ b/connector_magento/__manifest__.py @@ -18,7 +18,7 @@ "external_dependencies": {"python": ["magento"]}, "author": "Camptocamp,Akretion,Sodexis,Odoo Community Association (OCA)", "license": "AGPL-3", - "website": "http://www.odoo-magento-connector.com", + "website": "https://github.com/OCA/connector-magento", "images": [ "images/magento_backend.png", "images/jobs.png", diff --git a/connector_magento/components/exporter.py b/connector_magento/components/exporter.py index f1a4710d3..4f5ea6ee8 100644 --- a/connector_magento/components/exporter.py +++ b/connector_magento/components/exporter.py @@ -112,7 +112,6 @@ def _run(self): def _after_export(self): """ Can do several actions after exporting a record on magento """ - pass class MagentoExporter(AbstractComponent): diff --git a/connector_magento/doc/conf.py b/connector_magento/doc/conf.py index 443f3087b..840741374 100644 --- a/connector_magento/doc/conf.py +++ b/connector_magento/doc/conf.py @@ -134,7 +134,7 @@ def add_path(*paths): # General information about the project. project = "Odoo Magento Connector" -copyright = "2013-2015, Odoo Community Association (OCA)" +copyright = "2013-2015, Odoo Community Association (OCA)" # pylint: disable=W0622 # The version info for the project you're documenting, acts as # replacement for |version| and |release|, also used in various other diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..68a654b44 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +# generated from manifests external_dependencies +magento diff --git a/setup/.setuptools-odoo-make-default-ignore b/setup/.setuptools-odoo-make-default-ignore new file mode 100644 index 000000000..207e61533 --- /dev/null +++ b/setup/.setuptools-odoo-make-default-ignore @@ -0,0 +1,2 @@ +# addons listed in this file are ignored by +# setuptools-odoo-make-default (one addon per line) diff --git a/setup/README b/setup/README new file mode 100644 index 000000000..a63d633e8 --- /dev/null +++ b/setup/README @@ -0,0 +1,2 @@ +To learn more about this directory, please visit +https://pypi.python.org/pypi/setuptools-odoo diff --git a/setup/connector_magento/odoo/addons/connector_magento b/setup/connector_magento/odoo/addons/connector_magento new file mode 120000 index 000000000..9397c4356 --- /dev/null +++ b/setup/connector_magento/odoo/addons/connector_magento @@ -0,0 +1 @@ +../../../../connector_magento \ No newline at end of file diff --git a/setup/connector_magento/setup.py b/setup/connector_magento/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/connector_magento/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)