forked from fedora-infra/datagrepper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (38 loc) · 1.04 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
#!/usr/bin/env python
"""
Setup script
"""
from setuptools import setup
try:
import logging
import multiprocessing
except ImportError:
pass
def strip_comments(lines):
for line in lines:
line = line.strip()
if line.startswith('#'):
continue
if not line:
continue
if not '#' in line:
yield line
else:
yield line[:line.index('#')]
def get_requires(filename="requirements.txt"):
with open(filename, 'r') as f:
return list(strip_comments(f.readlines()))
setup(
name='datagrepper',
description='A webapp to query fedmsg history',
version='0.9.5',
author='Ian Weller and Ralph Bean',
author_email='[email protected], [email protected]',
license='GPLv2+',
url='https://github.com/fedora-infra/datagrepper/',
packages=['datagrepper'],
include_package_data=True,
install_requires=get_requires(),
tests_require=get_requires(filename='test-requirements.txt'),
test_suite='nose.collector',
)