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

3257 - Add linkify version to fix bioconda dependencies #3260

Closed
wants to merge 3 commits into from

Conversation

pmoris
Copy link
Contributor

@pmoris pmoris commented Oct 29, 2024

As described in issue: #3257

Also see PR against the bioconda recipe (as a temporary fix): bioconda/bioconda-recipes#51762

The bioconda version of nf-core tools produced errors when running commands that launched the trogon TUI. The reason was the missing package linkify,
which gets pulled in as a dependency of textual in the PyPi build, but not in the conda-forge recipe.
See https://github.com/Textualize/textual/blob/22770300252deb28d266fe4ed4766d6e2a2f5dd2/pyproject.toml#L44, https://github.com/conda-forge/textual-feedstock/blob/main/recipe/meta.yaml and #3257.

Unless the conda-forge recipe for textual gets fixed, the bioconda recipe fix might get lost when a new version is built against the PyPi version of nf-core. So I propose that we also explicitly specify linkify in the requirements.txt file.

Before this is merged, could someone please verify if the version pinning makes sense? As you can see in the bioconda PR, coderabbitai suggested pinning a specific version, but I think it got it the wrong way around.

PR checklist

  • This comment contains a description of changes (with reason)
  • CHANGELOG.md is updated
  • If you've fixed a bug or added code that should be tested, add tests!
  • Documentation in docs is updated

The bioconda version of nf-core tools produced errors
when running commands that launched the trogon TUI.
The reason was the missing package linkify,
which gets pulled in as a dependency of textual in the PyPi
build, but not in the conda-forge recipe.
See https://github.com/Textualize/textual/blob/22770300252deb28d266fe4ed4766d6e2a2f5dd2/pyproject.toml#L44,
https://github.com/conda-forge/textual-feedstock/blob/main/recipe/meta.yaml
and nf-core#3257.
Code Rabbit AI suggestion:
The textual package version 0.71.0 depends on
markdown-it-py[linkify]>=2.1.0, which in turn
requires linkify-it-py>=2.0.0.

However, checking the actual dependencies of
markdown-it-py, it seems it wants linkify-it-py
to be >=1,<3.

See bioconda/bioconda-recipes#51762
@pmoris
Copy link
Contributor Author

pmoris commented Oct 29, 2024

As mentioned in the issue, I also opened a PR against the conda-forge recipe for textual: conda-forge/textual-feedstock#150

If/when it gets added there, it would not strictly be necessary to add linkify-it-py to the nf-core requirements anymore. But for the time being this would fix problems with people installing it through bioconda at least.

@pmoris pmoris requested review from mirpedrol and mashehu and removed request for mirpedrol October 29, 2024 13:47
Copy link
Member

@mirpedrol mirpedrol left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link

codecov bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.51%. Comparing base (eb4c237) to head (3a80996).
Report is 9 commits behind head on dev.

Additional details and impacted files

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pmoris
Copy link
Contributor Author

pmoris commented Oct 30, 2024

The conda-forge recipe update already got merged, so hopefully any future releases/builds should work.

That means that this PR can be closed without merging it, but the bioconda-recipe one should still be merged to fix the current version of the package.

@pmoris pmoris closed this Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants