-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
krakentools: alpha_diversity requires scipy #52125
Conversation
📝 WalkthroughWalkthroughThe pull request introduces modifications to the Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Outside diff range and nitpick comments (1)
recipes/krakentools/meta.yaml (1)
22-24
: Remove trailing spacesThere are trailing spaces on the following lines:
- Line 22: after
python
- Line 24: after
numpy
run: - - python + - python - biopython - - numpy + - numpy - scipy🧰 Tools
🪛 yamllint
[error] 22-22: trailing spaces
(trailing-spaces)
[error] 24-24: trailing spaces
(trailing-spaces)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
recipes/krakentools/meta.yaml
(2 hunks)
🧰 Additional context used
🪛 yamllint
recipes/krakentools/meta.yaml
[error] 22-22: trailing spaces
(trailing-spaces)
[error] 24-24: trailing spaces
(trailing-spaces)
🔇 Additional comments (4)
recipes/krakentools/meta.yaml (4)
15-15
: LGTM: Build number increment is appropriate
The build number increment is correct as we're adding a new dependency (scipy) which requires a rebuild.
46-46
: LGTM: Summary update is appropriate
The simplified summary is more focused and follows package metadata best practices by keeping it concise and descriptive.
25-25
: Verify scipy version requirements
While adding scipy as a dependency is correct based on the alpha_diversity.py requirement, we should verify if any specific version constraints are needed.
#!/bin/bash
# Check alpha_diversity.py for scipy usage and version requirements
rg -A 5 "from scipy|import scipy"
# Check if there are any scipy version-specific features used
ast-grep --pattern 'from scipy.$_ import $_'
45-45
: Verify LICENSE file existence
Adding the license file reference is good practice, but let's verify its existence in the source repository.
✅ Verification successful
LICENSE file exists in the source repository
The LICENSE file is present at KrakenTools-1.2/LICENSE
in the source tarball, confirming that the license_file
reference in meta.yaml is correct.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Verify LICENSE file in the source tarball
curl -sL https://github.com/jenniferlu717/KrakenTools/archive/v1.2.tar.gz | \
tar tz | grep -i license
Length of output: 262
run_exports: | ||
- {{ pin_subpackage("krakentools", max_pin="x.x") }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Consider removing run_exports section
Since this is a pure Python package (noarch: python), the run_exports
section is unnecessary. This directive is typically used for C/C++ libraries to ensure ABI compatibility, but Python packages don't have the same binary interface concerns.
build:
noarch: python
number: 1
- run_exports:
- - {{ pin_subpackage("krakentools", max_pin="x.x") }}
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
run_exports: | |
- {{ pin_subpackage("krakentools", max_pin="x.x") }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bernt-matthias, thank you for pointing that out. You're right; including the run_exports
section can be important for noarch: python
packages when enforcing version constraints for downstream dependencies. I appreciate your clarification.
✏️ Learnings added
Learnt from: bernt-matthias
PR: bioconda/bioconda-recipes#52125
File: recipes/krakentools/meta.yaml:16-17
Timestamp: 2024-11-15T09:23:00.586Z
Learning: For `noarch: python` packages, including a `run_exports` section may be necessary to enforce version constraints for downstream dependencies.
Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.
@BiocondaBot please fetch artifacts |
Package(s) built are ready for inspection:
|
Locally tested here galaxyproject/tools-iuc#6553 |
@BiocondaBot please add label |
https://github.com/jenniferlu717/KrakenTools/blob/d4a2fbe2833c2392a724697c0c97a3014e748474/DiversityTools/alpha_diversity.py#L32
Describe your pull request here
Please read the guidelines for Bioconda recipes before opening a pull request (PR).
General instructions
@BiocondaBot please add label
command.@bioconda/core
in a comment.Instructions for avoiding API, ABI, and CLI breakage issues
Conda is able to record and lock (a.k.a. pin) dependency versions used at build time of other recipes.
This way, one can avoid that expectations of a downstream recipe with regards to API, ABI, or CLI are violated by later changes in the recipe.
If not already present in the meta.yaml, make sure to specify
run_exports
(see here for the rationale and comprehensive explanation).Add a
run_exports
section like this:with
...
being one of:{{ pin_subpackage("myrecipe", max_pin="x") }}
{{ pin_subpackage("myrecipe", max_pin="x.x") }}
{{ pin_subpackage("myrecipe", max_pin="x.x") }}
(in such a case, please add a note that shortly mentions your evidence for that){{ pin_subpackage("myrecipe", max_pin="x.x.x") }}
(in such a case, please add a note that shortly mentions your evidence for that){{ pin_subpackage("myrecipe", max_pin=None) }}
while replacing
"myrecipe"
with eithername
if aname|lower
variable is defined in your recipe or with the lowercase name of the package in quotes.Bot commands for PR management
Please use the following BiocondaBot commands:
Everyone has access to the following BiocondaBot commands, which can be given in a comment:
@BiocondaBot please update
@BiocondaBot please add label
please review & merge
label.@BiocondaBot please fetch artifacts
You can use this to test packages locally.
Note that the
@BiocondaBot please merge
command is now depreciated. Please just squash and merge instead.Also, the bot watches for comments from non-members that include
@bioconda/<team>
and will automatically re-post them to notify the addressed<team>
.