Skip to content

Commit 07b6cb6

Browse files
authored
Release 8.0.0 (#93)
Get ready for release 8.0.0 * Administrative stuff for release * Update NEWS, and screenshot * Adjust CI testing
1 parent f737101 commit 07b6cb6

File tree

11 files changed

+37
-158
lines changed

11 files changed

+37
-158
lines changed

.github/workflows/macos.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [macOS]
15-
python-version: ['3.9', '3.10', 3.11]
15+
python-version: ['3.9', '3.10', '3.11']
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/ubuntu.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ['3.8', '3.9', '3.10', '3.11']
14+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1515
steps:
1616
- uses: actions/checkout@v4
1717
- name: Set up Python ${{ matrix.python-version }}
@@ -28,7 +28,8 @@ jobs:
2828
# git clone https://github.com/Mathics3/mathics-core
2929
# (cd mathics-core && pip3 install -e .[full])
3030
# (cd mathics-core && bash ./admin-tools/make-op-tables.sh)
31-
python -m pip install Mathics3[full]
31+
# python -m pip install Mathics3[full]
32+
pip install -e .
3233
- name: Install mathicsscript
3334
run: |
3435
make

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [windows]
15-
python-version: ['3.9', '3.11']
15+
python-version: ['3.10', '3.12']
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Set up Python ${{ matrix.python-version }}

.pre-commit-config.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@ default_language_version:
22
python: python
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.0.1
5+
rev: v4.5.0
66
hooks:
77
- id: check-merge-conflict
88
- id: debug-statements
9-
stages: [commit]
9+
stages: [pre-commit]
10+
exclude: ChangeLog-spell-corrected.diff
1011
- id: end-of-file-fixer
12+
exclude: ChangeLog-spell-corrected.diff
1113
stages: [commit]
1214
- id: trailing-whitespace
15+
exclude: ChangeLog-spell-corrected.diff
1316
- repo: https://github.com/psf/black
14-
rev: 22.3.0
17+
rev: 24.10.0
1518
hooks:
1619
- id: black
1720
language_version: python3

ChangeLog-spell-corrected.diff

Lines changed: 2 additions & 143 deletions
Original file line numberDiff line numberDiff line change
@@ -9,97 +9,7 @@
99
flake8 things
1010

1111
2023-02-25 rocky <[email protected]>
12-
@@ -83,7 +83,7 @@
13-
14-
2022-12-10 rocky <[email protected]>
15-
16-
- * mathicsscript/termshell.py, mathicsscript/termshell_prompt.py:
17-
+ * mathicsscript/termshell.py, mathicsscript/termshell_prompt.py:
18-
black
19-
20-
2022-11-28 rocky <[email protected]>
21-
@@ -189,7 +189,7 @@
22-
2022-02-15 rocky <[email protected]>
23-
24-
* NEWS.md, mathicsscript/bindkeys.py,
25-
- mathicsscript/termshell_gnu.py, mathicsscript/termshell_prompt.py:
26-
+ mathicsscript/termshell_gnu.py, mathicsscript/termshell_prompt.py:
27-
Handle keybindings in GNU Readline
28-
29-
2022-02-15 R. Bernstein <[email protected]>
30-
@@ -227,7 +227,7 @@
31-
32-
2022-02-06 rocky <[email protected]>
33-
34-
- * mathicsscript/completion.py, mathicsscript/termshell_gnu.py:
35-
+ * mathicsscript/completion.py, mathicsscript/termshell_gnu.py:
36-
Imports in core have changed Specifically where strip_context is located
37-
38-
2021-12-19 rocky <[email protected]>
39-
@@ -253,7 +253,7 @@
40-
2021-09-04 rocky <[email protected]>
41-
42-
* mathicsscript/data/inputrc-no-unicode,
43-
- mathicsscript/data/inputrc-unicode, mathicsscript/termshell_gnu.py:
44-
+ mathicsscript/data/inputrc-unicode, mathicsscript/termshell_gnu.py:
45-
GNU readline was reading inputrc from wrong place Update readline tables. Warning: input-no-unicode is probably wrong
46-
47-
2021-09-04 rocky <[email protected]>
48-
@@ -415,7 +415,7 @@
49-
50-
2021-06-30 rocky <[email protected]>
51-
52-
- * .pre-commit-config.yaml, mathicsscript/asymptote.py, setup.py:
53-
+ * .pre-commit-config.yaml, mathicsscript/asymptote.py, setup.py:
54-
Start using Asymptote
55-
56-
2021-06-30 rocky <[email protected]>
57-
@@ -500,7 +500,7 @@
58-
59-
2021-06-15 rocky <[email protected]>
60-
61-
- * mathicsscript/bindkeys.py, requirements-extra.txt, setup.py:
62-
+ * mathicsscript/bindkeys.py, requirements-extra.txt, setup.py:
63-
PyQT5: extra module for matplotlib
64-
65-
2021-06-15 rocky <[email protected]>
66-
@@ -621,7 +621,7 @@
67-
68-
2021-05-27 rocky <[email protected]>
69-
70-
- * mathicsscript/mmalexer.py, mathicsscript/termshell.py, setup.py:
71-
+ * mathicsscript/mmalexer.py, mathicsscript/termshell.py, setup.py:
72-
WIP start using prompt-toolkit
73-
74-
2021-05-15 R. Bernstein <[email protected]>
75-
@@ -959,7 +959,7 @@
76-
77-
2021-01-09 rocky <[email protected]>
78-
79-
- * NEWS.md, mathicsscript/__main__.py, mathicsscript/termshell.py:
80-
+ * NEWS.md, mathicsscript/__main__.py, mathicsscript/termshell.py:
81-
`-e` `--execute` is better suited for embedded use This options adds `--quiet` and shows just evaluation output as
82-
text--execute
83-
84-
@@ -988,7 +988,7 @@
85-
86-
2021-01-03 rocky <[email protected]>
87-
88-
- * mathicsscript/termshell.py: Guard agains None eval returns
89-
+ * mathicsscript/termshell.py: Guard against "None" eval returns
90-
91-
2021-01-02 rocky <[email protected]>
92-
93-
@@ -1071,7 +1071,7 @@
94-
95-
2020-12-22 R. Bernstein <[email protected]>
96-
97-
- * : Merge pull request #7 from Mathics3/unicode-option Start to suport Unicode as a CLI option
98-
+ * : Merge pull request #7 from Mathics3/unicode-option Start to support Unicode as a CLI option
99-
100-
2020-12-22 rocky <[email protected]>
101-
102-
@@ -1088,13 +1088,13 @@
12+
@@ -1088,12 +1088,12 @@
10313
* mathicsscript/__main__.py, mathicsscript/format.py,
10414
mathicsscript/inputrc, mathicsscript/inputrc-no-unicode,
10515
mathicsscript/inputrc-unicode, mathicsscript/termshell.py,
@@ -115,62 +25,11 @@
11525

11626
2020-12-12 rocky <[email protected]>
11727

118-
@@ -1112,7 +1112,7 @@
119-
120-
2020-12-08 rocky <[email protected]>
121-
122-
- * mathicsscript/format.py: Use equal aspect ratio on ciruclar graphs
123-
+ * mathicsscript/format.py: Use equal aspect ratio on circular graphs
124-
125-
2020-12-07 rocky <[email protected]>
126-
127-
@@ -1120,7 +1120,7 @@
128-
129-
2020-12-07 rocky <[email protected]>
130-
131-
- * mathicsscript/__main__.py, mathicsscript/format.py:
132-
+ * mathicsscript/__main__.py, mathicsscript/format.py:
133-
FindSpannngTree: use layout style of parent graph
134-
135-
2020-12-07 rocky <[email protected]>
136-
@@ -1154,7 +1154,7 @@
28+
@@ -1154,6 +1154,6 @@
13729

13830
2020-12-04 rocky <[email protected]>
13931

14032
- * mathicsscript/format.py: Handel labeled nodes better Change color to white if we have node labels Change code slightly to facilitate expanding.
14133
+ * mathicsscript/format.py: Handle labeled nodes better Change color to white if we have node labels Change code slightly to facilitate expanding.
14234

14335
2020-12-04 rocky <[email protected]>
144-
145-
@@ -1226,7 +1226,7 @@
146-
147-
2020-11-27 rocky <[email protected]>
148-
149-
- * mathicsscript/mmalexer.py, mathicsscript/termshell.py, setup.py:
150-
+ * mathicsscript/mmalexer.py, mathicsscript/termshell.py, setup.py:
151-
Can't use mathematica.lexer for now.. Sigh. It has promise. But recent Python gives now gives these... FutureWarning: Possible nested set at position ...
152-
153-
2020-11-27 rocky <[email protected]>
154-
@@ -1309,7 +1309,7 @@
155-
2020-11-18 rocky <[email protected]>
156-
157-
* mathicsscript/__main__.py, mathicsscript/settings.m,
158-
- mathicsscript/termshell.py, settings/settings.m, setup.py:
159-
+ mathicsscript/termshell.py, settings/settings.m, setup.py:
160-
Miscellaneous changes Settings`$ShowFullForm -> Settings`$ShowFullFormInput The old name has already caused too much confusion. Check Pygments style and give a columnized list when the name is
161-
invalid. Also make sure to reset the Mathics variable to a the last
162-
valid value when an invalid one is set.
163-
@@ -1401,7 +1401,7 @@
164-
165-
* NEWS.md, admin-tools/git2cl, admin-tools/make-dist.sh,
166-
admin-tools/pyenv-versions, mathicsscript/term_background.py,
167-
- mathicsscript/version.py, setup.py, test/test_term_background.py:
168-
+ mathicsscript/version.py, setup.py, test/test_term_background.py:
169-
Get ready for release 1.1.0rc1
170-
171-
2020-10-21 R. Bernstein <[email protected]>
172-
@@ -1492,4 +1492,3 @@
173-
174-
* Cull code from Mathics/main and revise ... colorama is no longer optional. We'll be using click soon. Start
175-
to pull in my better terminal-detection script.
176-
-

NEWS.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1+
8.0.0
2+
-----
3+
4+
Jan 26, 2025
5+
6+
This release tracks the API changes in the Mathics Kernel, and to support enhanged debugging
7+
8+
* `--edit-mode [emacs|vi]` or was added to `mathicsscript` to specify which initial edit mode for prompt-toolkit to start in
9+
* `--post-mortem` was added `mathicsscript` to go into a trepan3k debugger on error
10+
* Add aliases for all of the 100 or so "no-meaning" operators
11+
* Allow 2D rendering from asymptote
12+
13+
14+
115
7.0.0
216
-----
317

18+
Aug 10, 2025
19+
420
* Adjust for Mathics3 core 7.0.0 API
521
* Drop support for 3.6 and 3.7 and add support for 3.11
622
* Use pyproject.toml for packaging to be able to support 3.12

mathicsscript/version.py

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

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ build-backend = "setuptools.build_meta"
1111
name = "mathicsscript"
1212
description = "Command-line interface to Mathics3"
1313
dependencies = [
14-
"Mathics_Scanner>=1.3.0",
15-
"Mathics3 >= 7.0.0dev0",
14+
"Mathics_Scanner>=1.4.1",
15+
"Mathics3 >= 8.0.0",
1616
"click",
1717
"colorama",
1818
"columnize",
@@ -38,11 +38,11 @@ classifiers = [
3838
"Programming Language :: Python :: 3.9",
3939
"Programming Language :: Python :: 3.10",
4040
"Programming Language :: Python :: 3.11",
41+
"Programming Language :: Python :: 3.12",
4142
"Programming Language :: Python :: Implementation :: CPython",
4243
"Programming Language :: Python :: Implementation :: PyPy",
4344
"Topic :: Scientific/Engineering",
4445
"Topic :: Scientific/Engineering :: Mathematics",
45-
"Topic :: Scientific/Engineering :: Physics",
4646
"Topic :: Software Development :: Interpreters",
4747
]
4848
dynamic = ["version"]

screenshots/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ The "cast" screenshot was made with asciienema and then running through `asciica
4343
For example:
4444

4545
```
46-
$ asciinema play mathicsscript1.cast
46+
$ asciinema play mathicsscript1.caste
4747
```
4848

4949
You can edit the `.cast` files. The specific commands used after this were:
5050

5151
```console
52-
$ asciicast2gif -w 93 -h 37 mathicsscript1.{cast,gif}
53-
$ asciicast2gif -w 93 -h 19 mathicsscript2.{cast,gif}
52+
$ agg mathicsscript1.{cast,gif}
53+
$ agg mathicsscript2.{cast,gif}
5454
```

screenshots/mathicsscript1.cast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[1.062212, "o", "ics"]
55
[1.502028, "o", "script"]
66
[2.034574, "o", "\r\n"]
7-
[2.82522, "o", "\r\nMathics 1.1.0rc1\r\non CPython 3.9.0 (default, Oct 23 2020, 23:15:06) \r\nusing SymPy 1.6.2, mpmath 1.1.0, cython 0.29.21\r\n\r\nCopyright (C) 2011-2020 The Mathics Team.\r\nThis program comes with ABSOLUTELY NO WARRANTY.\r\nThis is free software, and you are welcome to redistribute it\r\nunder certain conditions.\r\nSee the documentation for the full license.\r\n\r\nQuit by pressing CONTROL-D\r\n\r\n"]
7+
[2.82522, "o", "\r\nMathicsscript: 8.0.0, Mathics 8.0.0\r\non CPython 3.12.8 (main, Dec 9 2024, 11:38:23) [GCC 13.2.0]\r\nusing SymPy 1.13.3, mpmath 1.130, cython 3.0.11\r\n\r\nCopyright (C) 2011-2025 The Mathics Team.\r\nThis program comes with ABSOLUTELY NO WARRANTY.\r\nThis is free software, and you are welcome to redistribute it\r\nunder certain conditions.\r\nSee the documentation for the full license.\r\n\r\nQuit by pressing CONTROL-D\r\n\r\n"]
88
[2.825361, "o", "\u001b[32mIn[\u001b[1m1\u001b[22m]:= \u001b[39m"]
99
[3.695122, "o", "I"]
1010
[3.967145, "o", "n"]

0 commit comments

Comments
 (0)