Update the setup.py to current pythonic norms and add Pygments to install_requires.

This commit is contained in:
Erik Hovland 2016-08-24 10:41:41 -07:00
parent c3564966a2
commit 229a5bfc99
1 changed files with 19 additions and 8 deletions

View File

@ -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']
)