text: from setuptools import setup, find_packages
  
  
  def read_requirements(filename="requirements.txt"):
      "Read the requirements"
      with open(filename) as f:
          return [line.strip() for line in f \
                  if line.strip() and \
                  line[0].strip() != '#' and \
                  not line.startswith('-e ')]
  
  
  def get_version(filename='nrpecheck/version.py', name='VERSION'):
      "Get the version"
      with open(filename) as f:
          s = f.read()
          d = {}
          exec(s, d)
          return d[name]
  
  
  setup(
      name='python-nrpecheck',
      version=get_version(),
      author='Dave Gabrielson',
      author_email='Dave.Gabrielson@gmail.com',
      description='A module to provide a simple base class for writing NRPE checks',
      url="",
      license="GNU Lesser General Public License (LGPL) 3.0",
      packages=find_packages(),
      install_requires=read_requirements(),
      zip_safe=False,
      include_package_data=True,
  )
  
  