-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathsetup.py
39 lines (36 loc) · 1.39 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
# Script for packaging generated model_pb2*.py into tinode_grpc module.
import setuptools
from pkg_resources import resource_string
with open('README.md', 'r') as readme_file:
long_description = readme_file.read()
with open("tinode_grpc/GIT_VERSION", "r") as version_file:
git_version = version_file.read().strip()
# git_version = resource_string(__name__, 'tinode_grpc/GIT_VERSION').decode('ascii')
setuptools.setup(
name="tinode_grpc",
version=git_version,
author="Tinode Authors",
author_email="info@tinode.co",
description="Tinode gRPC bindings.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/tinode/chat",
packages=setuptools.find_packages(),
install_requires=['protobuf>=3.6.1', 'grpcio>=1.19.0'],
license="Apache 2.0",
keywords="chat messaging messenger im tinode",
package_data={
"": ["GIT_VERSION", "*.pyi"],
},
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Communications :: Chat",
"Intended Audience :: Developers",
],
)