slixmpp-omemo/setup.py
Maxime “pep” Buquet 4ee6b424dd
Make no promises for python 3.5/3.6
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-29 01:54:52 +01:00

64 lines
1.7 KiB
Python
Executable file

#!/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
from setuptools import setup
MODULE_FILE_PATH = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
'slixmpp_omemo', 'version.py'
)
def get_version() -> str:
"""Returns version by looking at slixmpp_omemo/version.py"""
version = {}
with open(MODULE_FILE_PATH) as file:
exec(file.read(), version)
if '__version__' in version:
return version['__version__']
return 'missingno'
DESCRIPTION = ('Slixmpp 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',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Internet :: XMPP',
'Topic :: Security :: Cryptography',
'Topic :: Software Development :: Libraries :: Python Modules',
]
setup(
name="slixmpp-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/slixmpp-omemo',
license='GPLv3',
platforms=['any'],
packages=['slixmpp_omemo'],
install_requires=['slixmpp', 'omemo', 'omemo-backend-signal'],
classifiers=CLASSIFIERS,
)