Skip to content

Commit 0e7bd0c

Browse files
authored
Merge pull request #6 from Mathics3/mathics-scanner-import
Automatically handle characters.json
2 parents 54026dc + add65ee commit 0e7bd0c

File tree

5 files changed

+6
-39
lines changed

5 files changed

+6
-39
lines changed

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ RM ?= rm
2020
all: develop
2121

2222
mathics_scanner/data/characters.json: mathics_scanner/data/named-characters.yml
23-
$(PIP) install PyYAML
24-
$(PYTHON) admin-tools/compile-translation-tables.py
23+
$(PIP) install -r requirements-dev.txt
24+
$(PYTHON) mathics_scanner/build_tables.py
2525

2626
#: build everything needed to install
2727
build: mathics_scanner/data/characters.json
@@ -40,10 +40,11 @@ test check: pytest
4040

4141
#: Remove derived files
4242
clean:
43-
@find . -name *.pyc -type f -delete;
43+
@find . -name *.pyc -type f -delete; \
44+
$(RM) -f mathics_scanner/data/characters.json || true
4445

4546
#: Run py.test tests. Use environment variable "o" for pytest options
46-
pytest:
47+
pytest: mathics_scanner/data/characters.json
4748
py.test test $o
4849

4950

mathics_scanner/data/characters.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PyYAML

tox.ini

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)