|
1 | 1 | 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("#")] |
3 | 7 |
|
4 | 8 | setup(
|
5 | 9 | name="nagios-elasticsearch",
|
6 | 10 | 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(), |
13 | 12 | version="0.1",
|
14 | 13 | packages=find_packages(),
|
15 | 14 | author='Paul Stack',
|
|
18 | 17 | download_url = 'https://github.com/stack72/nagios-elasticsearch/tarball/0.1',
|
19 | 18 | 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"],
|
20 | 19 | license="MIT",
|
21 |
| - install_requires=[str(req.req) for req in |
22 |
| - parse_requirements("requirements.txt")], |
| 20 | + install_requires=parse_requirements("requirements.txt"), |
23 | 21 | include_package_data=True,
|
24 | 22 | keywords = ['monitoring','nagios','elasticsearch'],
|
25 | 23 | classifiers=[],
|
|
0 commit comments