forked from ekeih/OmNomNom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (41 loc) · 1.38 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
from datetime import datetime
from os import getenv
from setuptools import find_packages, setup
def readme():
with open('README.md') as f:
content = f.read()
try:
# noinspection PyUnresolvedReferences
from pypandoc import convert
return convert(content, 'rst', 'md')
except ImportError:
print("warning: pypandoc module not found, could not convert Markdown to RST")
return content
def requirements():
with open('requirements.txt') as f:
requirements_file = f.readlines()
return [r.strip() for r in requirements_file]
setup(
name='omnbot',
version=getenv('DRONE_TAG', default=datetime.now().strftime('%Y.%m.%d.dev%H%M%S')),
description='OmNomNom - A simple Telegram bot to get canteen information',
long_description=readme(),
url='https://omnbot.io',
author='Max Rosin',
author_email='[email protected]',
license='AGPL',
classifiers=[
'Programming Language :: Python :: 3'
],
python_requires='>=3',
install_requires=requirements(),
packages=find_packages(),
entry_points={
'console_scripts': [
'omnbot-worker=backend.backend:worker',
'omnbot-housekeeping=backend.backend:housekeeping',
'omnbot-beat=backend.backend:beat',
'omnbot-frontend=frontend.frontend:main'
]
}
)