-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (40 loc) · 1.23 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
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env python3
import os
import re
from setuptools import setup
root = os.path.abspath(os.path.dirname(__file__))
def get_version():
with open(os.path.join(root, 'src/luagram/luagram.py')) as file:
for line in file:
match = re.match('__version__ = \'(.*)\'', line)
if match:
return match.group(1)
raise SystemExit('Could not find version string')
with open('README.md', encoding='utf-8') as file:
long_description = file.read()
keywords = [
'luagram',
'lua-mtproto',
'luagram-client',
'luagram-mtproto',
'telegram-client',
'telegram-mtproto'
]
requirements = ['lupa>=2.2']
setup(
name='luagram',
version=get_version(),
packages=['src', 'src/luagram', 'src/luagram/gadget'],
package_data={},
url='https://github.com/irmilad/luagram',
license='MIT',
author='Milad Heidary',
description='lua telegram client',
install_requires=requirements,
python_requires='>=3',
entry_points={'console_scripts': ['luagram=src.__main__:main']},
zip_safe=False,
keywords=keywords,
long_description=long_description,
long_description_content_type='text/markdown'
)