From 3858d805101836a8e814a87c88a7b684b3cabdd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 17 Feb 2020 03:07:58 +0100 Subject: [PATCH] Use setuptools entry_point instead of namespace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Requires poezio update (3577f887). This simplifies some things for the tooling. No more name conflicts with the omemo library for one, and no need for an almost empty folder. Signed-off-by: Maxime “pep” Buquet --- {poezio_plugins/omemo => poezio_omemo}/__init__.py | 0 {poezio_plugins/omemo => poezio_omemo}/version.py | 0 setup.py | 5 +++-- 3 files changed, 3 insertions(+), 2 deletions(-) rename {poezio_plugins/omemo => poezio_omemo}/__init__.py (100%) rename {poezio_plugins/omemo => poezio_omemo}/version.py (100%) diff --git a/poezio_plugins/omemo/__init__.py b/poezio_omemo/__init__.py similarity index 100% rename from poezio_plugins/omemo/__init__.py rename to poezio_omemo/__init__.py diff --git a/poezio_plugins/omemo/version.py b/poezio_omemo/version.py similarity index 100% rename from poezio_plugins/omemo/version.py rename to poezio_omemo/version.py diff --git a/setup.py b/setup.py index 02b5684..fea9682 100755 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ from setuptools import setup MODULE_FILE_PATH = os.path.join( os.path.dirname(os.path.abspath(__file__)), - 'poezio_plugins/omemo', 'version.py' + 'poezio_omemo', 'version.py' ) def get_version() -> str: @@ -59,7 +59,8 @@ setup( url='https://lab.louiz.org/poezio/poezio-omemo', license='GPLv3', platforms=['any'], - packages=['poezio_plugins.omemo'], + packages=['poezio_omemo'], + entry_points={'poezio_plugins': 'omemo = poezio_omemo'}, install_requires=['poezio', 'slixmpp-omemo'], classifiers=CLASSIFIERS, )