Skip to content

Commit

Permalink
Another attempt at packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Aug 29, 2024
1 parent 0279e0c commit 4a7c42c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/mathics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
run: |
# Until next Mathics3/mathics-core release is out...
git clone https://github.com/Mathics3/mathics-core.git
(cd mathics-core && pip install -e .[full]
cd mathics-core/
git checkout table-driven-operator-precedence
make
pip install -e .[full]
# pip install Mathics3[full]
MATHICS_CHARACTER_ENCODING="ASCII" make check-mathics
7 changes: 4 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,14 @@ To regenerate JSON-format tables run:

::

$ mathics-generate-json-table
$ mathics3-generate-json-table
$ mathics3-operator-json-table

Without options ``mathics-generate-json-table`` produces the maximum set of correspondences.
Without options ``mathics3-generate-json-table`` produces the maximum set of correspondences.

In most applications though you may need just a few of these. The
``--field`` option can be used to narrow the list of entries to output in JSON. Run
``mathics-generate-json-table --help`` for a full list of fields.
``mathics3-generate-json-table --help`` for a full list of fields.


Implementation
Expand Down
1 change: 1 addition & 0 deletions admin-tools/make-tables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ PYTHON=${PYTHON:-python}

cd $mydir/../mathics_scanner/data
$PYTHON ../generate/build_tables.py -o characters.json
$PYTHON ../generate/build_operator_tables.py -o operators.json
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ build-backend = "setuptools.build_meta"
name = "Mathics_Scanner"
description = "Character Tables and Tokenizer for Mathics and the Wolfram Language."
dependencies = [
"PyYAML", # Used in mathics-generate-json-table
"PyYAML", # Used in mathics3-generate-json-table
"chardet", # Used in mathics_scanner.feed
"click", # Using in CLI: mathics-generate-json-table
"click", # Using in CLI: mathics3-generate-json-table
]
requires-python = ">=3.8"
readme = "README.rst"
Expand Down

0 comments on commit 4a7c42c

Please sign in to comment.