This repository has been archived by the owner on Jan 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
/
setup.py
92 lines (82 loc) · 2.98 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/usr/bin/env python3
########################################################################
# File name: setup.py
# This file is part of: aioxmpp
#
# LICENSE
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program. If not, see
# <http://www.gnu.org/licenses/>.
#
########################################################################
import os.path
import runpy
import sys
import setuptools
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.rst"), encoding="utf-8") as f:
long_description = f.read()
version_mod = runpy.run_path("aioxmpp/_version.py")
lxml_constraint = "lxml~=4.0"
if sys.version_info < (3, 5):
lxml_constraint += ",<4.4"
sortedcollections_constraint = "sortedcollections~=2.1"
if sys.version_info < (3, 6):
sortedcollections_constraint = "sortedcollections~=1.0"
install_requires = [
'aiosasl>=0.3', # need 0.2+ for LGPLv3
'aioopenssl>=0.1',
'babel~=2.3',
'dnspython>=1.0,<3.0',
lxml_constraint,
'multidict<7,>=2.0',
sortedcollections_constraint,
'pyOpenSSL',
'pyasn1',
'pyasn1_modules',
'tzlocal>=1.2',
]
if tuple(map(int, setuptools.__version__.split(".")[:3])) < (6, 0, 0):
for i, item in enumerate(install_requires):
install_requires[i] = item.replace("~=", ">=")
if sys.version_info[:3] < (3, 5, 0):
install_requires.append("typing")
setup(
name="aioxmpp",
version=version_mod["__version__"].replace("-", ""),
description="Pure-python XMPP library for asyncio",
long_description=long_description,
url="https://github.com/horazont/aioxmpp",
author="Jonas Schäfer",
author_email="jonas@wielicki.name",
license="LGPLv3+",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: POSIX",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Communications :: Chat",
"Topic :: Internet :: XMPP",
],
keywords="asyncio xmpp library",
install_requires=install_requires,
packages=find_packages(exclude=["tests*", "benchmarks*"])
)