-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathsetup.py
41 lines (32 loc) · 1015 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
35
36
37
38
39
40
41
import re
from distutils.core import setup
long_description = ''
tests_require = ['responses', 'mock']
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except:
pass
# Get the version
version_regex = r'__version__ = ["\']([^"\']*)["\']'
with open('fbmq/__init__.py', 'r') as f:
text = f.read()
match = re.search(version_regex, text)
if match:
VERSION = match.group(1)
else:
raise RuntimeError("No version number found!")
setup(name='fbmq',
version=VERSION,
description='A Python Library For Using The Facebook Messenger Platform API',
long_description=long_description,
url='https://github.com/conbus/fbmq',
author='kimwz',
author_email='[email protected]',
license='MIT',
packages=['fbmq'],
install_requires=['requests>=2.0', 'flask'],
tests_require=tests_require,
extras_require={'test': tests_require},
keywords='Facebook Messenger Platform Chatbot',
)