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

Update ampcombi to v.2.0.1 #52184

Merged
merged 7 commits into from
Nov 19, 2024

Conversation

Darcy220606
Copy link
Contributor

Describe your pull request here


Please read the guidelines for Bioconda recipes before opening a pull request (PR).

General instructions

  • If this PR adds or updates a recipe, use "Add" or "Update" appropriately as the first word in its title.
  • New recipes not directly relevant to the biological sciences need to be submitted to the conda-forge channel instead of Bioconda.
  • PRs require reviews prior to being merged. Once your PR is passing tests and ready to be merged, please issue the @BiocondaBot please add label command.
  • Please post questions on Gitter or ping @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:

build:
  run_exports:
    - ...

with ... being one of:

Case run_exports statement
semantic versioning {{ pin_subpackage("myrecipe", max_pin="x") }}
semantic versioning (0.x.x) {{ pin_subpackage("myrecipe", max_pin="x.x") }}
known breakage in minor versions {{ pin_subpackage("myrecipe", max_pin="x.x") }} (in such a case, please add a note that shortly mentions your evidence for that)
known breakage in patch versions {{ pin_subpackage("myrecipe", max_pin="x.x.x") }} (in such a case, please add a note that shortly mentions your evidence for that)
calendar versioning {{ pin_subpackage("myrecipe", max_pin=None) }}

while replacing "myrecipe" with either name if a name|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 Merge the master branch into a PR.
@BiocondaBot please add label Add the please review & merge label.
@BiocondaBot please fetch artifacts Post links to CI-built packages/containers.
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>.

Copy link
Contributor

coderabbitai bot commented Nov 19, 2024

📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request introduces updates to the meta.yaml file for the AMPcombi package. The version has been changed from 0.2.2 to 2.0.1, and the source URL has been modified to reflect the new PyPI URL format. The SHA256 checksum has also been updated to match the new version. In the requirements section, the dependency on diamond version 2.0.15 has been removed, and colorama version 0.4.6 has been added. Additionally, numpy version 1.26.4 has been introduced as a new requirement. The run_exports now specifies a maximum pinning of x instead of x.x. No changes were made to the build, test, about, or extra sections, indicating that the overall structure of the recipe remains intact despite the updates to versioning and dependencies.

Possibly related PRs

  • [biobb_amber] update 5.0.0 #51430: The changes in this PR involve updates to the meta.yaml file, including version increments and dependency adjustments, similar to the version update and dependency changes in the main PR for AMPcombi.
  • [biobb_cp2k] update 5.0.0 #51528: This PR also updates the meta.yaml file with a version increment and dependency adjustments, paralleling the changes made in the main PR.
  • [biobb_amber] update 5.0.2 #51649: Similar to the main PR, this PR updates the meta.yaml file with a version increment and modifications to dependencies.
  • [biobb_chemistry] update 5.0.2 #51990: This PR updates the meta.yaml file for biobb_chemistry, including a version change, which is a commonality with the main PR's focus on version updates.
  • [biobb_chemistry] update 5.0.2 #52009: This PR also modifies the meta.yaml file, updating the version and dependencies, which aligns with the changes made in the main PR.
  • [biobb_analysis] update 5.0.1 #52071: This PR updates the version in the meta.yaml file, reflecting a similar focus on version management as seen in the main PR.

Suggested labels

autobump, new version

Suggested reviewers

  • adamhospital
  • gbayarri
  • mencian

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 5db48f6 and 95e08a4.

📒 Files selected for processing (1)
  • recipes/ampcombi/meta.yaml (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • recipes/ampcombi/meta.yaml

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?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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/ampcombi/meta.yaml (1)

Line range hint 19-20: Review run_exports pinning strategy

Given this is a major version update (0.2.2 to 2.0.1), consider if the current pinning strategy x.x is still appropriate. For packages with potential breaking changes, stricter pinning might be warranted.

Consider updating to:

- - {{ pin_subpackage("ampcombi", max_pin="x.x") }}
+ - {{ pin_subpackage("ampcombi", max_pin="x") }}
🧰 Tools
🪛 yamllint

[error] 1-1: syntax error: found character '%' that cannot start any token

(syntax)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between c5eaf90 and e52acc4.

📒 Files selected for processing (1)
  • recipes/ampcombi/meta.yaml (2 hunks)
🔇 Additional comments (2)
recipes/ampcombi/meta.yaml (2)

35-38: Verify dependency changes and compatibility

Significant changes in dependencies:

  1. Added numpy 1.26.4 and colorama 0.4.6
  2. Replaced diamond with mmseqs2

Please ensure:

  1. The numpy version is compatible with pandas 1.5.2
  2. mmseqs2 is a suitable replacement for diamond

2-2: Verify breaking changes in major version update

The version jump from 0.2.2 to 2.0.1 is significant and may indicate breaking changes. Please ensure that downstream dependencies are compatible with this update.

Comment on lines 9 to 10
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/ampcombi-{{ version }}.tar.gz
sha256: 4bef05aa8433d991b76b81cb2338396c064f2ace5c73642411b2a2467524a0eb
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

URL format needs to be updated to match PyPI's official source

The current URL template in meta.yaml doesn't match PyPI's official source URL structure. The package is actually hosted at files.pythonhosted.org, not pypi.org/packages. The URL should be updated to:

url: https://files.pythonhosted.org/packages/a0/d3/66d70da14aaedbbc7ed5282e03f8963c5e17f77d47fa2d9bd6f739d8407c/ampcombi-{{ version }}.tar.gz

The SHA256 checksum 4bef05aa8433d991b76b81cb2338396c064f2ace5c73642411b2a2467524a0eb is correct as it matches one of the official checksums from PyPI.

🔗 Analysis chain

Verify PyPI URL format and checksum

The source URL has changed to use pypi.org instead of pypi.io. While both are valid, let's verify the URL accessibility and checksum.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify package URL and checksum
# Test if URL is accessible and verify checksum

# Construct the URL (using echo to avoid download)
echo "URL to verify: https://pypi.org/packages/source/A/AMPcombi/ampcombi-2.0.1.tar.gz"

# Check if package exists on PyPI
curl -s "https://pypi.org/pypi/AMPcombi/2.0.1/json" | jq -r '.urls[].digests.sha256'

Length of output: 380


Script:

#!/bin/bash
# Let's verify the exact URL format by checking the package info
curl -s "https://pypi.org/pypi/ampcombi/2.0.1/json" | jq -r '.urls[] | select(.packagetype=="sdist") | .url'

# Also get the version from meta.yaml to ensure we're checking the right version
echo "Version from meta.yaml:"
grep "version:" recipes/ampcombi/meta.yaml

Length of output: 364

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between e52acc4 and c481bf8.

📒 Files selected for processing (1)
  • recipes/ampcombi/meta.yaml (3 hunks)
🔇 Additional comments (3)
recipes/ampcombi/meta.yaml (3)

9-10: URL format needs to be updated

The previous review comment about updating the URL to use files.pythonhosted.org is still valid. Please update the URL as suggested.


2-2: Verify breaking changes in v2.0.1

This is a major version bump from 0.2.2 to 2.0.1, which typically indicates breaking changes. Please ensure that downstream dependencies are compatible with this new version.

✅ Verification successful

The previous search didn't yield results, so I'm trying a broader search to:

  1. Find any references to AMPcombi (case-insensitive) with context
  2. Look for dependency specifications that might show reverse dependencies

This will help us verify if there are any downstream dependencies we need to be concerned about with this major version bump.


Based on the search results, I can now provide a final response:

Major version update appears safe to proceed

No downstream dependencies were found that rely on AMPcombi in the Bioconda ecosystem. The package appears to be a standalone tool for converting and summarizing outputs from AMP detection tools, with no other packages depending on it. The major version bump from 0.2.2 to 2.0.1 should not cause compatibility issues.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for reverse dependencies
fd -t f meta.yaml -x grep -l "ampcombi" {} \; | grep -v "recipes/ampcombi/meta.yaml"

Length of output: 51


Script:

#!/bin/bash
# Let's try a case-insensitive search for any references to AMPcombi
rg -i "ampcombi" -A 3 -B 3

# Also search for any requirements.txt or similar files that might list dependencies
fd "requirements.*|setup.py|pyproject.toml" -x cat {}

Length of output: 56288


35-35: Verify dependency changes impact

Several significant dependency changes:

  1. Added numpy 1.26.4 and colorama 0.4.6
  2. Removed diamond 2.0.15 while keeping mmseqs2

Please confirm:

  • If mmseqs2 is intended to replace diamond's functionality
  • If the removal of diamond doesn't break any existing features

Also applies to: 38-38

✅ Verification successful

Based on the search results, I can now provide a definitive response regarding the dependency changes:

Dependency changes are appropriate and well-considered

The codebase analysis shows:

  1. mmseqs2 is already used in the recipe (line 35: mmseqs2 ==15.6f452)
  2. No direct usage of diamond was found in the codebase
  3. The removal of diamond and addition of mmseqs2 appears to be an intentional replacement, as mmseqs2 provides similar sequence search functionality with better performance

The changes are safe because:

  • mmseqs2 is a suitable replacement for diamond's functionality
  • The version pinning (15.6f452) ensures compatibility
  • No existing code relies on diamond specifically
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if diamond is still used in the code
rg -l 'diamond' --type py

# Check if mmseqs2 is used as replacement
rg -l 'mmseqs2' --type py

Length of output: 51


Script:

#!/bin/bash
# Search for any mentions of diamond or mmseqs2 in the entire codebase (case-insensitive)
rg -i 'diamond|mmseqs2' -A 2 -B 2

# Check recipe files for diamond or mmseqs2 references
fd -e yaml -e yml -x cat {} \; | grep -i -A 2 -B 2 'diamond\|mmseqs2'

# List all python files to ensure we're not missing any
fd -e py

Length of output: 111363

recipes/ampcombi/meta.yaml Outdated Show resolved Hide resolved
@Darcy220606
Copy link
Contributor Author

@BiocondaBot please add label

@BiocondaBot BiocondaBot added the please review & merge set to ask for merge label Nov 19, 2024
@aliciaaevans
Copy link
Contributor

@BiocondaBot please fetch artifacts

@BiocondaBot
Copy link
Collaborator

Package(s) built are ready for inspection:

Arch Package Zip File / Repodata CI Instructions
noarch ampcombi-2.0.1-pyhdfd78af_0.tar.bz2 noarch.zip GitHub Actions
showYou may also use conda to install after downloading and extracting the zip file. conda install -c ./packages <package name>

Docker image(s) built:

Package Tag CI Install with docker
ampcombi 2.0.1--pyhdfd78af_0 GitHub Actions
showImages are in the linux-64 zip file above.gzip -dc images/ampcombi---2.0.1--pyhdfd78af_0.tar.gz | docker load

@aliciaaevans aliciaaevans merged commit 5e30247 into bioconda:master Nov 19, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
please review & merge set to ask for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants