From 229a5bfc993caa4c32d72b0a8d98070492175f7b Mon Sep 17 00:00:00 2001 From: Erik Hovland Date: Wed, 24 Aug 2016 10:41:41 -0700 Subject: [PATCH] Update the setup.py to current pythonic norms and add Pygments to install_requires. --- htmlreport/setup.py | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/htmlreport/setup.py b/htmlreport/setup.py index 26af29311..0be606dae 100755 --- a/htmlreport/setup.py +++ b/htmlreport/setup.py @@ -1,10 +1,21 @@ #!/usr/bin/env python -from distutils.core import setup -if __name__ == '__main__': - setup( - name="cppcheck", - scripts=[ - "cppcheck-htmlreport", - ] - ) +from setuptools import setup + +with open('README.txt') as f: + readme = f.read() + +setup( + name="cppcheck", + description='Python script to parse the XML (version 2) output of ' + + 'cppcheck and generate an HTML report using Pygments for syntax ' + + 'highlighting.', + long_description=readme, + author='Henrik Nilsson', + url='https://github.com/danmar/cppcheck', + license='GPL', + scripts=[ + "cppcheck-htmlreport", + ], + install_requires=['Pygments'] +)