Skip to content

False positive: defusedxml is reported as a build tool #59

@SnoopJ

Description

@SnoopJ

A Python package that depends on the safe XML parser defusedxml causes brief to produce a report that this library is related to the build.

Reproduction

17:07 [jgerity@giskard /tmp/brief_repro]
$ ls
pyproject.toml
17:07 [jgerity@giskard /tmp/brief_repro]
$ cat pyproject.toml 
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "dummy"
description = "Dummy package"
dependencies = [
    "defusedxml>=0.7.1, <1",
]
17:07 [jgerity@giskard /tmp/brief_repro]
$ brief 
brief 0.5.2 — /tmp/brief_repro

Language:        Python
                 1 runtime

Build:       defusedxml

4.4ms  472 files checked  2/516 tools matched

(as an aside: why 472 files? does that include the contents of setuptools?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions