mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
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:
co-authored by
Nicola Soranzo
parent
77efbaf792
commit
0a637a5b02
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user