Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing parse action #485

Closed
wants to merge 3 commits into from
Closed

Fix failing parse action #485

wants to merge 3 commits into from

Conversation

layday
Copy link
Member

@layday layday commented Nov 8, 2021

Closes #486

pyparsing 3.0.5 renamed the two private attributes that are used
here. This exact same transformation is performed by
originalTextFor's default action, and assuming the intention
was simply to construct a Marker from the matched string, I've
restored the default action and added a secondary action for
constructing the Marker object.

@layday layday mentioned this pull request Nov 8, 2021
pyparsing 3.0.5 renamed the two private attributes that are used
here.  This exact same transformation is performed by
`originalTextFor`'s default action, and assuming the intention
was simply to construct a `Marker` from the matched string, I've
restored the default action and added a secondary action for
constructing the `Marker` object.
The tests would run with pyparsing 2 because packaging
is a dependency of pytest and the latest published version
requires `pyparsing >=2, <3`.
To see what gets installed.
@layday layday changed the title Replace custom parse action Fix failing parse action Nov 8, 2021
@brettcannon
Copy link
Member

#487 is now a competing PR to fix the same issue.

@layday
Copy link
Member Author

layday commented Nov 12, 2021

Neither PR has gained any traction and the author of pyparsing has graciously restored these private attributes in v3.0.6, so I'll go ahead and close this.

@layday layday closed this Nov 12, 2021
@layday layday deleted the rm-private-attr-access branch November 16, 2021 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parsing markers/requirements fails with pyparsing 3.0.5
2 participants