← All tasks
pythonpypa/packaging #486Not a task: already works

Parsing markers/requirements fails with pyparsing 3.0.5

envgap__pypa__packaging-486

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
8cb9dbf19e2b76ab025efc11208bd50e09e8223e
Manifest
setup.py
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

pypa/packaging #486 · read the original issue
Pyparsing 3.0.5 [changes the private API around `originalTextFor`](https://github.com/pyparsing/pyparsing/commit/e269b0a3d067e66ef718b8508a4a82927c7606d0#diff-daba53cec7bed1be7b180ee5e8378c772408d07afe6f2cad6d62e966993b9e45), causing code in `packaging` that uses the private API to break:

https://github.com/pypa/packaging/blob/8cb9dbf19e2b76ab025efc11208bd50e09e8223e/packaging/requirements.py#L69-L72



This manifests as a failure in `safety`.



Reproduction:

```

from packaging.requirements import Requirement



Requirement('alabaster==0.7.12; python_version >= "3.6"\n')

```



The upstream issue is https://github.com/pyparsing/pyparsing/issues/110#issuecomment-963167729
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
[]