Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[24.0] Set minimum weasyprint version #18606

Merged
merged 4 commits into from
Jul 29, 2024

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Jul 28, 2024

We're not pinning transitive conditional dependencies, and a new pydyf version, which is a dependency of weasyprint, had a new release with a breaking change, see (Kozea/WeasyPrint#2200).

Newer releases of weasyprint have introduced max version pins, so I think we're ok with just setting a minimum version here.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

We're not pinning transitive conditional dependencies, and a new pydyf
version, which is a dependency of weasyprint, had a new release with a
breaking change, see (Kozea/WeasyPrint#2200).

Newer releases of weasyprint have introduced max version pins, so I
think we're ok with just setting a minimum version here.
@mvdbeek
Copy link
Member Author

mvdbeek commented Jul 28, 2024

Arg, of course, that's why the tests failed. The fixed version is only available for python >= 3.9 ... . Guess we need some python version-specific logic here to pin the version of pydyf.

Copy link
Member

@nsoranzo nsoranzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the API and Selenium tests, which run on Python 3.8, but I think this is still an issue for >=3.9. We will need to revisit this once a new Weasyprint release is out that includes Kozea/WeasyPrint@c345629 .

lib/galaxy/dependencies/conditional-requirements.txt Outdated Show resolved Hide resolved
lib/galaxy/dependencies/__init__.py Outdated Show resolved Hide resolved
@mvdbeek
Copy link
Member Author

mvdbeek commented Jul 28, 2024

That commit just adds the upper bound, to make 3.9 work all that's needed is a recent version of weasyprint.

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

Co-authored-by: Nicola Soranzo <[email protected]>
Co-authored-by: Nicola Soranzo <[email protected]>
@nsoranzo nsoranzo merged commit 9191eee into galaxyproject:release_24.0 Jul 29, 2024
44 of 50 checks passed
@nsoranzo nsoranzo deleted the pin_weasyprint_version branch July 29, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants