Python package: pyyaml >= 5.1 (#429)

Fixes issue on Colab which says vanilla YAML intall (3.x) does not have
yaml.FullLoader (https://stackoverflow.com/a/55553392/4565794).

Fix a broken link for presentation in PyPI.
This commit is contained in:
Jerin Philip 2022-06-24 08:57:39 +01:00 committed by GitHub
parent 05a8778497
commit 3ef85e12be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,7 +209,7 @@ setup(
python_requires=">=3.6",
packages=["bergamot"],
package_dir={"bergamot": "bindings/python"},
install_requires=["requests", "pyyaml", "appdirs"],
install_requires=["requests", "pyyaml>=5.1", "appdirs"],
entry_points={
"console_scripts": [
"bergamot = bergamot.__main__:main",
@ -241,7 +241,7 @@ setup(
"Programming Language :: Python :: 3 :: Only",
],
project_urls={
"Bug Reports": "https://github.com/browsermt/bergamot-transator/issues",
"Bug Reports": "https://github.com/browsermt/bergamot-translator/issues",
"Source": "https://github.com/browsermt/bergamot-translator/",
"Documentation": "https://browser.mt/docs/main/python.html",
},