forked from fedora-infra/fmn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
71 lines (59 loc) · 2.07 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
69
70
71
"""Setup file for fmn"""
import sys
from setuptools import setup, find_packages
def get_description():
with open('README.rst', 'r') as f:
return ''.join(f.readlines()[2:])
def get_requirements(filename='requirements.txt'):
"""
Get the contents of a file listing the requirements.
:param filename: path to a requirements file
:type filename: str
:returns: the list of requirements
:return type: list
"""
with open(filename) as f:
return [
line.rstrip().split('#')[0]
for line in f.readlines()
if not line.startswith('#')
]
requires = get_requirements()
if sys.version_info[0] == 2 and sys.version_info[1] <= 6:
requires.append("ordereddict")
setup(
name='fmn',
version='2.4.1',
description='Library for fedmsg Notifications',
long_description=get_description(),
author='Fedora Infrastructure Team',
author_email='[email protected]',
url="https://github.com/fedora-infra/fmn",
download_url="https://pypi.python.org/pypi/fmn/",
license='LGPLv2+ and BSD',
install_requires=requires,
tests_require=get_requirements('dev-requirements.txt'),
test_suite='fmn.tests',
packages=find_packages(exclude=('fmn.tests', 'fmn.tests.*')),
include_package_data=True,
zip_safe=False,
classifiers=[
'Environment :: Web Environment',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Framework :: Twisted',
],
entry_points={
'moksha.consumer': [
"fedmsg_notifications_consumer = fmn.consumer:FMNConsumer",
],
'console_scripts': [
'fmn-createdb = fmn.lib.db:main',
],
},
)