Skip to content

Commit

Permalink
cli: fix 'No module named pypinyin.tools.toneconvert'
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Mar 10, 2024
1 parent 85469ed commit 6eb2876
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@ jobs:
- name: Run tests
run: |
py.test tests/ pypinyin/
- name: test cli
run: |
set -xe
python setup.py sdist
python -m pip install dist/*.gz
pypinyin test
python -m pypinyin.tools.toneconvert to-tone 'zhong4 xin1'
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
'pypinyin.contrib',
'pypinyin.seg',
'pypinyin.style',
'pypinyin.tools',
]

requirements = []
Expand Down

0 comments on commit 6eb2876

Please sign in to comment.