From 90b4fb04b10f2728e2c8985cf2889e91d3a4c414 Mon Sep 17 00:00:00 2001 From: "R. Menon" Date: Sat, 1 Mar 2025 15:04:50 +0530 Subject: [PATCH 1/2] Update for 0.4.0 release --- .travis.yml | 14 -------------- README.md | 5 +++-- mathematica/builtins.py | 3 +-- requirements.txt | 7 ++++--- setup.py | 8 +++----- 5 files changed, 11 insertions(+), 26 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index be5b060..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -dist: bionic -language: python -python: -- '3.5' -- '3.6' -- '3.7' -- '3.7' -- '3.8' -- '3.9' -install: pip install -r requirements.txt -script: nosetests -notifications: - slack: - secure: NXshtzgr+BVRCSoDWJqASSX9Yc3YN12vxA+LQJEYDHh3/sGZQrIL5+NVj2mKxDEAgXhuHQNggC2lXTBshpelyc7itFkMM2IJx5MkLdejO3LC8cD3HQgfNyaSAGT4noo5BYHX8ngGEL4FtLJZiyA+93VtvwbEln+YhlLFaJPuQkpuoYMr5e/7OhlC0inkzWQKtDh5sYCgvV4SzVr+HFuODY3dFyTh6h1Fiig4lkkd+tbQQJWTQsG9gsk9gQk/n9qme2snJ8YQRvOesFkEsF/5A2VQpSxHHT9hfznzXy0gv8CsHuK1/8FH9t7QWI5dok9JIp//A8C2D2aWKN1wNw8EePBB5N3vgJoHw30gNuC9OIjtTA3nJTgUF8qRUiQvsjIz+l9KMwEjVd2knnu037MnTZ9rVlQZFfcDJIgL2T44E8/cJNhOB8CFlgORrrvxaHBY3Fgc4fdLLKIJyjY4m7AzBUt659rM0kJm0UZ5IvZaJvyLzGGrUOv0SM3Kxf6CEaxFFyI9eKEn0dt8zGd7ZO29PP2LQingF6ZkThQm/C2wFFg6Ixmof/YhisqTYOYGYFFbRj0c+xYl0szlNzQy/tYdjmjjgKO8+XZ2aoQOM3Sj487sj8RxIvgfLKkF8YLxNWoHXFqvWbHrZxLZ/TuQOwZVfEhmvNEEjXsspoQifUBo2ks= diff --git a/README.md b/README.md index 141a752..d4da94b 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,11 @@ The most up-to-date lexer and highlighter for [_Mathematica_](http://wolfram.com source code using the [pygments](http://pygments.org) engine. ![](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square) -![](https://img.shields.io/badge/version-0.3.5-yellow.svg?style=flat-square) +![](https://img.shields.io/badge/version-0.4.0-yellow.svg?style=flat-square) ![](https://img.shields.io/travis/rsmenon/pygments-mathematica/master.svg?style=flat-square) -![](https://img.shields.io/badge/python-3.5%2B-lightgrey.svg?style=flat-square) +![](https://img.shields.io/badge/python-3.9%2B-lightgrey.svg?style=flat-square) ![](https://img.shields.io/pypi/v/pygments-mathematica.svg?style=flat-square) +[![tests](https://github.com/rsmenon/pygments-mathematica/actions/workflows/python-package.yml/badge.svg)](https://github.com/rsmenon/pygments-mathematica/actions/workflows/python-package.yml) ## Features It can currently lex and highlight: diff --git a/mathematica/builtins.py b/mathematica/builtins.py index 881f8fb..d7b03c9 100644 --- a/mathematica/builtins.py +++ b/mathematica/builtins.py @@ -7325,7 +7325,6 @@ u'ZoomFactor', u'ZTest', u'ZTransform', - u'$', u'$Aborted', u'$ActivationGroupID', u'$ActivationKey', @@ -8038,4 +8037,4 @@ u'℘', # \[WeierstrassP] u'ξ', # \[Xi] u'ζ', # \[Zeta] -} \ No newline at end of file +} diff --git a/requirements.txt b/requirements.txt index 27120b4..2fb0631 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ -nose==1.3.7 -Pygments==2.7.4 -wheel==0.26.0 +build==1.2.2.post1 +packaging==24.2 +Pygments==2.19.1 +pyproject_hooks==1.2.0 diff --git a/setup.py b/setup.py index a1c1b85..4347977 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ setup( name='pygments-mathematica', - version='0.3.5', + version='0.4.0', description='Mathematica/Wolfram Language Lexer for Pygments', long_description=__doc__, author='rsmenon', @@ -43,11 +43,9 @@ 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', 'Topic :: Text Processing', 'Topic :: Utilities', ], From 841551b5ad4d483ce29aebbb76ddbe7d6353f257 Mon Sep 17 00:00:00 2001 From: "R. Menon" Date: Sat, 1 Mar 2025 15:16:51 +0530 Subject: [PATCH 2/2] Extend to 3.13 and use pynose --- .github/workflows/python-package.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index f6193d3..66733b7 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 @@ -27,8 +27,8 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install nose + python -m pip install pynose if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Test with nose + - name: Test with pynose run: | - nosetests + pynose