forked from fedora-infra/statscache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
60 lines (53 loc) · 1.62 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
""" Setup file for statscache """
import os
import os.path
from setuptools import setup
def get_description():
with open('README.rst', 'r') as f:
return ''.join(f.readlines()[2:])
requires = [
'fedmsg',
'moksha.hub>=1.4.6',
'fedmsg_meta_fedora_infrastructure',
'sqlalchemy',
'futures',
]
tests_require = [
'nose',
'freezegun'
]
# Note to packagers: Install or link the following files using the specfile:
# 'apache/stastcache.conf' -> '/etc/httpd/conf.d/statscache.conf'
# 'apache/statscache.wsgi' -> '/usr/share/statscache/statscache.wsgi'
# 'statscache/static/' -> '/usr/share/statscache/static/'
setup(
name='statscache',
version='0.0.1',
description='Daemon to build and keep fedmsg statistics',
long_description=get_description(),
author='Ralph Bean',
author_email='[email protected]',
url="https://github.com/fedora-infra/statscache/",
download_url="https://pypi.python.org/pypi/statscache/",
license='LGPLv2+',
install_requires=requires,
tests_require=tests_require,
test_suite='nose.collector',
packages=['statscache'],
include_package_data=True,
zip_safe=False,
classifiers=[
'Environment :: Web Environment',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Developers',
'Programming Language :: Python',
],
entry_points={
'moksha.consumer': [
"statscache_consumer = statscache.consumer:StatsConsumer",
],
'moksha.producer': [
"statscache_producer = statscache.producer:StatsProducer",
],
},
)