From 9695fc8c9d856546f0b7859ae76cee2f07483905 Mon Sep 17 00:00:00 2001 From: "R. Bernstein" Date: Mon, 27 Jan 2025 11:43:13 -0500 Subject: [PATCH] Release 8.0.0 (#30) Release 8.0.0 * Upate version number, * Use PyPI wheel in CI * Go over release notes --- .github/workflows/ubuntu.yml | 10 +++++----- .pre-commit-config.yaml | 12 +++++++----- CHANGES.rst | 14 ++++++++++++++ ChangeLog-spell-corrected.diff | 29 +++++++++++++++++++---------- pymathics/natlang/version.py | 2 +- setup.py | 6 +++--- 6 files changed, 49 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 5898173..9ad6a6d 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -24,11 +24,11 @@ jobs: # python -m pip install --upgrade pip python -m pip install pytest # Can comment out when next Mathics3 core and Mathics-scanner are released - python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full] - python -m pip install -e git+https://github.com/Mathics3/mathics-core#egg=Mathics3[full] - git clone https://github.com/Mathics3/mathics-core - (cd mathics-core && pip3 install -e .[full]) - (cd mathics-core && bash ./admin-tools/make-JSON-tables.sh) + # python -m pip install -e git+https://github.com/Mathics3/mathics-scanner#egg=Mathics-Scanner[full] + # python -m pip install -e git+https://github.com/Mathics3/mathics-core#egg=Mathics3[full] + # git clone https://github.com/Mathics3/mathics-core + # (cd mathics-core && pip3 install -e .[full]) + # (cd mathics-core && bash ./admin-tools/make-JSON-tables.sh) python -m pip install Mathics3[full] - name: install pymathics natlang run: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e1a7141..a1ce876 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,17 +2,19 @@ default_language_version: python: python repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.0.1 + rev: v4.5.0 hooks: - id: check-merge-conflict - id: debug-statements - stages: [commit] + stages: [pre-commit] + exclude: ChangeLog-spell-corrected.diff - id: end-of-file-fixer - stages: [commit] + stages: [pre-commit] + exclude: ChangeLog-spell-corrected.diff - id: trailing-whitespace - exclude: 'ChangeLog-spell-corrected.diff' + exclude: ChangeLog-spell-corrected.diff - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 24.10.0 hooks: - id: black language_version: python3 diff --git a/CHANGES.rst b/CHANGES.rst index e42ca6e..d59ffbf 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,9 +1,23 @@ CHANGES ======= +8.0.0 +----- + +Jan 26, 2025 + +This release tracks the API changes in the Mathics Kernel. + + +Use the PyPI package `PatternLite` instead of the defunct 3.6-ish `pattern` (which has now been replaced with something totally different from NLP). + + + 7.0.0 ----- +Aug 10, 2025 + * Revise for 7.0.0 Mathics3 API; we need to explicilty load builtins diff --git a/ChangeLog-spell-corrected.diff b/ChangeLog-spell-corrected.diff index 101779a..2348a80 100644 --- a/ChangeLog-spell-corrected.diff +++ b/ChangeLog-spell-corrected.diff @@ -1,6 +1,15 @@ ---- ChangeLog 2024-08-11 09:56:49.699104043 -0400 -+++ ChangeLog-spell-corrected 2024-08-11 09:56:29.505207062 -0400 -@@ -7,8 +7,8 @@ +--- ChangeLog 2025-01-26 10:40:02.719673478 -0500 ++++ ChangeLog-spell-corrected 2025-01-26 10:40:22.032686996 -0500 +@@ -15,7 +15,7 @@ + 2024-12-29 rocky + + * pymathics/natlang/linguistic_data.py: fix an import ... We were importing it from a module that was also importing it (but +- no longer exists). Instead, we shoudl have been importing from the ++ no longer exists). Instead, we should have been importing from the + place it is defined. + + 2024-08-11 R. Bernstein +@@ -28,8 +28,8 @@ 2024-08-11 R. Bernstein @@ -11,7 +20,7 @@ installed... Or make that optional in mathics-core. 2024-08-08 rocky -@@ -24,7 +24,7 @@ +@@ -45,7 +45,7 @@ 2024-08-08 Juan Mauricio Matera @@ -20,7 +29,7 @@ and the examples in docstrings (#25) 2024-08-06 rocky -@@ -132,7 +132,7 @@ +@@ -153,7 +153,7 @@ 2023-02-19 R. Bernstein * .github/workflows/osx.yml, Makefile, README.rst, @@ -29,7 +38,7 @@ Make a pass over setup, docs, and top-level things (#9) * README.rst: move customization from main.py here * Makefile: LoadModule name has changes * __init__.py: list imports, go over docstring which forms chapter information * main.py: numerous small doc changes; fix some type errors. * setup.py and spacy, langid, and pyenchant are no longer optional. Note pyenchant rather than enchant is now used. -@@ -274,7 +274,7 @@ +@@ -295,7 +295,7 @@ 2020-12-22 rocky @@ -38,7 +47,7 @@ Update README.rst, remove a deprecation warning 2020-12-22 rocky -@@ -296,7 +296,7 @@ +@@ -317,7 +317,7 @@ 2020-12-22 rocky @@ -47,7 +56,7 @@ Get ready for release 1.1.0 2020-11-15 rocky -@@ -310,7 +310,7 @@ +@@ -331,7 +331,7 @@ 2020-11-14 rocky @@ -56,7 +65,7 @@ Administrivia 2020-11-14 rocky -@@ -337,7 +337,7 @@ +@@ -358,7 +358,7 @@ 2020-10-31 rocky @@ -65,7 +74,7 @@ Working better now... setup.py: Use namespace packages. Put this under namespace PyMathics. natlang/__main__.py: With next round of changes, we don't need to set "context". -@@ -345,4 +345,3 @@ +@@ -366,4 +366,3 @@ 2020-10-31 rocky * Initial natlang setup diff --git a/pymathics/natlang/version.py b/pymathics/natlang/version.py index cc1f721..eaab809 100644 --- a/pymathics/natlang/version.py +++ b/pymathics/natlang/version.py @@ -5,4 +5,4 @@ # well as importing into Python. That's why there is no # space around "=" below. # fmt: off -__version__="7.0.0" # noqa +__version__="8.0.0" # noqa diff --git a/setup.py b/setup.py index 90f3509..a5f7a29 100644 --- a/setup.py +++ b/setup.py @@ -9,8 +9,8 @@ from setuptools import find_namespace_packages, setup # Ensure user has the correct Python version -if sys.version_info < (3, 7): - print("Mathics support Python 3.7 and above; you have %d.%d" % sys.version_info[:2]) +if sys.version_info < (3, 8): + print("Mathics support Python 3.8 and above; you have %d.%d" % sys.version_info[:2]) sys.exit(-1) @@ -53,7 +53,7 @@ def read(*rnames): version=__version__, packages=find_namespace_packages(include=["pymathics.*"]), install_requires=[ - "Mathics3>=7.0.0.dev0", + "Mathics3>=8.0.0", "click>=8.0", "joblib>=1.0.1", "langid", # replace with a supported newer package, e.g. via spacy