Use setuptools entry_point instead of namespace

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 <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-02-17 03:07:58 +01:00
parent 0a9f1b14fe
commit 3858d80510
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2
3 changed files with 3 additions and 2 deletions

View file

@ -16,7 +16,7 @@ from setuptools import setup
MODULE_FILE_PATH = os.path.join( MODULE_FILE_PATH = os.path.join(
os.path.dirname(os.path.abspath(__file__)), os.path.dirname(os.path.abspath(__file__)),
'poezio_plugins/omemo', 'version.py' 'poezio_omemo', 'version.py'
) )
def get_version() -> str: def get_version() -> str:
@ -59,7 +59,8 @@ setup(
url='https://lab.louiz.org/poezio/poezio-omemo', url='https://lab.louiz.org/poezio/poezio-omemo',
license='GPLv3', license='GPLv3',
platforms=['any'], platforms=['any'],
packages=['poezio_plugins.omemo'], packages=['poezio_omemo'],
entry_points={'poezio_plugins': 'omemo = poezio_omemo'},
install_requires=['poezio', 'slixmpp-omemo'], install_requires=['poezio', 'slixmpp-omemo'],
classifiers=CLASSIFIERS, classifiers=CLASSIFIERS,
) )