2019-12-23 01:12:07 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
"""
|
|
|
|
Poezio OMEMO plugin
|
2021-07-18 21:46:23 +00:00
|
|
|
Copyright (C) 2021 Maxime “pep” Buquet <pep@bouah.net>
|
2019-12-23 01:12:07 +00:00
|
|
|
This file is part of poezio-omemo.
|
|
|
|
|
|
|
|
See the file LICENSE for copying permission.
|
|
|
|
"""
|
|
|
|
|
|
|
|
import os
|
|
|
|
from typing import Any, Dict
|
|
|
|
from setuptools import setup
|
|
|
|
|
|
|
|
|
|
|
|
MODULE_FILE_PATH = os.path.join(
|
|
|
|
os.path.dirname(os.path.abspath(__file__)),
|
2020-02-17 02:07:58 +00:00
|
|
|
'poezio_omemo', 'version.py'
|
2019-12-23 01:12:07 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
def get_version() -> str:
|
|
|
|
"""Returns version by looking at poezio_version/version.py"""
|
|
|
|
|
|
|
|
version: Dict[str, Any] = {}
|
|
|
|
with open(MODULE_FILE_PATH) as file:
|
|
|
|
exec(file.read(), version)
|
|
|
|
|
|
|
|
if '__version__' in version:
|
|
|
|
return version['__version__']
|
|
|
|
return 'missingno'
|
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION = ('Poezio OMEMO plugin')
|
|
|
|
VERSION = get_version()
|
|
|
|
with open('README.rst', encoding='utf8') as readme:
|
|
|
|
LONG_DESCRIPTION = readme.read()
|
|
|
|
|
|
|
|
CLASSIFIERS = [
|
|
|
|
'Development Status :: 3 - Alpha',
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
|
|
|
|
'Programming Language :: Python',
|
2022-03-14 21:48:31 +00:00
|
|
|
'Programming Language :: Python :: 3.9',
|
|
|
|
'Programming Language :: Python :: 3.10',
|
2022-10-21 11:15:36 +00:00
|
|
|
'Programming Language :: Python :: 3.11',
|
2019-12-23 01:12:07 +00:00
|
|
|
'Topic :: Internet :: XMPP',
|
|
|
|
'Topic :: Security :: Cryptography',
|
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
|
|
]
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name="poezio-omemo",
|
|
|
|
version=VERSION,
|
|
|
|
description=DESCRIPTION,
|
|
|
|
long_description=LONG_DESCRIPTION,
|
|
|
|
long_description_content_type='text/x-rst',
|
|
|
|
author='Maxime Buquet',
|
|
|
|
author_email='pep@bouah.net',
|
|
|
|
url='https://lab.louiz.org/poezio/poezio-omemo',
|
|
|
|
license='GPLv3',
|
|
|
|
platforms=['any'],
|
2020-02-17 02:07:58 +00:00
|
|
|
packages=['poezio_omemo'],
|
|
|
|
entry_points={'poezio_plugins': 'omemo = poezio_omemo'},
|
2022-10-21 18:04:42 +00:00
|
|
|
install_requires=['slixmpp-omemo>=0.8.0'],
|
2019-12-23 01:12:07 +00:00
|
|
|
classifiers=CLASSIFIERS,
|
|
|
|
)
|