Skip to content

Commit caa51d4

Browse files
authored
Get ready for release 10.0.0 (#40)
1 parent eb4c4a2 commit caa51d4

10 files changed

Lines changed: 53 additions & 36 deletions

File tree

.github/workflows/consistency-checks.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
NLTK_DATA: "/tmp"
1414
strategy:
1515
matrix:
16-
python-version: ['3.13']
16+
python-version: ['3.14']
1717
steps:
1818
- uses: actions/checkout@v6
1919
- name: Set up Python ${{ matrix.python-version }}
@@ -26,12 +26,12 @@ jobs:
2626
python -m pip install pytest setuptools
2727
python -m pip install Mathics3-Module-Base
2828
# Until the next Mathics3-scanner release
29-
git clone https://github.com/Mathics3/Mathics3-scanner
30-
(cd Mathics3-scanner && pip3 install -e .[full] --no-build-isolation && bash -x ./admin-tools/make-JSON-tables.sh)
29+
# git clone https://github.com/Mathics3/Mathics3-scanner
30+
#(cd Mathics3-scanner && pip3 install -e .[full] --no-build-isolation && bash -x ./admin-tools/make-JSON-tables.sh)
3131
# Until the next mathics-core release
32-
git clone https://github.com/Mathics3/mathics-core
33-
(cd mathics-core && python -m pip install --no-build-isolation -e .[full])
34-
(cd mathics-core && bash ./admin-tools/make-JSON-tables.sh)
32+
# git clone https://github.com/Mathics3/mathics-core
33+
# (cd mathics-core && python -m pip install --no-build-isolation -e .[full])
34+
# (cd mathics-core && bash ./admin-tools/make-JSON-tables.sh)
3535
3636
- name: Install Mathics3 Module nltk
3737
run: |

.github/workflows/osx.yml-needs-enchant-fixup

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
brew install llvm lld tesseract enchant mysql
2929
python -m pip install --upgrade pip
3030
pip install pytest pyenchant
31-
# Go over and comment out stuff when next Mathics core and Mathics-scanner are released
31+
# Go over and comment out stuff when next Mathics3 core and Mathics-scanner are released
3232
python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full]
3333
git clone https://github.com/Mathics3/mathics-core
3434
(cd mathics-core && pip3 install -e .[full])
@@ -38,6 +38,6 @@ jobs:
3838
- name: Install Mathics3 Module nltk
3939
run: |
4040
make develop
41-
- name: Test Mathics Module nltk
41+
- name: Test Mathics3 Module nltk
4242
run: |
4343
make check

.github/workflows/ubuntu.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [ master ]
66
pull_request:
7-
branches: '**'
7+
branches: [ master ]
88

99
jobs:
1010
build:
@@ -24,15 +24,14 @@ jobs:
2424
run: |
2525
python -m pip install --upgrade pip
2626
python -m pip install pytest setuptools
27-
# Go over and comment out stuff when next Mathics core and Mathics-scanner are released
28-
# Go over and comment out stuff when next Mathics core and Mathics3-scanner are released
29-
git clone https://github.com/Mathics3/Mathics3-scanner
30-
(cd Mathics3-scanner && pip3 install -e .[full] --no-build-isolation && bash -x ./admin-tools/make-JSON-tables.sh)
27+
# Go over and comment out stuff when next Mathics3 core and Mathics3-scanner are released
28+
# git clone https://github.com/Mathics3/Mathics3-scanner
29+
# (cd Mathics3-scanner && pip3 install -e .[full] --no-build-isolation && bash -x ./admin-tools/make-JSON-tables.sh)
3130
# python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full]
3231
# Until the next mathics-core release
33-
git clone https://github.com/Mathics3/mathics-core
34-
(cd mathics-core && pip3 install --no-biuild-isolation -e .[full])
35-
(cd mathics-core && bash -x ./admin-tools/make-JSON-tables.sh)
32+
# git clone https://github.com/Mathics3/mathics-core
33+
# (cd mathics-core && pip3 install --no-biuild-isolation -e .[full])
34+
# (cd mathics-core && bash -x ./admin-tools/make-JSON-tables.sh)
3635
3736
- name: Install Mathics3 Module nltk
3837
run: |
@@ -41,4 +40,5 @@ jobs:
4140
python -m pip install -e .[full] --no-build-isolation
4241
# make develop
4342
- name: Test Mathics3 Module nltk
43+
run: |
4444
make -j3 check

CHANGES.rst

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
CHANGES
22
=======
33

4+
10.0.0
5+
------
6+
7+
April 19, 2026
8+
9+
Supports Python 3.14. Python 3.10 support dropped. Python 3.10 may still work, but it's not supported.
10+
11+
* Add basic ``WordTranslation``.
12+
* Adjust for 10.0.0 API
13+
14+
415
9.0.2
516
-----
617

@@ -40,7 +51,7 @@ Adjust and correct packaging.
4051

4152
Jan 26, 2025
4253

43-
This release tracks the API changes in the Mathics Kernel.
54+
This release tracks the API changes in the Mathics3 Kernel.
4455

4556

4657
Use the PyPI package ``PatternLite`` instead of the defunct 3.6-ish ``pattern`` (which has now been replaced with something totally different from NLP).
@@ -83,12 +94,12 @@ We should assess the landscape for changes in modules that might be used here; t
8394
2.2.0
8495
-----
8596

86-
Re-Release to use released Mathics 2.2.0
97+
Re-Release to use released Mathics3 2.2.0
8798

8899
1.1.0
89100
-----
90101

91-
Re-Release to use released Mathics 1.1.0
102+
Re-Release to use released Mathics3 1.1.0
92103

93104
* tests added.
94105
* README.rst has been updated with examples.

Makefile

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ WORDLIST_SIZE ?= md
1818
SPACY_DOWNLOAD ?= $(lang)_core_web_$(WORDLIST_SIZE)
1919

2020
.PHONY: all build \
21-
check clean \
21+
ChangeLog-without-corrections \
22+
check \
23+
check-consistency-and-style \
24+
clean \
2225
develop dist doc doc-data \
2326
pypi-setup \
2427
pytest \
@@ -81,15 +84,19 @@ doctest:
8184
# doc mathics.pdf: mathics/doc/tex/data
8285
# (cd mathics/doc/tex && $(MAKE) mathics.pdf)
8386

87+
88+
#: Run pytest consistency and style checks
89+
check-consistency-and-style:
90+
MATHICS_LINT=t $(PYTHON) -m pytest test/consistency-and-style
91+
92+
#: Create ChangeLog from version control without corrections
93+
ChangeLog-without-corrections:
94+
git log --pretty --numstat --summary | $(GIT2CL) >ChangeLog
95+
8496
#: Remove ChangeLog
8597
rmChangeLog:
8698
$(RM) ChangeLog || true
8799

88100
#: Create a ChangeLog from git via git log and git2cl
89-
ChangeLog: rmChangeLog
90-
git log --pretty --numstat --summary | $(GIT2CL) >$@
91-
patch ChangeLog < ChangeLog-spell-corrected.diff
92-
93-
#: Run pytest consistency and style checks
94-
check-consistency-and-style:
95-
MATHICS_LINT=t $(PYTHON) -m pytest test/consistency-and-style
101+
ChangeLog: rmChangeLog ChangeLog-without-corrections
102+
patch -p0 ChangeLog < ChangeLog-spell-corrected.diff

admin-tools/check-versions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22
function finish {
3-
cd $mathics_natlang_owd
3+
cd $mathics3_natlang_owd
44
}
55

66
# FIXME put some of the below in a common routine
7-
mathics_natlang_owd=$(pwd)
7+
mathics3_natlang_owd=$(pwd)
88
trap finish EXIT
99

1010
cd $(dirname ${BASH_SOURCE[0]})

admin-tools/pyenv-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
66
exit 1
77
fi
88

9-
export PYVERSIONS='3.10 3.11 3.12 3.13'
9+
export PYVERSIONS='3.11 3.12 3.13 3.14'

pymathics/natlang/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# well as importing into Python. That's why there is no
66
# space around "=" below.
77
# fmt: off
8-
__version__="9.0.2" # noqa
8+
__version__="10.0.0" # noqa

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
requires = [
33
"setuptools",
44
"Mathics3-Module-Base",
5-
"Mathics3>9.0.0",
5+
"Mathics3>=10.0.0",
66
"PatternLite",
77
"langid", # replace with a supported newer package, e.g. via spacy
88
"matplotlib",
@@ -20,7 +20,7 @@ build-backend = "setuptools.build_meta"
2020
name = "Mathics3-Module-nltk"
2121
description = "Mathics3 Natural Language Toolkit module"
2222
dependencies = [
23-
"Mathics3>9.0.0",
23+
"Mathics3>=10.0.0",
2424
"Mathics3-Module-Base>=9.0.0",
2525
"click>=8.0",
2626
"joblib>=1.0.1",
@@ -39,7 +39,7 @@ readme = "README.rst"
3939
license = "GPL-3.0-or-later"
4040
keywords = ["Mathematica", "Wolfram", "Interpreter", "Shell", "Math", "CAS"]
4141
maintainers = [
42-
{name = "Mathics Group", email = "mathics-devel@googlegroups.com"},
42+
{name = "Mathics3 Group", email = "mathics-devel@googlegroups.com"},
4343
]
4444
classifiers = [
4545
"Intended Audience :: Developers",
@@ -50,7 +50,6 @@ classifiers = [
5050
"Programming Language :: Python :: 3.13",
5151
"Programming Language :: Python :: 3.14",
5252
"Programming Language :: Python :: Implementation :: CPython",
53-
"Programming Language :: Python :: Implementation :: PyPy",
5453
"Topic :: Scientific/Engineering",
5554
"Topic :: Scientific/Engineering :: Mathematics",
5655
"Topic :: Software Development :: Interpreters",

test/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def check_evaluation(
3838
expected_messages: Optional[tuple] = None,
3939
):
4040
"""
41-
Helper function to test Mathics expression against
41+
Helper function to test Mathics3 expression against
4242
its results
4343
4444
Compares the expressions represented by ``str_expr`` and ``str_expected`` by

0 commit comments

Comments
 (0)