Skip to content

Commit 451c182

Browse files
authored
Merge pull request #8 from dataiku/chore_fix_cves
chore: update nltk and supported Python versions to fix CVEs
2 parents aa3b28e + 5701494 commit 451c182

5 files changed

Lines changed: 16 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [Version 2.0.0](https://github.com/dataiku/dss-plugin-nlp-summarization/releases/tag/v2.0.0) - 2026-04
4+
5+
- Updated nltk to the most secure version available to fix several CVEs. Use Python 3.10 and up to have all available security updates
6+
- Removed support for Python 3.7 and lower since they don't have a secure nltk wheel available
7+
- Added support for Python 3.12, 3.13 and 3.14
8+
39
## [Version 1.4.1](https://github.com/dataiku/dss-plugin-nlp-summarization/releases/tag/v1.4.1) - 2025-12
410

511
- Updated warning

code-env/python/desc.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"acceptedPythonInterpreters": [
3-
"PYTHON27",
4-
"PYTHON36",
5-
"PYTHON37",
63
"PYTHON38",
74
"PYTHON39",
85
"PYTHON310",
9-
"PYTHON311"
6+
"PYTHON311",
7+
"PYTHON312",
8+
"PYTHON313",
9+
"PYTHON314"
1010
],
1111
"forceConda": false,
1212
"installCorePackages": true,

code-env/python/spec/requirements.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
nltk==3.4.5; python_version < '3.8'
2-
nltk==3.8.1; python_version >= '3.8'
1+
nltk==3.9.1; python_version == '3.8'
2+
nltk==3.9.2; python_version == '3.9'
3+
nltk==3.9.4; python_version >= '3.10'
4+
packaging; python_version >= '3.12'
35
sumy==0.8.1; python_version < '3.8'
46
sumy==0.11.0; python_version >= '3.8'
57
pycountry==19.8.18
6-

code-env/python/spec/resources_init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# Download punkt resources to the NLTK_HOME cache directory
1414
set_env_path("NLTK_HOME", "nltk_data")
1515
cache_folder = os.getenv("NLTK_HOME")
16-
nltk.download('punkt', download_dir=cache_folder)
16+
nltk.download('punkt_tab', download_dir=cache_folder)

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "text-summarization",
3-
"version": "1.4.1",
3+
"version": "2.0.0",
44
"meta": {
55
"label": "Text Summarization",
66
"category": "NLP",

0 commit comments

Comments
 (0)