Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
369 commits
Select commit Hold shift + click to select a range
d472961
Note Read[x, Hold[Expression]] fix
rocky May 4, 2021
834c781
Typo: Head -> Heads
rocky May 4, 2021
df56a87
Small typos in comments
rocky May 4, 2021
84a9d7a
Unprotect All and Subsets..
rocky May 4, 2021
7df3695
Go over Quiet and All documentation and tests
rocky May 4, 2021
fc8be34
Go over All docs and add an example in Part
rocky May 4, 2021
8f94d19
Remove unprotect on both Subsets and All...
rocky May 4, 2021
cee5cbc
Small doc updates
rocky May 4, 2021
b39e27c
Try again to reinstate black-friendly characters
rocky May 4, 2021
64c698b
Code to start folding in built-in subdirs
rocky May 4, 2021
6d3cb84
Try parallelism in py.test
rocky May 7, 2021
3f21bb2
Use requirements-dev.txt in setup
rocky May 7, 2021
dbffa34
Merge pull request #1360 from mathics/speedup-testing
rocky May 8, 2021
4c9abbe
Convert unicode nand and nor in TeX
rocky May 8, 2021
f03b43c
Merge pull request #1361 from mathics/nand-nor-symbols
rocky May 9, 2021
c14b9e0
Surround string output in double quotes.
rocky May 9, 2021
d69ab0e
Merge pull request #1354 from mathics/combinatorica-2.0-prereqs
rocky May 9, 2021
0daac41
TIdy small omissions in PR #1251
rocky May 9, 2021
17dcf28
Try sympy 1.8
rocky May 9, 2021
9ee20ee
MacOSX LLVM woes
rocky May 9, 2021
517d3ec
Merge pull request #1364 from mathics/prepend-tidy
rocky May 9, 2021
2ea8f91
Merge pull request #1365 from mathics/sympy-1.8
rocky May 9, 2021
2283335
Add sympy updated 1.8 in CHANGES.rst
rocky May 9, 2021
69b6dbe
more sophisticated support for logical evaluations
mmatera May 3, 2021
bbd289a
catch malformed Pattern
mmatera May 1, 2021
3ac1338
Merge pull request #1348 from mathics/predicate-processing
rocky May 10, 2021
4fe9ec0
Implement CoefficientArrays
mmatera Apr 9, 2021
d2ab922
restoring DRY version of algebra
mmatera May 9, 2021
3de2a23
Merge pull request #1341 from mathics/fix-matchq-errorhandler
rocky May 10, 2021
2125270
Small typo
rocky May 10, 2021
9d587f7
Note $VersionNumber bump in CHANGES.rst
rocky May 10, 2021
28530c4
Merge pull request #1324 from mathics/coeffarrays
rocky May 11, 2021
cd87f17
Add strict-wl-output option: no quotes in string
rocky May 11, 2021
16b741e
rebasing PR 644
mmatera May 11, 2021
e5480ff
More operators. What's up with Degree
rocky May 11, 2021
b27e42d
html and xml modules to fileformat
mmatera May 11, 2021
d32ed95
debug
mmatera May 11, 2021
0d0036a
Provision for autoloading from outside core.
rocky May 12, 2021
c4bfeca
Tweaks - add module to setup, revise doc.
rocky May 12, 2021
8e0ccb6
Comment out flaky URLFetch test
rocky May 12, 2021
778e8ab
Remove $UseSansSerif. add autoload() ...
rocky May 12, 2021
13a7b7f
Check that UseSansSerif is set to something valid.
rocky May 12, 2021
41adc43
Add autoload file for CLI
rocky May 12, 2021
8f7be52
Remove duplicate code
rocky May 12, 2021
37911b1
Merge pull request #1369 from mathics/general-autoload
rocky May 12, 2021
030c36e
Merge pull request #1368 from mathics/poke1024html-rebase
rocky May 12, 2021
9343528
Merge pull request #1362 from mathics/string-output-in-quotes
rocky May 12, 2021
82d8385
Adjust Degree test.
rocky May 13, 2021
2bae2ec
Easy access to system information
rocky May 13, 2021
8088c13
Merge pull request #1374 from mathics/system-info
rocky May 14, 2021
12792ab
Update doc for what is in "about" page
rocky May 14, 2021
462f995
Bump minimum MathicsScanner version
rocky May 15, 2021
4c2392d
Get ready for release 2.2.0
rocky May 15, 2021
8c732b2
Merge pull request #1375 from mathics/release-2.2.0
rocky May 15, 2021
14f2aba
Merge pull request #1372 from mathics/Degree-test
rocky May 15, 2021
5682345
Bump version to dev
rocky May 15, 2021
b96d5ec
Start to split off formatting routines..
rocky May 16, 2021
495a84b
DRY code a little
rocky May 17, 2021
ee8e6d3
to_svg doesn't seem needed for _ArcBox
rocky May 17, 2021
33fc83a
Mark what's needed and tidy
rocky May 17, 2021
346b19f
Relocate one more SVG to formatter space
rocky May 18, 2021
faf0528
Test Point and Ellipse
rocky May 18, 2021
9ecf464
Merge pull request #1376 from mathics/formatter-refactor
rocky May 18, 2021
f6fd7e6
remove warning lxml and improve the handling of lxml not availability
mmatera May 17, 2021
dfc6f64
Make Python package lxml optional
rocky May 17, 2021
2609b57
Remove degree sign. Simplify import failure
rocky May 19, 2021
d70ac47
Small lint-like things
rocky May 19, 2021
95f5575
Merge pull request #1385 from mathics/svg-linting
rocky May 19, 2021
7d31967
Proper way to indicate ColorDistance needs numpy
rocky May 19, 2021
1ef4407
WIP - start asymptote
rocky May 19, 2021
1806e0a
Remove _arcbox formatting
rocky May 19, 2021
129317e
Reinstate some asy routines graphics...
rocky May 19, 2021
d12ad2b
Convert to_asy() to lookup_method(xx,"asy)(xx)
rocky May 19, 2021
ef16eb6
Proper way to indicate ColorDistance needs numpy
rocky May 19, 2021
0600cac
Pull out common asy functions
rocky May 19, 2021
9611d08
More complete SVG format testing..
rocky May 20, 2021
2e5e52a
Start asy formatter unit test
rocky May 22, 2021
b4c5e03
More flexible naming in format conversion routines
rocky May 22, 2021
5b85f11
Merge pull request #1386 from mathics/formatter-asy
rocky May 23, 2021
633ae18
Add json formatter
rocky May 23, 2021
e5410c7
Merge pull request #1384 from mathics/fix1379-rebase
rocky May 23, 2021
2f30e2c
Make pyston 2.2 compatible
rocky May 22, 2021
a1ec1bb
Merge pull request #1388 from mathics/formatter-json
rocky May 23, 2021
ee6ffac
Merge pull request #1387 from mathics/pyston-compatability
rocky May 23, 2021
96cec39
Make it easier to build Mathics
rocky May 23, 2021
3e1586e
Merge pull request #1389 from mathics/more-optional-dependencies
rocky May 24, 2021
7799d7a
Remove builtin Box classes from docs
rocky May 24, 2021
818ccb6
Go over comparision doctests and text
rocky May 24, 2021
2c057bb
Merge pull request #1390 from mathics/go-over-inequality-doc
rocky May 24, 2021
8f9f686
Administriva: fix up optional package requirements
rocky May 28, 2021
a44aac4
Windows CI - we need all of the extras?
rocky May 28, 2021
8120d4b
Merge pull request #1392 from mathics/optional-requires
rocky May 28, 2021
237d80d
Make psutil optional - msys doesn't have
rocky May 30, 2021
7cac9bc
Merge pull request #1393 from mathics/remove-psutil-for-msys
rocky May 30, 2021
886a83c
Move many RealDigit tests to unit tests
rocky May 30, 2021
a619ef8
Merge pull request #1394 from mathics/realdigits-testing
rocky May 30, 2021
c260574
Hacky TickStyle for colors
rocky May 17, 2021
a80c9d4
Handle 3D TickStyle Color
rocky May 17, 2021
163f1f1
Merge pull request #1381 from mathics/TicksStyle-3D
rocky May 31, 2021
871d77c
Lint file
May 31, 2021
a4d342f
Go over Pi doc to make clearer numeric precision and numpy methdod
May 31, 2021
58cb4a0
Make internal Builtins internal.
rocky May 31, 2021
cd30f43
Merge pull request #1396 from mathics/note-internal-builtin-classes
rocky May 31, 2021
6c2a032
Merge branch 'master' into pi-doc
rocky May 31, 2021
0cce3c3
Merge pull request #1395 from mathics/pi-doc
rocky May 31, 2021
c6c39c8
Specify SVG text size in InsetBox
rocky Jun 1, 2021
79ad11c
Move more N tests to unit tests
rocky Jun 1, 2021
94ee6dd
Merge pull request #1398 from mathics/n-unit-test
rocky Jun 1, 2021
ace37fa
Remove HTML-oriented code.
rocky May 25, 2021
c26e4e2
Add --reload option. Remove more XML stuff
rocky Jun 1, 2021
d678247
Merge pull request #1391 from mathics/remove-django-doc
rocky Jun 1, 2021
fcd91e0
More doc fixes
rocky Jun 1, 2021
7092da2
More unicode to AMSLaTeX conversions
rocky Jun 1, 2021
ebeb201
Wrong kind of quote.
rocky Jun 1, 2021
d234619
Go over Nand/Nor/Xor operators
rocky Jun 1, 2021
c68ce87
Merge pull request #1399 from mathics/tex-doc-fixes
rocky Jun 1, 2021
0a48c80
Rightarrow fixes and other small doc fixes
rocky Jun 1, 2021
b9344ee
mathics/test.py -> docbuild.py and ...
rocky Jun 2, 2021
056b5f3
{test,docbuild}.py -> docpipeline.py
rocky Jun 2, 2021
c179d30
Merge pull request #1401 from mathics/test-to-docbuild
rocky Jun 2, 2021
ee072c8
Merge pull request #1400 from mathics/implies-doc-symbol
rocky Jun 3, 2021
d810880
Remove unit tests from algebra module
rocky Jun 3, 2021
47fd094
Merge pull request #1403 from mathics/add-test-algebra-unit-test
rocky Jun 3, 2021
399d561
Merge pull request #1397 from mathics/svg-inset-box-text-size
rocky Jun 3, 2021
e50033c
Move more tests
rocky Jun 3, 2021
ebe952b
Merge pull request #1404 from mathics/add-test-algebra-unit-test
rocky Jun 3, 2021
38b6d63
SVG adjustment for faulty PointSize calculation
rocky Jun 3, 2021
029d06a
Extend 2D PointBox to handle (roughly) PointSize.
rocky Jun 5, 2021
f0abdef
Merge pull request #1407 from mathics/svg-formatter-size-adjust
rocky Jun 5, 2021
5236ee8
More doctests moved to unit tests
rocky Jun 5, 2021
fd299ff
Merge pull request #1408 from mathics/more-unit-tests
rocky Jun 5, 2021
a6ec8da
Remove stray print
rocky Jun 6, 2021
e9ccd98
Sync docpipeline
rocky Jun 6, 2021
ccc6848
Merge pull request #1410 from mathics/administrivia
rocky Jun 6, 2021
ef46656
Redo rgbcolors doc
rocky Jun 6, 2021
8665da0
Two more color examples
rocky Jun 6, 2021
21c50cc
Comment out svg debugging print
rocky Jun 6, 2021
c259a97
Comment out svg debugging print
rocky Jun 6, 2021
396074e
Merge branch 'master' of github.com:mathics/Mathics
rocky Jun 7, 2021
b8968a0
Allow PointSize option to pass through to 3D box
rocky Jun 7, 2021
5a48e8f
WL uses evenodd fill rule for polygons
rocky Jun 7, 2021
d53004f
Add PointSize doc example
rocky Jun 7, 2021
e4985e4
Merge pull request #1412 from mathics/polygon-fill-rule
rocky Jun 7, 2021
541cba7
Merge pull request #1411 from mathics/add-pointsize-to-3d
rocky Jun 7, 2021
7b5cc91
Default PointSize is 0.01
rocky Jun 7, 2021
0c34b56
Default 3D PointSize is 0.01
rocky Jun 7, 2021
660713a
Update PointSize doc
rocky Jun 7, 2021
83bb068
Merge branch 'master' of github.com:mathics/Mathics
rocky Jun 7, 2021
551f358
Move Some FullForm tests to unit testing
rocky Jun 7, 2021
f25581f
Move some datelist unit tests
rocky Jun 7, 2021
b1d878a
Merge pull request #1413 from mathics/more-datetime-unit-tests
rocky Jun 7, 2021
59fec93
Add --chapter to docpiplinetests ...
rocky Jun 8, 2021
dedb59e
Merge pull request #1414 from mathics/chapter-tests
rocky Jun 8, 2021
2ec1912
Use Circle in Point[]. Fix setup.py
rocky Jun 6, 2021
42a962d
docpipeline: add --exclude option to exclude tests
rocky Jun 6, 2021
d5da325
See if this passes Travis
rocky Jun 8, 2021
2f7396f
Merge pull request #1415 from mathics/asymptote-small
rocky Jun 8, 2021
0bf5906
PointSize.get_size -> PointSize.get_absolute_size
rocky Jun 8, 2021
f915fc7
Merge pull request #1409 from mathics/asymptote-tweaks
rocky Jun 8, 2021
5fc562d
Small typo
rocky Jun 11, 2021
0e0f534
Handle missing psutil better.
rocky Jun 11, 2021
8397877
Merge pull request #1417 from mathics/options-psutil
rocky Jun 11, 2021
ee79216
Start to detagle mathml from json
rocky Jun 9, 2021
56290c7
Add Graphics3D to_js and to_json
rocky Jun 9, 2021
957382e
Save graphics options
rocky Jun 12, 2021
09248c7
Reinstate unintended deviations from master
rocky Jun 12, 2021
b67c285
Merge pull request #1418 from mathics/json-graphics
rocky Jun 12, 2021
8a96699
Add to_svg for graphs
rocky Jun 12, 2021
e6ddf5c
Include width in svg
rocky Jun 12, 2021
a128ada
Adjust SVG test for changed header
rocky Jun 12, 2021
4595a0a
Allow setting from outside SVG box width & height
rocky Jun 12, 2021
b00e8cb
Remove \n in <svg>
rocky Jun 12, 2021
0bf3efe
Merge pull request #1419 from mathics/svg-graphics
rocky Jun 12, 2021
053be50
Change double quote to single quote
TiagoCavalcante Jun 12, 2021
d8d0022
Merge pull request #1420 from TiagoCavalcanteTrindade/fix-graphics-3d
rocky Jun 12, 2021
0daba56
Add some defensive code.
rocky Jun 13, 2021
134bbc5
Go over/add some boxing docstrings
rocky Jun 13, 2021
9235d2a
Document better SVG polygonbox
rocky Jun 13, 2021
c41a1d2
Small lint-like and doc changes
rocky Jun 14, 2021
867de4e
Reinstate omitted _ArcBox formatting
rocky Jun 17, 2021
07b529e
Fix doughnut graphs, doc charting options better
rocky Jun 18, 2021
f02ecda
Merge pull request #1421 from mathics/arcbox-format
rocky Jun 18, 2021
11f7cc3
boxes_to_mathml tweak to assist debugging
rocky Jun 18, 2021
6de76f6
Fix tick numbers in charts
TiagoCavalcante Jun 19, 2021
072a0e3
Merge pull request #1423 from TiagoCavalcanteTrindade/fix-charts-tick…
rocky Jun 19, 2021
aea62ab
run latexmk in verbose mode; Nuke roman numerals
rocky Jun 19, 2021
17ad57c
Asymptote should use evenodd crossing in polygons
rocky Jun 19, 2021
3a855e6
Merge pull request #1425 from mathics/latex-doc-tweaks
rocky Jun 19, 2021
ce6e1ff
Merge pull request #1424 from mathics/evenodd-polygons
rocky Jun 19, 2021
7a66d1b
Adjustable Asymptote point size...
rocky Jun 19, 2021
8544454
Merge pull request #1426 from mathics/adjustable-asy-points
rocky Jun 19, 2021
4bffa23
Fix svg uses of "offset"
rocky Jun 19, 2021
6ec0b8b
Fix asymptote arrowbox broken by formatt refactor
rocky Jun 19, 2021
854c68c
Merge pull request #1427 from mathics/fix-asymptote-arrowbox
rocky Jun 19, 2021
c07cf97
Improve tick numbers in charts
TiagoCavalcante Jun 19, 2021
77aec0f
Merge pull request #1428 from TiagoCavalcanteTrindade/fix-charts-tick…
rocky Jun 19, 2021
510c6a5
module formatter -> format
rocky Jun 20, 2021
abfe6cf
Merge pull request #1429 from mathics/format-refactor
rocky Jun 20, 2021
7eb41d0
Segregate Box routine from Builtins
rocky Jun 20, 2021
df1fd86
Move inout Box routines to box/intout.py
rocky Jun 20, 2021
4be8ceb
Back off some refactoring for now.
rocky Jun 20, 2021
31ec284
Merge pull request #1430 from mathics/box-refactor
rocky Jun 20, 2021
2cb8e23
Miscellaneous documentation code fixes
rocky Jun 20, 2021
28475c6
Merge pull request #1431 from mathics/docfixes
rocky Jun 20, 2021
209619c
Fix Throw and Catch tests
TiagoCavalcante Jun 20, 2021
18aad40
Merge pull request #1432 from TiagoCavalcanteTrindade/improve-throw-c…
rocky Jun 20, 2021
7acedec
Use Mathics-centric doc markup for Catch.
rocky Jun 20, 2021
3395e8b
Add Structural Operations docstring
rocky Jun 20, 2021
c128bca
Fix charts tick numbers
TiagoCavalcante Jun 20, 2021
2de5524
Reinstate change in #1428
rocky Jun 20, 2021
257d4af
Merge pull request #1437 from TiagoCavalcanteTrindade/fix-charts-tick…
rocky Jun 20, 2021
e1616d2
Add some types
TiagoCavalcante Jun 22, 2021
4e61b94
Merge pull request #1440 from TiagoCavalcanteTrindade/add-types
rocky Jun 23, 2021
95334fc
Document BernsteinBasis
rocky Jun 23, 2021
1fff220
Remove System`$Notebooks from settings.m as all front ends already im…
TiagoCavalcante Jun 22, 2021
6517617
Move spline functions to drawing
rocky Jun 23, 2021
0587675
Pull out more from graphics!
rocky Jun 23, 2021
3235eed
Add settings test
TiagoCavalcante Jun 22, 2021
8794e5a
Merge pull request #1439 from TiagoCavalcanteTrindade/remove-notebook…
rocky Jun 23, 2021
d6ead61
Merge pull request #1441 from mathics/doc-more-builtins
rocky Jun 23, 2021
eca58e5
Add another BezierFunction example
rocky Jun 23, 2021
ae2480c
Merge pull request #1442 from mathics/bezier-again
rocky Jun 23, 2021
5ba5efc
Reorganize so Color section matches WL
rocky Jun 24, 2021
06b658e
Segregate color operations
rocky Jun 24, 2021
df43e34
Merge pull request #1443 from mathics/colors
rocky Jun 24, 2021
32df5b6
Black all Python files
rocky Jun 24, 2021
4924b68
Merge pull request #1444 from mathics/blacken-python-files
rocky Jun 24, 2021
ae89180
Address misc doc issues
rocky Jun 24, 2021
3fb1302
Merge pull request #1446 from mathics/doc-fixes
rocky Jun 24, 2021
a79729c
Tweak wording and examples on PolarPlot
Jun 24, 2021
ab15414
Do unicode fstrings work on Windows?
rocky Jun 24, 2021
4dfad11
Yet another approach to unicode on windows
rocky Jun 24, 2021
9583761
See if we can add theta
rocky Jun 24, 2021
c9f96dc
Revert theta use for now.
rocky Jun 24, 2021
e886351
Add labels to Pie Chart.
rocky Jun 24, 2021
c05e8ca
Merge pull request #1445 from mathics/polar-doc
rocky Jun 24, 2021
a4f38c3
Fill out descriptions on section names
rocky Jun 24, 2021
3897ad8
Merge pull request #1447 from mathics/more-section-names
rocky Jun 24, 2021
efab417
Add tensor note
rocky Jun 24, 2021
292ffe2
start making importexport black aware
rocky Jun 24, 2021
702601c
Merge pull request #1448 from mathics/black-and-doc
rocky Jun 24, 2021
da6fca1
More chapter-heading tweaks
rocky Jun 24, 2021
e547752
Make importexport black-safe...
rocky Jun 25, 2021
8244ba1
Windows needs raw strings in file names...
rocky Jun 25, 2021
466b983
CI Woes
rocky Jun 25, 2021
dfb84f8
CI woes
rocky Jun 25, 2021
f35d15e
Merge pull request #1449 from mathics/black-importexport
rocky Jun 25, 2021
98645c2
Add pre-commit hook, revise setup.cfg
rocky Jun 25, 2021
715b6c7
Add period to the ends of usage string sentences.
rocky Jun 25, 2021
026911a
Add Cylinder function
TiagoCavalcante Jun 25, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ omit =
mathics/doc/*
mathics/builtin/pymimesniffer/*
mathics/manage.py
mathics/test.py
mathics/docpipeline.py
10 changes: 5 additions & 5 deletions .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
brew install llvm@9
brew install llvm@11
python -m pip install --upgrade pip
LLVM_CONFIG=/usr/local/Cellar/llvm@9/9.0.1_2/bin/llvm-config pip install llvmlite
- name: Install Mathics
LLVM_CONFIG=/usr/local/Cellar/llvm@11/11.1.0/bin/llvm-config pip install llvmlite
- name: Install Mathics with full dependencies
run: |
make develop
make develop-full
- name: Test Mathics
run: |
pip install pytest pexpect
pip install -r requirements-dev.txt
make -j3 check
7 changes: 3 additions & 4 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ jobs:
run: |
sudo apt-get update -qq && sudo apt-get install -qq liblapack-dev llvm-dev
python -m pip install --upgrade pip
- name: Install Mathics
- name: Install Mathics with full dependencies
run: |
sed -i "s/'sympy==[0-9]\.[0-9]\.[0-9]', //" setup.py
make develop
make develop-full
- name: Test Mathics
run: |
pip install pytest pexpect
pip install -r requirements-dev.txt
make -j3 check
7 changes: 4 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
python setup.py install
- name: Test Mathics
run: |
pip install pytest
py.test test
python mathics/test.py
pip install -r requirements-extra.txt
pip install -r requirements-dev.txt
set PYTEST_WORKERS="-n3"
make check
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.c
*.cpp
*.dll
*.egg
*.gz
*.nix
Expand All @@ -25,7 +26,7 @@ _Database_/
build/
dist/
mathics/Makefile
mathics/doc/tex/data
mathics/doc/tex/doc_tex_data.pcl
mathics/doc/tex/documentation.tex
mathics/doc/tex/images/
mathics/doc/tex/logo-heptatom.pdf
Expand Down
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.0.0
hooks:
- id: debug-statements
- id: end-of-file-fixer
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
language_version: python3
exclude: 'mathicsscript/version.py'
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ before_install:
- python travis.py
- pip install cython
install:
- sed -i "s/'sympy==[0-9]\.[0-9]\.[0-9]', //" setup.py
- make develop
- make develop-full
script:
- make -j3 doc
notifications:
Expand Down
88 changes: 71 additions & 17 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,92 @@ CHANGES
=======


2.1.1
2.2.0
-----

New builtins
++++++++++++
Package update
++++++++++++++

- SymPy 1.8

New variables and builtins
++++++++++++++++++++++++++

* ``Arg``
* ``CoefficientArrays`` and ``Collect`` (#1174, #1194)
* ``Dispatch``
* ``FullSimplify``
* ``LetterNumber`` #1298. The ``alphabet`` parameter supports only a minimal number of languages.
* ``MemoryAvailable``
* ``MemoryInUse``
* ``Nand`` and ``Nor`` logical functions.
* ``Series``, ``O`` and ``SeriesData``
* All of the named colors, e.g. ``Brown`` or ``LighterMagenta``
* ``StringReverse``
* ``$SystemMemory``
* Add all of the named colors, e.g. ``Brown`` or ``LighterMagenta``.



Enhancements
++++++++++++

* a function `evaluate_predicate` allows for a basic predicate evaluation using `$Assumptions`.
* ``Attributes`` accepts a string parameter.
* ``Cases`` accepts Heads option. Issue #1302.
* ``ColorNegate`` for colors is supported.
* ``D`` and ``Derivative`` improvements.
* ``Expand`` and ``ExpandAll`` now support a second parameter ``patt`` Issue #1301.
* ``Expand`` and ``ExpandAll`` works with hyperbolic functions (`Sinh`, `Cosh`, `Tanh`, `Coth`).
* ``FileNames`` returns a sorted list (#1250).
* ``FindRoot`` now receives several optional parameters like ``Method`` and ``MaxIterations``.
* ``FindRoot`` now accepts several optional parameters like ``Method`` and ``MaxIterations``. See Issue #1235.
* ``FixedPoint`` now supports the ``SameTest`` option.
* ``ReplaceRepeated`` and ``FixedPoint`` now supports the ``MaxIteration`` option (#1260).
* ``mathics`` CLI now uses its own Mathics ``settings.m`` file
* ``Prepend`` works with ``DownValues`` Issue #1251
* ``Prime`` and ``PrimePi`` now accept a list parameter and have the ``NumericFunction`` attribute.
* ``Read`` with ``Hold[Expression]`` now supported. (#1242)
* ``ReplaceRepeated`` and ``FixedPoint`` now supports the ``MaxIteration`` option. See Issue #1260.
* ``Simplify`` performs a more sophisticated set of simplifications.
* ``Simplify`` accepts a second parameter that temporarily overwrites ``$Assumptions``.
* ``StringTake`` now accepts form containing a list of strings and specification. See Issue #1297.
* ``Table`` [*expr*, *n*] is supported.
* ``ToExpression`` handles multi-line string input.
* ``ToString`` accepts an optional *form* parameter.
* ``ToExpression`` handles multi-line string input
* The implementation of Streams was redone
* ``ToExpression`` handles multi-line string input.
* ``$VersionNumber`` now set to 10.0 (was 6.0).
* The implementation of Streams was redone.
* Function ``mathics.core.definitions.autoload_files`` was added and
exposed to allow front-ends to provide their own custom Mathics.
settings.
* String output in the ``mathics`` terminal has surrounding quotes to make it more visually distinct from unexpanded and symbol output.
To disable this behavior use ``--strict-wl-output``.


Bug fixes
+++++++++

* ``SetTagDelayed`` does not evaluate now the rhs before assignment.
* ``$InstallationDirectory`` starts out Unprotected
* ``SetTagDelayed`` now does not evaluate the RHS before assignment.
* ``$InstallationDirectory`` starts out ``Unprotected``.
* ``FindRoot`` now handles equations.
* Malformed Patterns are detected and an error message is given for them.
* Functions gone over to ensure the ``Listable`` and ``NumericFunction`` properties are correct.


Incompatible changes
--------------------

* ``System`$UseSansSerif`` moved from core and is sent front-ends using ``Settings`$UseSansSerif``.


Internal changes
----------------

* doctest accepts the option ``-d`` to show how long it takes to parse, evaluate and compare each individual test.
``-x`` option (akin to ``pytests -x`` is a short-hand for stop on first error
* Some builtin functions have been grouped together in a module
underneath the top-level builtin directory. As a result, in the
documents you will list some builtins listed under an overarching
categery like ``Specific Functions`` or ``Graphics, Drawing, and
Images``. More work is expected in the future to improve document sectioning.


2.1.0
Expand Down Expand Up @@ -82,7 +136,7 @@ Pymathics Modules
+++++++++++++++++

* Pymathics modules now can run initialization code when are loaded.
* The ``builtins`` list is not hardliked to the library anymore. This simplifies
* The ``builtins`` list is not hard-linked to the library anymore. This simplifies
the loading and reloading of pymathics modules.
* Decoupling of BoxConstructors from the library. Now are defined at the
level of the definition objects. This is useful for customizing the
Expand All @@ -92,10 +146,10 @@ Pymathics Modules
Miscellanea
+++++++++++

* A pass was made to improve Microsoft Windows compatability and testing Windows under MSYS.
* A pass was made to improve Microsoft Windows compatibility and testing Windows under MSYS.
* Include numpy version in version string. Show in CLI
* Small CLI tweaks ``--colors=None`` added to match mathicsscript.
* In the ``BaseExpression`` and derivated classes, the method ``boxes_to_xml`` now are called ``boxes_to_mathml``.
* In the ``BaseExpression`` and derived classes, the method ``boxes_to_xml`` now are called ``boxes_to_mathml``.
* In the ``format`` method of the class ``Evaluation``, the builtin ``ToString`` is called instead of ``boxes_to_text``
* In order to control the final form of boxes from the user space in specific symbols and contexts.
* ``GraphicsBox`` now have two methods: ``to_svg`` and ``to_mathml``. The first produces SVG plain text while the second produces ``<mglyph ...>`` tags with base64 encoded SVGs.
Expand All @@ -118,7 +172,7 @@ What's to expect in a Future Release
To accommodate growth and increased use of pieces of Mathics inside other packages, parts of Mathics have been split off and moved to separate packages. In particular:

* The Django front-end is now a PyPI installable package called `Mathics-Django <https://pypi.org/project/Mathics-Django/>`_.
* Scanner routines, character translation tables to/from unicode, and character properties are now `mathics-scanner https://github.com/Mathics3/mathics-scanner`_.
* Scanner routines, character translation tables to/from Unicode, and character properties are now `mathics-scanner https://github.com/Mathics3/mathics-scanner`_.
* Specific builtins involving heavy, non-standard routines were moved to pymathics modules `pymathics-graph https://github.com/Mathics3/pymathics-graph`_, `pymathics-natlang https://github.com/Mathics3/pymathics-natlang`_.

Incompatible changes:
Expand Down Expand Up @@ -211,7 +265,7 @@ Future
* Work is also being done on asymptote. See `PR #1145 <https://github.com/mathics/Mathics/pull/1145>`_.
* Makeboxes is being decoupled from a renderer. See `PR #1140 <https://github.com/mathics/Mathics/pull/1140>`_.
* Inline SVG will be supported (right now SVG is binary).
* Better support integrating unicode in output (such as for Rule arrows) is in the works. These properties will be in the scanner package.
* Better support integrating Unicode in output (such as for Rule arrows) is in the works. These properties will be in the scanner package.
* A method option ("mpmath", "sympy", or "numpy") will be added to the ``N[]``. See `PR #1144 <https://github.com/mathics/Mathics/pull/1144>`_.


Expand Down Expand Up @@ -261,7 +315,7 @@ Enhancements and bug fixes
- Extend ``DeleteCases`` to accept a levelspec parameter
- Set ``Evaluation#exc_result`` to capture ``Aborted``, ``Timeout``, ``Overflow1``, etc.
- ``ImageData`` changed to get bits {0,1}, not booleans as previously
- Add tokenizer symbols for ``<->`` and ``->`` and the unicode versions of those
- Add tokenizer symbols for ``<->`` and ``->`` and the Unicode versions of those
- Small corrections to ``Needs``, e.g check if already loaded, correct a typo, etc.
- ``System`$InputFileName`` is now set inside ``Needs`` and ``Get``
- Install shell scripts ``dmathicserver``, ``dmathicsscript``, and ``dmathics`` to simplify running docker
Expand Down Expand Up @@ -365,7 +419,7 @@ Enhancements and bug fixes
- proper sympolic expantion for ``Re`` and ``Im``
- fixes a bug in the evaluation of ``SympyPrime`` #827
- clean up ``ColorData``
- fixes unicode characters in TeX document
- fixes Unicode characters in TeX document
- update Django gallery examples
- fixes ``Sum`` and ``Product`` #869, #873
- warn when using options not supported by a Builtin #898, #645
Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ include ChangeLog
include COPYING.txt
include FUTURE.rst
include Makefile
include mathics/Makefile
include mathics/Makefile
recursive-include mathics *.py
recursive-include test *.py *.m
25 changes: 18 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RM ?= rm

.PHONY: all build \
check clean \
develop dist doc doc-data djangotest \
develop dist doctest doc-data djangotest \
gstest pytest \
rmChangeLog \
test
Expand All @@ -37,11 +37,17 @@ build:
develop:
$(PIP) install -e .

#: Set up to run from the source tree with full dependencies
develop-full:
$(PIP) install -e .
$(PIP) install -r requirements-extra.txt


#: Make distirbution: wheels, eggs, tarball
dist:
./admin-tools/make-dist.sh

#: Install mathics
#: Install Mathics
install:
$(PYTHON) setup.py install

Expand All @@ -57,7 +63,7 @@ clean:

#: Run py.test tests. Use environment variable "o" for pytest options
pytest:
py.test test $o
py.test $(PYTEST_WORKERS) test $o


#: Run a more extensive pattern-matching test
Expand All @@ -66,15 +72,20 @@ gstest:


#: Create data that is used to in Django docs and to build TeX PDF
doc-data mathics/doc/tex/data: mathics/builtin/*.py mathics/doc/documentation/*.mdoc mathics/doc/documentation/images/*
$(PYTHON) mathics/test.py -ot -k
doc-data mathics/doc/tex/doc_tex_data.pcl: mathics/builtin/*.py mathics/doc/documentation/*.mdoc mathics/doc/documentation/images/*
$(PYTHON) mathics/docpipeline.py -ot -k

#: Run tests that appear in docstring in the code.
doctest-workaround:
SANDBOX=$(SANDBOX) $(PYTHON) mathics/docpipeline.py --exclude=NIntegrate,MaxRecursion
SANDBOX=$(SANDBOX) $(PYTHON) mathics/docpipeline.py --sections=NIntegrate,MaxRecursion

#: Run tests that appear in docstring in the code.
doctest:
SANDBOX=$(SANDBOX) $(PYTHON) mathics/test.py $o
SANDBOX=$(SANDBOX) $(PYTHON) mathics/docpipeline.py $o

#: Make Mathics PDF manual
doc mathics.pdf: mathics/doc/tex/data
doc mathics.pdf: mathics/doc/tex/doc_tex_data.pcl
(cd mathics/doc/tex && $(MAKE) mathics.pdf)

#: Remove ChangeLog
Expand Down
2 changes: 1 addition & 1 deletion admin-tools/pyenv-versions
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
echo "This script should be *sourced* rather than run directly through bash"
exit 1
fi
export PYVERSIONS='3.6.13 3.7.10 3.8.8 3.9.3'
export PYVERSIONS='3.6.13 3.7.10 3.8.10 3.9.5'
4 changes: 2 additions & 2 deletions admin-tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# Clear directory build/
# python setup.py develop
# mathics/
# python test.py -o
# python test.py -t
# python docpipeline.py -o
# python docpipeline.py -t
# mathics/doc/tex/
# make latex
# Then run this file.
Expand Down
1 change: 1 addition & 0 deletions admin-tools/time-mathmp-sympy-fns.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

# print(mpmath.pi, "\n")


def math_pi():
return math.pi

Expand Down
6 changes: 3 additions & 3 deletions examples/symbolic_logic/gries_schneider/test_gs.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
definitions = Definitions(add_builtin=True)

for i in range(1, 4):
evaluation = Evaluation(definitions=definitions, catch_interrupt=False)
evaluation = Evaluation(definitions=definitions, catch_interrupt=False)

expr = parse(definitions, MathicsSingleLineFeeder(f"<< GS{i}.m"))
expr.evaluate(evaluation)
expr = parse(definitions, MathicsSingleLineFeeder(f"<< GS{i}.m"))
expr.evaluate(evaluation)
12 changes: 12 additions & 0 deletions mathics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@
if "cython" in version_info:
version_string += f", cython {version_info['cython']}"


def load_default_settings_files(definitions, load_cli_settings: bool = True):
import os.path as osp
from mathics.core.definitions import autoload_files

root_dir = osp.realpath(osp.dirname(__file__))

autoload_files(definitions, root_dir, "autoload", False)
if load_cli_settings:
autoload_files(definitions, root_dir, "autoload-cli", False)


license_string = """\
Copyright (C) 2011-2021 The Mathics Team.
This program comes with ABSOLUTELY NO WARRANTY.
Expand Down
Loading