This repository has been archived by the owner on Jul 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
64 lines (53 loc) · 1.64 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
""" Setup file for fmn.web """
import sys
import os
import logging
from setuptools import setup
# 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:
pass
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('#')
]
setup(
name='fmn.web',
version='0.8.1',
description='Frontend Web Application for Fedora Notifications',
long_description=get_description(),
author='Ralph Bean',
author_email='[email protected]',
url="https://github.com/fedora-infra/fmn.web/",
download_url="https://pypi.python.org/pypi/fmn.web/",
license='LGPLv2+',
install_requires=get_requirements(),
tests_require=get_requirements('tests-requirements.txt'),
test_suite='nose.collector',
packages=['fmn', 'fmn.web'],
namespace_packages=['fmn'],
include_package_data=True,
zip_safe=False,
classifiers=[
'Environment :: Web Environment',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Developers',
'Programming Language :: Python',
],
)