Use python version syntax

I don't think this works with our custom parsing, but worth a try.

Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
This commit is contained in:
Marius van den Beek
2024-07-28 21:13:32 +02:00
committed by GitHub
co-authored by Nicola Soranzo
parent 77efbaf792
commit 0a637a5b02
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -290,7 +290,7 @@ class ConditionalDependencies:
def check_pydyf(self):
# See notes in ./conditional-requirements.txt for more information.
return os.environ.get("GALAXY_DEPENDENCIES_INSTALL_WEASYPRINT") == "1" and sys.version_info < (3, 9)
return os.environ.get("GALAXY_DEPENDENCIES_INSTALL_WEASYPRINT") == "1"
def check_custos_sdk(self):
return "custos" == self.vault_type
@@ -61,7 +61,7 @@ weasyprint>=61.2
# not compatible with the last weasyprint version that still supports python 3.8.
# This dependency is ignored on python >= 3.9 and should be removed when deprecating
# support for python 3.8.
pydyf==0.10.0
pydyf<0.12; python_version<"3.9"
# AWS Batch runner
boto3