Fix packaging pin (#6212)

* pin packaging to >=20.0

* ignore spacy-pkuseg in requirements unit test
This commit is contained in:
Sofie Van Landeghem 2020-10-06 14:16:05 +02:00 committed by GitHub
parent cfb9770a94
commit fff3f8ccfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -18,7 +18,7 @@ pydantic>=1.5.0,<2.0.0
pytokenizations pytokenizations
# Official Python utilities # Official Python utilities
setuptools setuptools
packaging packaging>=20.0
importlib_metadata>=0.20; python_version < "3.8" importlib_metadata>=0.20; python_version < "3.8"
typing_extensions>=3.7.4; python_version < "3.8" typing_extensions>=3.7.4; python_version < "3.8"
# Development dependencies # Development dependencies

View File

@ -55,7 +55,7 @@ install_requires =
pytokenizations pytokenizations
# Official Python utilities # Official Python utilities
setuptools setuptools
packaging packaging>=20.0
importlib_metadata>=0.20; python_version < "3.8" importlib_metadata>=0.20; python_version < "3.8"
typing_extensions>=3.7.4; python_version < "3.8" typing_extensions>=3.7.4; python_version < "3.8"

View File

@ -10,12 +10,14 @@ def test_build_dependencies():
"mock", "mock",
"flake8", "flake8",
] ]
# ignore language-specific packages that shouldn't be installed by all
libs_ignore_setup = [ libs_ignore_setup = [
"fugashi", "fugashi",
"natto-py", "natto-py",
"pythainlp", "pythainlp",
"sudachipy", "sudachipy",
"sudachidict_core", "sudachidict_core",
"spacy-pkuseg",
] ]
# check requirements.txt # check requirements.txt