fix: poetry version check

pull/19/head
Raphaël Vinot 2023-01-06 02:18:02 +01:00
parent 78549b1c5b
commit bec940cba0
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ def check_poetry_version():
process = subprocess.run(args, cwd=homedir, capture_output=True)
poetry_version_str = process.stdout.decode()
version = poetry_version_str.split()[2]
version = version.strip(')')
version_details = tuple(int(i) for i in version.split('.'))
if version_details < (1, 1, 0):
print('The project requires poetry >= 1.1.0, please update.')