forked from alexander-akhmetov/python-telegram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (28 loc) · 802 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
#!/usr/bin/env python
import os
import re
from distutils.core 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('python_telegram')
setup(
name='python-telegram',
version=version,
description='Python library to help you build your own Telegram clients',
author='Alexander Akhmetov',
author_email='[email protected]',
url='https://github.com/alexander-akhmetov/python-telegram',
packages=[
'python_telegram',
],
package_data={
'python_telegram': [
'lib/darwin/*',
'lib/linux/*',
],
},
)