File: setup.py

package info (click to toggle)
cppcheck 2.17.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 25,384 kB
  • sloc: cpp: 263,341; python: 19,737; ansic: 7,953; sh: 1,018; makefile: 996; xml: 994; cs: 291
file content (31 lines) | stat: -rwxr-xr-x 923 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python3
import shutil
from setuptools import find_packages, setup

with open("README.txt") as f:
    readme = f.read()

shutil.copy("cppcheck-htmlreport", "cppcheck_htmlreport/run.py")

setup(
    name="cppcheck-htmlreport",
    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="Cppcheck Team",
    url="https://github.com/danmar/cppcheck",
    license="GPL",
    packages=find_packages(exclude=("tests", "docs")),
    use_scm_version={"root": ".."},
    entry_points={
        "console_scripts": [
            "cppcheck-htmlreport = cppcheck_htmlreport:run.main",
        ]
    },
    install_requires=["Pygments"],
    # Required by setuptools-scm 7.0 for Python 3.7+
    setup_requires=["setuptools>=60", "setuptools-scm>=7.0"],
)