/
setup.py
41 lines (34 loc) · 1001 Bytes
/
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
#!/usr/bin/env python
import os
import re
from setuptools import setup
def get_version(package):
"""
Returns version of a package (`__version__` in `init.py`).
"""
init_py = open(os.path.join(package, '__init__.py')).read()
return re.match("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
version = get_version('telegram')
setup(
name='python-telegram',
version=version,
description='Python library to help you build your own Telegram clients',
author='Alexander Akhmetov',
author_email='me@aleks.sh',
url='https://github.com/alexander-akhmetov/python-telegram',
long_description_content_type='text/markdown',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
packages=[
'telegram',
],
package_data={
'telegram': [
'lib/darwin/*',
'lib/linux/*',
'py.typed',
],
},
install_requires=[
'telegram-text~=0.1',
],
)