NRCL-103 Require patched NLTK in the optional sentiment extra - #37
Merged
Conversation
📚 Documentation Statusℹ️ No documentation-related changes detected This comment is automatically generated by the documentation workflow. |
hudsonaikins
marked this pull request as ready for review
September 10, 2026 23:17
Contributor
Author
|
@codex review |
|
Linked to Plane Work Item(s) This comment was auto-generated by Plane |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The optional sentiment extra could install NLTK versions affected by three critical advisories through TextBlob. Require
nltk>=3.10.3in that extra and update the lockfile from 3.9.3 to 3.10.3. TextBlob stays at 0.19.0 in the lockfile; the only added package is NLTK's requireddefusedxml==0.7.1.Add a focused smoke test through
SentimentAnalyzer(TEXTBLOB): positive and negative results must use TextBlob while socket connections, DNS lookup, corpus downloads, and external NLTK corpus paths are blocked.NRCL-103
Validation
Candidate:
a6e223174b1edce5f05d767a2cdf719914ac72a2; base:5fbca25efa95c288e8770cee44c2042ef54ec12b.uv sync --locked --extra dev --python 3.10passed.--include '\.pyi?$' --target-version py310formatting check.uv run --no-sync --with textblob==0.19.0 --with nltk==3.10.3 pytest tests/test_sentiment_textblob.py -q --no-cov— 2 passed on Python 3.10.Requires-Python: >=3.10and scopes the NLTK and TextBlob requirements toextra == "sentiment".Hosted review
a6e223174b.Advisory basis and limits
NLTK 3.10.3 is outside the affected ranges for GHSA-x99w-6fgc-pmfw, GHSA-rhp5-r9x4-f5g2, and GHSA-m4rf-3fr8-xwx3. PyPI's 3.10.3 metadata supports Python >=3.10.
No sentiment removal, downloaded models, live service calls, release, or deployment. The smoke covers the TextBlob path; it does not claim to validate every optional sentiment engine. Existing installations need the updated package requirements or lockfile to receive the fix.