[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a

Daniel Widerin daniel at widerin.net
Tue Feb 28 22:05:53 UTC 2012


The following commit has been merged in the debian/master branch:
commit b438e3040c800e4d8a965d81b3d3b3192f9df69c
Author: Daniel Widerin <daniel at widerin.net>
Date:   Wed Nov 16 11:06:19 2011 +0100

    use auto-generated, absolute path for README, this fixes #76

diff --git a/setup.py b/setup.py
index c5b7d59..94ed30e 100644
--- a/setup.py
+++ b/setup.py
@@ -55,6 +55,12 @@ from distutils.util import change_root
 from distutils.errors import DistutilsOptionError
 
 
+# Utility function to read the README file. This was directly taken from:
+# http://packages.python.org/an_example_pypi_project/setuptools.html
+def read(fname):
+    return open(os.path.join(os.path.dirname(__file__), fname)).read()
+
+
 class build(_build):
     sub_commands = _build.sub_commands + [
         ('build_config', None),
@@ -472,7 +478,7 @@ if __name__ == "__main__":
         packages = find_packages(),
         package_data = {'' : package_data},
         description = "Shinken is a monitoring tool compatible with Nagios configuration and plugins",
-        long_description=open('README').read(),
+        long_description=read('README'),
         author = "Gabes Jean",
         author_email = "naparuba at gmail.com",
         license = "GNU Affero General Public License",

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list