refactor: summarize error message without line number

This commit is contained in:
Florian Hönicke
2023-05-28 01:19:55 +02:00
parent b04bc2139c
commit 8333346964
2 changed files with 13 additions and 2 deletions

View File

@@ -56,6 +56,8 @@ pdfminer.six>=20201018,<20211018
requests
# another existing package without version
streamlit
# invalid version 1.0beta5prerelease
google-api-python-client
"""
requirements_clean = """\
jina==111.222.333
@@ -64,7 +66,8 @@ gtts~=2.2.3
pydub~=0.25.1
pdfminer.six~=20201018
requests~=2.26.0
streamlit~=0.89.0"""
streamlit~=0.89.0
google-api-python-client~=2.23.0"""
requirements_txt_path = os.path.join(tmpdir, "requirements.txt")
with open(requirements_txt_path, "w", encoding="utf-8") as f:
f.write(requirements_content)