Skip to content

Commit

Permalink
Get ready for release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Mar 28, 2021
1 parent a0aad4f commit 25a2b51
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 7 deletions.
12 changes: 12 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
CHANGES
=======

1.1.0
-----

* Add operator-name, and ascii fields. See named-characters.yml for a description of these
* Add some whitespace characters like IndentingNewLine and RawReadLine
* Improve testing
* Fix some small tagging based on testing
* Add unicode-to-operator generation

Note: not all operators have been tagged, so expect another release soon when that's done.


1.0.0
-----

Expand Down
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Mathics is released under the GNU General Public License Version 3 (GPL3).
.. |Workflows| image:: https://github.com/Mathics3/mathics-scanner/workflows/Mathics%20(ubuntu)/badge.svg
.. |Packaging status| image:: https://repology.org/badge/vertical-allrepos/mathics-scanner.svg
:target: https://repology.org/project/mathics-scanner/versions
.. |Latest Version| image:: https://badge.fury.io/py/mathics-scanner.svg
:target: https://badge.fury.io/py/mathics-scanner
.. |Pypi Installs| image:: https://pepy.tech/badge/mathics-scanner
.. |Supported Python Versions| image:: https://img.shields.io/pypi/pyversions/mathics-scanner.svg
.. |Latest Version| image:: https://badge.fury.io/py/Mathics-Scanner.svg
:target: https://badge.fury.io/py/Mathics-Scanner
.. |Pypi Installs| image:: https://pepy.tech/badge/Mathics-Scanner
.. |Supported Python Versions| image:: https://img.shields.io/pypi/pyversions/Mathics-Scanner.svg
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.12 3.7.9 3.8.7 3.9.1'
export PYVERSIONS='3.6.13 3.7.10 3.8.8 3.9.2'
2 changes: 1 addition & 1 deletion mathics_scanner/data/named-characters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Aleph:
unicode-equivalent-name: ALEF SYMBOL
wl-unicode: "\u2135"
wl-unicode-name: ALEF SYMBOL
# Note: the unicode ofr AliasDelimiter doesn't look like "-"
# Note: the unicode for AliasDelimiter doesn't look like "-"
AliasDelimiter:
has-unicode-inverse: false
is-letter-like: false
Expand Down
8 changes: 8 additions & 0 deletions mathics_scanner/generate/build_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,18 @@ def compile_tables(data: dict) -> dict:
if "operator-name" in v and "unicode-equivalent" in v
}

# operator-to-unicode dictionary
unicode_to_operator = {
v["unicode-equivalent"]: v["operator-name"]
for k, v in data.items()
if "operator-name" in v and "unicode-equivalent" in v
}
return {
"aliased-characters": aliased_characters,
"letterlikes": letterlikes,
"named-characters": named_characters,
"operator-to-unicode": operator_to_unicode,
"unicode-to-operator": operator_to_unicode,
"unicode-to-wl-dict": unicode_to_wl_dict,
"unicode-to-wl-re": unicode_to_wl_re,
"wl-to-ascii-dict": wl_to_ascii_dict,
Expand All @@ -161,6 +168,7 @@ def compile_tables(data: dict) -> dict:
"letterlikes",
"named-characters",
"operator-to-unicode",
"unicode-to-operator",
"unicode-to-wl-dict",
"unicode-to-wl-re",
"wl-to-ascii-dict",
Expand Down
2 changes: 1 addition & 1 deletion mathics_scanner/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# This file is suitable for sourcing inside POSIX shell as
# well as importing into Python. That's why there is no
# space around "=" below.
__version__="1.0.1.dev0" # noqa
__version__="1.1.0" # noqa

0 comments on commit 25a2b51

Please sign in to comment.