-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
35 lines (31 loc) · 1.05 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
import os
import shutil
from distutils.core import setup
PKG_DIR = 'dumbot'
BOT_SRC = 'dumbot.py'
INIT_PY = os.path.join(PKG_DIR, '__init__.py')
try:
if os.path.isfile(BOT_SRC):
os.makedirs(PKG_DIR, exist_ok=True)
shutil.copy(BOT_SRC, INIT_PY)
setup(
name='dumbot',
packages=[PKG_DIR],
version='1.5.6',
description='dumb async telegram bot for python 3',
author='Lonami Exo',
author_email='[email protected]',
keywords='telegram async asyncio bot'.split(),
classifiers=['Development Status :: 5 - Production/Stable',
'Framework :: AsyncIO',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Topic :: Communications :: Chat']
)
finally:
if os.path.isfile(BOT_SRC):
if os.path.isfile(INIT_PY):
os.remove(INIT_PY)
if os.path.isdir(PKG_DIR):
os.rmdir(PKG_DIR)