slixmpp/setup.py

50 lines
1.4 KiB
Python
Raw Normal View History

2014-08-16 20:37:29 +00:00
#!/usr/bin/env python3
2011-06-18 21:32:09 +00:00
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Nathanael C. Fritz
2011-06-18 21:32:09 +00:00
# All Rights Reserved
#
# This software is licensed as described in the README.rst and LICENSE
# file, which you should have received as part of this distribution.
2011-06-18 21:32:09 +00:00
from pathlib import Path
2011-11-08 15:01:16 +00:00
try:
from setuptools import setup
2011-11-08 15:01:16 +00:00
except ImportError:
from distutils.core import setup
2011-06-18 21:32:09 +00:00
from run_tests import TestCommand
2014-07-17 12:19:04 +00:00
from slixmpp.version import __version__
2011-06-18 21:32:09 +00:00
VERSION = __version__
DESCRIPTION = ('Slixmpp is an elegant Python library for XMPP (aka Jabber, '
'Google Talk, etc).')
with open('README.rst', encoding='utf8') as readme:
LONG_DESCRIPTION = readme.read()
2011-06-18 21:32:09 +00:00
CLASSIFIERS = [
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.4',
'Topic :: Software Development :: Libraries :: Python Modules',
]
2011-06-18 21:32:09 +00:00
packages = [str(mod.parent) for mod in Path('slixmpp').rglob('__init__.py')]
2011-06-18 21:32:09 +00:00
setup(
name="slixmpp",
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author='Florent Le Coz',
author_email='louiz@louiz.org',
url='https://dev.louiz.org/projects/slixmpp',
license='MIT',
platforms=['any'],
packages=packages,
requires=['aiodns', 'pyasn1', 'pyasn1_modules'],
classifiers=CLASSIFIERS,
cmdclass={'test': TestCommand}
)