Skip to content

Commit 501c70e

Browse files
authored
Merge branch 'develop' into hotfix-closuredup
2 parents 633aaab + bf05dc4 commit 501c70e

File tree

357 files changed

+1191
-715
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

357 files changed

+1191
-715
lines changed

.github/workflows/cffconvert.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check out a copy of the repository
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: Check whether the citation metadata from CITATION.cff is valid
1818
uses: citation-file-format/[email protected]

.github/workflows/ci.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/checkout@v4
2525
- uses: actions/setup-python@v5
2626
with:
27-
python-version: '3.x' # run with latest python version
27+
python-version: '3.12.3' # 3.12.4 has an issue with pyupgrade, try to upgrade later
2828
- run: |
2929
pip install pre-commit
3030
pre-commit run --all-files
@@ -41,7 +41,7 @@ jobs:
4141
uses: actions/checkout@v4
4242

4343
- name: Cache nltk data
44-
uses: actions/cache@v3
44+
uses: actions/cache@v4
4545
id: restore-cache
4646
with:
4747
path: ~/nltk_data
@@ -63,7 +63,7 @@ jobs:
6363
uses: actions/checkout@v4
6464

6565
- name: Cache third party tools
66-
uses: actions/cache@v3
66+
uses: actions/cache@v4
6767
id: restore-cache
6868
with:
6969
path: ~/third
@@ -94,7 +94,7 @@ jobs:
9494
python-version: ${{ matrix.python-version }}
9595

9696
- name: Restore cached dependencies
97-
uses: actions/cache@v3
97+
uses: actions/cache@v4
9898
id: restore-cache
9999
with:
100100
path: ${{ env.pythonLocation }}
@@ -107,13 +107,13 @@ jobs:
107107
#if: steps.restore-cache.outputs.cache-hit != 'true' # disabled due to a persistent issue with restoring cache on macos runner
108108

109109
- name: Use cached nltk data
110-
uses: actions/cache@v3
110+
uses: actions/cache@v4
111111
with:
112112
path: ~/nltk_data
113113
key: nltk_data_${{ secrets.CACHE_VERSION }}
114114

115115
- name: Use cached third party tools
116-
uses: actions/cache@v3
116+
uses: actions/cache@v4
117117
with:
118118
path: ~/third
119119
key: third_${{ hashFiles('tools/github_actions/third-party.sh') }}_${{ secrets.CACHE_VERSION }}

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
3+
rev: v4.6.0
44
hooks:
55
- id: fix-byte-order-marker
66
- id: trailing-whitespace
77
- id: end-of-file-fixer
88
- id: requirements-txt-fixer
99
- id: check-yaml
1010
- repo: https://github.com/asottile/pyupgrade
11-
rev: v3.15.0
11+
rev: v3.16.0
1212
hooks:
1313
- id: pyupgrade
1414
args: ["--py38-plus"]
1515
- repo: https://github.com/ambv/black
16-
rev: 23.12.0
16+
rev: 24.4.2
1717
hooks:
1818
- id: black
1919
- repo: local

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@
302302
- Akihiro Yamazaki <https://github.com/zakkie>
303303
- Ron Urbach <https://github.com/sharpblade4>
304304
- Vivek Kalyan <https://github.com/vivekkalyan>
305+
- Tom Strange https://github.com/strangetom
305306

306307
## Others whose work we've taken and included in NLTK, but who didn't directly contribute it:
307308

ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
Version 3.9-beta1 2024-08-16
2+
* Avoid need for pickled models, resolves security vulnerability CVE-2024-39705
3+
* No longer sort WordNet synsets and relations (sort in calling function when required)
4+
* Add Python 3.12 support
5+
* Many other minor fixes
6+
7+
Thanks to the following contributors to 3.8.2:
8+
Tom Aarsen, Cat Lee Ball, Veralara Bernhard, Carlos Brandt, Konstantin Chernyshev, Michael Higgins,
9+
Eric Kafe, Vivek Kalyan, David Lukes, Rob Malouf, purificant, Alex Rudnick, Liling Tan, Akihiro Yamazaki.
110

211
Version 3.8.1 2023-01-02
312

Makefile

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Natural Language Toolkit: source Makefile
22
#
3-
# Copyright (C) 2001-2023 NLTK Project
3+
# Copyright (C) 2001-2024 NLTK Project
44
# Author: Steven Bird <[email protected]>
55
# Edward Loper <[email protected]>
66
# URL: <https://www.nltk.org/>
@@ -36,15 +36,8 @@ demotest:
3636
# DISTRIBUTIONS
3737
########################################################################
3838

39-
dist: zipdist
40-
41-
# twine only permits one source distribution
42-
#gztardist: clean_code
43-
# $(PYTHON) setup.py -q sdist --format=gztar
44-
zipdist: clean_code
45-
$(PYTHON) setup.py -q sdist --format=zip bdist_wheel
46-
windist: clean_code
47-
$(PYTHON) setup.py -q bdist --format=wininst --plat-name=win32
39+
dist: clean_code
40+
$(PYTHON) -m build
4841

4942
########################################################################
5043
# CLEAN

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ If you publish work that uses NLTK, please cite the NLTK book, as follows:
3333

3434
## Copyright
3535

36-
Copyright (C) 2001-2023 NLTK Project
36+
Copyright (C) 2001-2024 NLTK Project
3737

3838
For license information, see [LICENSE.txt](LICENSE.txt).
3939

RELEASE-HOWTO.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Building an NLTK distribution
22
----------------------------------
33

4+
0. Packages required to build, test, and distribute NLTK
5+
- py312-pytest py312-requests py312-sphinx
6+
- py312-numpy py312-matplotlib py312-tkinter
7+
- sqlite3-tcl
8+
- pip install sphinxcontrib-apidoc twython build twine pytest-mock
9+
410
1. Testing
511
- Check no errors are reported in our continuous integration service:
612
https://github.com/nltk/nltk/actions
@@ -23,7 +29,7 @@ Building an NLTK distribution
2329

2430
3. Build Documentation
2531
- Check the copyright year is correct and update if necessary
26-
e.g. ./tools/global_replace.py 2001-2022 2001-2023
32+
e.g. ./tools/global_replace.py 2001-2022 2001-2024
2733
check web/conf.py copyright line
2834
- Check that installation instructions are up-to-date
2935
(including the range of Python versions that are supported)
@@ -44,7 +50,7 @@ Building an NLTK distribution
4450
cd ../nltk
4551
git tag -a 3.X.Y -m "version 3.X.Y"
4652
git push --tags
47-
verify that it shows up here: https://github.com/nltk/nltk/releases
53+
verify that it shows up here: https://github.com/nltk/nltk/tags
4854
This is important for the website, as the footer will link to the
4955
tag with the version from web/conf.py.
5056

@@ -75,5 +81,5 @@ The build requires docutils, pdflatex, python imaging library, epydoc,
7581
cdrtools, ImageMagick
7682

7783
1. Check out a clean copy of the subversion repository (or make clean)
78-
and install locally with sudo python setup.py install; make clean
84+
and install locally with pip install; make clean
7985
2. make doc (slow; see doc/ for the results) and commit

nltk/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.8.1
1+
3.9b1

nltk/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Natural Language Toolkit (NLTK)
22
#
3-
# Copyright (C) 2001-2023 NLTK Project
3+
# Copyright (C) 2001-2024 NLTK Project
44
# Authors: Steven Bird <[email protected]>
55
# Edward Loper <[email protected]>
66
# URL: <https://www.nltk.org/>
@@ -42,7 +42,7 @@
4242

4343
# Copyright notice
4444
__copyright__ = """\
45-
Copyright (C) 2001-2023 NLTK Project.
45+
Copyright (C) 2001-2024 NLTK Project.
4646
4747
Distributed and Licensed under the Apache License, Version 2.0,
4848
which is included by reference.

0 commit comments

Comments
 (0)