Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
63 lines (54 loc) · 1.86 KB
/
Copy pathsetup.py
File metadata and controls
63 lines (54 loc) · 1.86 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
fromtypingimportOptional
fromsetuptoolsimportsetup, find_packages
package_name='learn_python_bot'
defget_version() ->Optional[str]:
withopen(f'{package_name}/__init__.py', 'r') asf:
lines=f.readlines()
forlineinlines:
ifline.startswith('__version__'):
returnline.split('=')[-1].strip().strip("'")
defget_long_description() ->str:
withopen('README.md', encoding='utf8') asf:
returnf.read()
setup(
name=package_name,
description='Bot for learn.python.ru students&staff.',
long_description=get_long_description(),
long_description_content_type='text/markdown',
classifiers=[
'Environment :: Console',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
packages=find_packages(),
version=get_version(),
author='Ilya Lebedev',
author_email='melevir@gmail.com',
install_requires=[
'setuptools',
'python-telegram-bot[socks]==12.7',
'click>=7.1.2',
'requests>=2.23.0',
'dateparser>=0.7.4',
'wrapt==1.12.1',
'sentry-sdk>=0.14.4',
'redis==3.5.3',
'pytz==2020.1',
'prettytable==0.7.2',
],
entry_points={
'console_scripts': [
'lp_run_bot = learn_python_bot.bot:main',
'lp_ask_for_feedback = learn_python_bot.bin.ask_for_feedback:main',
'lp_send_stat_report = learn_python_bot.bin.send_stat_report:main',
'lp_notify_on_tomorrow_event = learn_python_bot.bin.notify_on_tommorow_event:main',
],
},
url='https://github.com/moscowpython/capaldi',
license='MIT',
py_modules=[package_name],
zip_safe=False,
)