Skip to content

Commit 4814153

Browse files
committed
Adding a link to download the tarball from github tags
1 parent b2be00d commit 4814153

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

setup.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
from setuptools import setup, find_packages
2-
from pip.req import parse_requirements
2+
3+
def parse_requirements(filename):
4+
""" load requirements from a pip requirements file """
5+
lineiter = (line.strip() for line in open(filename))
6+
return [line for line in lineiter if line and not line.startswith("#")]
37

48
setup(
59
name="nagios-elasticsearch",
610
description="A selection of Nagios plugins to monitor ElasticSearch.",
7-
long_description="""
8-
nagios-elasticsearch is a selection of nagios plugins that will monitor
9-
a selection of ElasticSearch cluster metrics like Unassigned Shards, Cluster
10-
health, that all nodes in the cluster are accounted for and also the Cluster
11-
JVM settings
12-
""",
11+
long_description=open('README.md').read(),
1312
version="0.1",
1413
packages=find_packages(),
1514
author='Paul Stack',
@@ -18,8 +17,7 @@
1817
download_url = 'https://github.com/stack72/nagios-elasticsearch/tarball/0.1',
1918
scripts=["check_es_nodes.py","check_es_cluster_status.py","check_es_jvm_usage.py", "check_es_unassigned_shards.py","check_es_split_brain.py"],
2019
license="MIT",
21-
install_requires=[str(req.req) for req in
22-
parse_requirements("requirements.txt")],
20+
install_requires=parse_requirements("requirements.txt"),
2321
include_package_data=True,
2422
keywords = ['monitoring','nagios','elasticsearch'],
2523
classifiers=[],

0 commit comments

Comments
 (0)