mirror of
https://github.com/tinode/chat.git
synced 2026-05-07 20:12:42 +00:00
35 lines
929 B
Python
35 lines
929 B
Python
import setuptools
|
|
from subprocess import Popen, PIPE
|
|
|
|
with open('README.md', 'r') as fh:
|
|
long_description = fh.read()
|
|
|
|
setuptools.setup(
|
|
name="tinode-chatbot",
|
|
version=git_version(),
|
|
author="Tinode Authors",
|
|
author_email="info@tinode.co",
|
|
description="Tinode demo chatbot.",
|
|
long_description=long_description,
|
|
long_description_content_type="text/markdown",
|
|
url="https://github.com/tinode/chat",
|
|
packages=setuptools.find_packages(),
|
|
install_requires=['grpcio>=1.40.0'],
|
|
classifiers=(
|
|
"Programming Language :: Python :: 3",
|
|
"License :: OSI Approved :: Apache 2.0",
|
|
"Operating System :: OS Independent",
|
|
),
|
|
)
|
|
|
|
def git_version():
|
|
try:
|
|
p = Popen(['git', 'describe', '--tags'],
|
|
stdout=PIPE, stderr=PIPE)
|
|
p.stderr.close()
|
|
line = p.stdout.readlines()[0]
|
|
return line.strip()
|
|
|
|
except:
|
|
return None
|