-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
46 lines (33 loc) · 1.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
install:
pip uninstall parsetc
pip install .
install-editable:
pip install --editable .
test1: test-teochew-parse test-cantonese-parse
test2: test-teochew-translate test-cantonese-translate
test-teochew-parse:
cat examples/teochew.dieghv.sep.txt | parsetc -l Teochew -i dieghv -p
cat examples/teochew.dieghv.tones.txt | parsetc -l Teochew -i dieghv -p
test-teochew-translate:
cat examples/teochew.dieghv.sep.txt | parsetc -l Teochew -i dieghv --all
cat examples/teochew.duffus.txt | parsetc -l Teochew -i duffus --all
test-cantonese-parse:
cat examples/cantonese.cpy.txt | parsetc -l Cantonese -i cpy -p
cat examples/cantonese.jp.txt | parsetc -l Cantonese -i jp -p
test-cantonese-translate:
cat examples/cantonese.cpy.txt | parsetc -l Cantonese -i cpy --all
cat examples/cantonese.jp.txt | parsetc -l Cantonese -i jp --all
test3:
echo 'tsioh thâu' | parsetc -i duffus -a
black:
black src/parsetc/parsetc.py
black src/parsetc/Teochew/*.py
black src/parsetc/Cantonese/*.py
docs:
pdoc -o docs -d numpy --include-undocumented ./src/parsetc
build: docs
python -m build
upload:
twine upload --skip-existing dist/*
help:
echo "install test1 test2 docs build upload"