-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
executable file
·68 lines (64 loc) · 1.67 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env python
import os
import re
from setuptools import setup, find_packages
VERSION = "0.1.0a1"
# this is overwritten by the makefile.
try:
with open(os.path.join(os.path.dirname(__file__), 'CHANGELOG.rst'), 'r') as f:
for line in f.readlines():
m = re.match(r'(\d+\.\d+\.\d+\S*)', line)
if m:
VERSION = m.group(1)
break
except Exception:
import warnings
warnings.warn("version not found, defaulting to {}".format(VERSION))
install_requires = [
'aiohttp',
'feedparser~=6.0.0',
'mailer',
'pendulum~=2.0',
'html2text',
'python-box~=4.2',
'PyYAML',
'zc.lockfile',
]
tests_require = install_requires + [
'coverage',
'parameterized',
'pynamodb',
"pytest",
'slackclient~=2.5',
'testfixtures',
]
setup(
name = 'rssalertbot',
version = VERSION,
description = 'RSS fetch and alert bot',
author = 'Michael Stella',
author_email = '[email protected]',
url = 'https://github.com/JWPlayer/rssalertbot',
packages = find_packages(exclude=['tests']),
entry_points = {
'console_scripts': [
'rssalertbot=rssalertbot.cli:main',
]
},
python_requires = ">=3.6",
install_requires = install_requires,
tests_require = tests_require,
extras_require = {
'dynamo': [
'pynamodb',
],
'slack': [
'slackclient~=2.5',
],
},
classifiers = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
],
)