Unverified Commit 0a637a5b authored by Marius van den Beek's avatar Marius van den Beek Committed by GitHub
Browse files

Use python version syntax



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

Co-authored-by: default avatarNicola Soranzo <nicola.soranzo@gmail.com>
parent 77efbaf7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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