forked from matrix-org/matrix-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
53 lines (46 loc) · 1.53 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
#!/usr/bin/env python
from setuptools import setup
import codecs
import os
here = os.path.abspath(os.path.dirname(__file__))
def read_file(names, encoding='utf-8'):
file_path = os.path.join(here, *names)
if encoding:
with codecs.open(file_path, encoding=encoding) as f:
return f.read()
else:
with open(file_path, 'rb') as f:
return f.read()
def exec_file(names):
code = read_file(names, encoding=None)
result = {}
exec(code, result)
return result
setup(
name='matrix_client',
version=exec_file(('matrix_client', '__init__.py',))['__version__'],
description='Client-Server SDK for Matrix',
long_description=read_file(('README.rst',)),
author='The Matrix.org Team',
author_email='team@matrix.org',
url='https://github.com/matrix-org/matrix-python-sdk',
packages=['matrix_client'],
license='Apache License, Version 2.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Communications :: Chat',
'Topic :: Communications :: Conferencing',
],
keywords='chat sdk matrix matrix.org',
install_requires=[
'requests'
],
extras_require={
'test': ['tox', 'pytest', 'flake8', 'responses'],
'doc': ['Sphinx==1.4.6', 'sphinx-rtd-theme==0.1.9', 'sphinxcontrib-napoleon==0.5.3'],
}
)