47 lines
1.2 KiB
Python
47 lines
1.2 KiB
Python
#!/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="matrix.org",
|
|
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",
|
|
],
|
|
keywords="matrix matrix.org",
|
|
install_requires=[
|
|
"requests"
|
|
],
|
|
)
|