2019-02-17 17:39:00 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
"""
|
|
|
|
Slixmpp OMEMO plugin
|
|
|
|
Copyright (C) 2019 Maxime “pep” Buquet <pep@bouah.net>
|
|
|
|
This file is part of slixmpp-omemo.
|
|
|
|
|
|
|
|
See the file LICENSE for copying permission.
|
|
|
|
"""
|
|
|
|
|
|
|
|
import os
|
2019-02-27 09:25:32 +00:00
|
|
|
from setuptools import setup
|
2019-02-17 17:39:00 +00:00
|
|
|
|
|
|
|
|
2019-02-24 17:00:58 +00:00
|
|
|
MODULE_FILE_PATH = os.path.join(
|
|
|
|
os.path.dirname(os.path.abspath(__file__)),
|
|
|
|
'slixmpp_omemo', 'version.py'
|
|
|
|
)
|
2019-02-17 17:39:00 +00:00
|
|
|
|
2019-02-24 17:00:58 +00:00
|
|
|
def get_version() -> str:
|
|
|
|
"""Returns version by looking at slixmpp_omemo/version.py"""
|
2019-02-17 17:39:00 +00:00
|
|
|
|
2019-02-24 17:00:58 +00:00
|
|
|
version = {}
|
|
|
|
with open(MODULE_FILE_PATH) as file:
|
|
|
|
exec(file.read(), version)
|
2019-02-17 17:39:00 +00:00
|
|
|
|
2019-02-24 17:00:58 +00:00
|
|
|
if '__version__' in version:
|
|
|
|
return version['__version__']
|
|
|
|
return 'missingno'
|
2019-02-17 17:39:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION = ('Slixmpp OMEMO plugin')
|
2019-02-24 17:00:58 +00:00
|
|
|
VERSION = get_version()
|
2019-02-17 17:39:00 +00:00
|
|
|
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:49:11 +00:00
|
|
|
'Programming Language :: Python :: 3.9',
|
|
|
|
'Programming Language :: Python :: 3.10',
|
2019-02-17 17:39:00 +00:00
|
|
|
'Topic :: Internet :: XMPP',
|
|
|
|
'Topic :: Security :: Cryptography',
|
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
|
|
]
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name="slixmpp-omemo",
|
|
|
|
version=VERSION,
|
|
|
|
description=DESCRIPTION,
|
|
|
|
long_description=LONG_DESCRIPTION,
|
2019-02-24 17:28:27 +00:00
|
|
|
long_description_content_type='text/x-rst',
|
2019-02-17 17:39:00 +00:00
|
|
|
author='Maxime Buquet',
|
|
|
|
author_email='pep@bouah.net',
|
|
|
|
url='https://lab.louiz.org/poezio/slixmpp-omemo',
|
|
|
|
license='GPLv3',
|
|
|
|
platforms=['any'],
|
2022-03-24 14:56:36 +00:00
|
|
|
package_data={'slixmpp_omemo': ['py.typed']},
|
2019-02-27 09:25:32 +00:00
|
|
|
packages=['slixmpp_omemo'],
|
2022-03-14 15:16:29 +00:00
|
|
|
install_requires=[
|
|
|
|
'slixmpp>=1.8.0',
|
|
|
|
'omemo-backend-signal>=0.3.0',
|
|
|
|
'omemo>=0.14.0',
|
|
|
|
],
|
2019-02-17 17:39:00 +00:00
|
|
|
classifiers=CLASSIFIERS,
|
|
|
|
)
|