← All tasks
pythonpypa/pip-audit #257Not a task: already works

Remove use of `exec` in `setup.py`

envgap__pypa__pip-audit-257

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
bafa0f8d5866f453a3dc813cb0a6476e5af9da7b
Manifest
setup.py
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

pypa/pip-audit #257 · read the original issue
This was just me being lazy:



```py

version = {}

with open("./pip_audit/_version.py") as f:

    exec(f.read(), version)

```



Should be replaceable with `importlib`.
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]