Skip to content

Commit

Permalink
Use python version syntax
Browse files Browse the repository at this point in the history
I don't think this works with our custom parsing, but worth a try.

Co-authored-by: Nicola Soranzo <[email protected]>
  • Loading branch information
mvdbeek and nsoranzo authored Jul 28, 2024
1 parent 77efbaf commit 0a637a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/galaxy/dependencies/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def check_weasyprint(self):

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
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/dependencies/conditional-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0a637a5

Please sign in to comment.