Skip to content

Drop ply as external dependency and bundle it#128

Open
stratakis wants to merge 2 commits intoivelum:masterfrom
stratakis:ply_bundle
Open

Drop ply as external dependency and bundle it#128
stratakis wants to merge 2 commits intoivelum:masterfrom
stratakis:ply_bundle

Conversation

@stratakis
Copy link
Copy Markdown

Fixes #105

This PR vendors ply up to its latest HEAD. The last 3.11 version contains a vulnerability (CVE-2025-56005) and while djangoql doesn't use the vulnerable pickle code, still not a good practice to bundle that, hence why I opted for the latest commit. Bundled only the parts used by djangoql and extracted the license, similarly to how projects like astropy or pypy do.

Noting here also that ply is archived and there will be no more bug fixes or releases (see dabeaz/ply@9d7c400) so ideally moving to a new parser (e.g. lark) would be a more sustainable solution, but obviously more work is required for implementing that.

Also removed parsetab.py which has been stale since d052abd and this mechanism is not used with the latest ply.

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.

Consider vendoring ply

1 participant