forked from fedora-infra/datanommer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (55 loc) · 1.87 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
# This file is a part of datanommer, a message sink for fedmsg.
# Copyright (C) 2014, Red Hat, Inc.
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
# Ridiculous as it may seem, we need to import multiprocessing and
# logging here in order to get tests to pass smoothly on python 2.7.
try:
import multiprocessing
import logging
except Exception:
pass
from setuptools import setup
import sys
tests_require = [
'nose',
'mock',
# The tests assume we're working with Fedora messages.
'fedmsg_meta_fedora_infrastructure',
]
if sys.version_info[0] == 2 and sys.version_info[1] <= 6:
tests_require.extend([
'unittest2',
])
f = open('README.rst')
long_description = f.read().strip()
long_description = long_description.split('split here', 1)[-1]
f.close()
version = '0.3.0'
setup(name='datanommer',
version=version,
description="A storage consumer for the Fedora Message Bus (fedmsg)",
long_description=long_description,
author='Ralph Bean',
author_email='[email protected]',
url='http://github.com/fedora-infra/datanommer',
license='GPLv3+',
install_requires=[
"datanommer.consumer",
"datanommer.models",
"datanommer.commands",
],
tests_require=tests_require,
test_suite='nose.collector'
)