mirror of
https://github.com/google/sentencepiece.git
synced 2024-12-28 02:34:25 +03:00
fix the build error on setup.py test
This commit is contained in:
parent
0f544b32d9
commit
51f9ced579
2
.github/workflows/cmake.yml
vendored
2
.github/workflows/cmake.yml
vendored
@ -63,7 +63,7 @@ jobs:
|
||||
working-directory: ${{github.workspace}}/python
|
||||
run: |
|
||||
python -m pip install --require-hashes --no-dependencies -r ../.github/workflows/requirements/base.txt
|
||||
python setup.py test
|
||||
python -m pytest
|
||||
python setup.py bdist_wheel
|
||||
|
||||
- name: Upload artifcacts
|
||||
|
1
.github/workflows/requirements/base.in
vendored
1
.github/workflows/requirements/base.in
vendored
@ -2,3 +2,4 @@ pip
|
||||
setuptools
|
||||
wheel
|
||||
twine
|
||||
pytest
|
||||
|
@ -211,4 +211,5 @@ setup(
|
||||
'Topic :: Software Development :: Libraries :: Python Modules',
|
||||
],
|
||||
test_suite='sentencepiece_test.suite',
|
||||
tests_require=['pytest'],
|
||||
)
|
||||
|
@ -15,11 +15,14 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.!
|
||||
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, 'src')
|
||||
|
||||
from collections import defaultdict
|
||||
import io
|
||||
import os
|
||||
import pickle
|
||||
import sys
|
||||
import unittest
|
||||
import sentencepiece as spm
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user