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

add recipe for steamboat #51612

Merged
merged 5 commits into from
Oct 24, 2024
Merged

add recipe for steamboat #51612

merged 5 commits into from
Oct 24, 2024

Conversation

rpetit3
Copy link
Member

@rpetit3 rpetit3 commented Oct 23, 2024

Adds recipe for a python package with tools/scripts for microbial binf


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 Oct 23, 2024

📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request introduces a new meta.yaml file for the steamboat package, which is designed for microbial bioinformatics. This file includes essential metadata and configuration for the package's build and installation processes. Key components of the meta.yaml include the package name and version, source URL with a SHA256 checksum, build instructions indicating the package is architecture-independent, and a detailed list of dependencies for both host and runtime environments. The requirements section specifies Python version constraints and necessary packages, while the test section outlines commands to verify installation and functionality. Additional information is provided in the about section, including the package's homepage, a summary, license type, and maintainer details. Overall, the meta.yaml establishes a comprehensive framework for the steamboat package's integration and usage.

Possibly related PRs

  • recipe for pgrc #50973: The meta.yaml file for the pgrc package also defines package metadata and dependencies, similar to the changes made in the steamboat package's meta.yaml.
  • add recipe for sizemeup #51033: The meta.yaml for the sizemeup package includes similar sections for package metadata, dependencies, and build instructions, paralleling the updates in the steamboat package.
  • Add recipe for mini3di. #51211: The mini3di package's meta.yaml introduces package metadata and dependencies, akin to the modifications in the steamboat package.
  • Add recipe for longcallr_nn #51355: The longcallr_nn package's meta.yaml includes a similar structure for defining package metadata and dependencies, relating it to the steamboat package changes.
  • Add sopa package #51367: The sopa package's meta.yaml also outlines package metadata and dependencies, reflecting the changes made in the steamboat package.
  • [biobb_analysis] update 5.0.0 #51431: The biobb_analysis package's meta.yaml updates its version and dependencies, similar to the changes in the steamboat package's meta.yaml.
  • [biobb_chemistry] update 5.0.0 #51435: The biobb_chemistry package's meta.yaml reflects updates to version and dependencies, paralleling the modifications in the steamboat package.
  • [biobb_cp2k] update 5.0.0 #51528: The biobb_cp2k package's meta.yaml includes updates to version and dependencies, relating it to the changes made in the steamboat package.

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

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between d0b595a and 3654660.

📒 Files selected for processing (1)
  • recipes/steamboat/meta.yaml (1 hunks)
🧰 Additional context used
🪛 yamllint
recipes/steamboat/meta.yaml

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

(syntax)

🔇 Additional comments (6)
recipes/steamboat/meta.yaml (6)

1-6: LGTM! Package metadata is well-structured.

The package name and version are properly templated using Jinja2 variables, following Conda recipe best practices.

🧰 Tools
🪛 yamllint

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

(syntax)


12-17: LGTM! Build configuration properly handles dependency pinning.

The build configuration correctly specifies:

  • Platform independence with noarch: python
  • Proper dependency version pinning using run_exports

41-45: LGTM! Package metadata is complete.

The about section includes all required information: homepage, summary, license, and license file reference.


47-49: LGTM! Maintainer information is properly specified.

The recipe maintainer is correctly set to the PR author.


8-10: Verify package name consistency between PyPI and Conda.

The source URL uses steamboat-binf while the package name is steamboat. Please verify this is intentional and won't cause issues.

✅ Verification successful

Let me gather more information to verify this thoroughly.

The previous curl command showed that 'steamboat' exists on PyPI, but we need to verify the 'steamboat-binf' package and understand the full recipe configuration to make a proper assessment.


Let me verify the steamboat-binf package on PyPI before making the final assessment.


Package naming discrepancy is intentional and correct

The package naming is correct and intentional. Here's why:

  • The PyPI package exists as steamboat-binf
  • The conda package is named steamboat
  • The source URL correctly points to the PyPI package steamboat-binf
  • Both packages are maintained by the same author (rpetit3) and share the same description

This is a common practice where the conda package name is simplified while still sourcing from the original PyPI package. The configuration in meta.yaml is properly set up to handle this naming difference.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify package name on PyPI
# Expected: Package should exist on PyPI with the name steamboat-binf

# Check if the package exists on PyPI with this name
curl -s "https://pypi.org/pypi/steamboat-binf/json" | jq -r '.info.name'

# Also check if there's a separate steamboat package to avoid conflicts
curl -s "https://pypi.org/pypi/steamboat/json" | jq -r '.info.name'

Length of output: 457


Script:

#!/bin/bash
# Let's check the actual meta.yaml to understand the full package configuration
cat recipes/steamboat/meta.yaml

# Also check if there are any other related files in the recipe directory
ls -la recipes/steamboat/

# Let's also verify the package name in setup.py or pyproject.toml if they exist
fd -e py -e toml "setup|pyproject" recipes/steamboat/

Length of output: 1323


Script:

#!/bin/bash
# Check if steamboat-binf exists on PyPI
curl -s "https://pypi.org/pypi/steamboat-binf/json" | jq -r '.info.name'

# Let's also check if steamboat_binf exists (with underscore)
curl -s "https://pypi.org/pypi/steamboat_binf/json" | jq -r '.info.name'

# Check the GitHub repository for any clues about the package naming
curl -s "https://api.github.com/repos/rpetit3/steamboat-py" | jq -r '.description'

Length of output: 311


32-39: Consider adding more comprehensive CLI tests.

The test section only verifies one CLI command (gisaid-batch). If the package provides additional commands, they should also be tested.

recipes/steamboat/meta.yaml Outdated Show resolved Hide resolved
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: 0

🧹 Outside diff range and nitpick comments (1)
recipes/steamboat/meta.yaml (1)

40-44: Consider adding optional but helpful metadata.

The about section could be enhanced with:

  • doc_url pointing to documentation if available
  • dev_url pointing to the development repository
  • More detailed description of the package's functionality
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 3654660 and eace275.

📒 Files selected for processing (1)
  • recipes/steamboat/meta.yaml (1 hunks)
🧰 Additional context used
🪛 yamllint
recipes/steamboat/meta.yaml

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

(syntax)

🔇 Additional comments (3)
recipes/steamboat/meta.yaml (3)

31-38: Consider adding more comprehensive tests.

While basic import and CLI tests are present, consider adding:

  1. Tests for other CLI commands if available
  2. Basic functionality tests using steamboat --version
  3. Tests for other key package features
#!/bin/bash
# Check available CLI commands that could be tested
rg "def main|@click.command|@click.group" -A 5

23-29: Add version constraints for run dependencies.

Most run dependencies lack version constraints, which could lead to compatibility issues. Consider adding version bounds for:

  • biopython
  • executor
  • pigz
  • pyyaml

This helps ensure reproducible builds and prevents potential breaking changes.

#!/bin/bash
# Check if the package's setup.py or pyproject.toml specifies version constraints
fd -t f "setup.py|pyproject.toml" . -x cat {} | rg "install_requires|dependencies"

8-10: Verify package naming consistency.

The package name in the recipe is "steamboat" but the PyPI package is named "steamboat-binf". This might cause confusion for users. Consider either:

  1. Updating the recipe name to match PyPI
  2. Adding a comment explaining the naming difference
✅ Verification successful

Let me try another approach to verify the package naming consistency by checking both the PyPI package and the recipe details more thoroughly.


Let me check the GitHub repository mentioned in the meta.yaml to understand the package naming better.


Based on all the gathered information, I can now provide a final response:

Package naming is consistent with upstream distribution

The naming difference between the conda package (steamboat) and PyPI package (steamboat-binf) appears intentional and follows the upstream project's distribution strategy:

  • The GitHub project is steamboat-py
  • The PyPI distribution is steamboat-binf
  • The conda package is steamboat

This is a common pattern where different distribution channels may have slightly different names while referring to the same software. The recipe correctly handles this by:

  1. Using the simplified name steamboat for the conda package
  2. Properly referencing the PyPI package steamboat-binf in the source URL
  3. Maintaining the correct import name steamboat in the test section
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Verify the package exists on PyPI and check its metadata
curl -s "https://pypi.org/pypi/steamboat-binf/json" | jq -r '.info.name'

Length of output: 590


Script:

#!/bin/bash
# Check the full meta.yaml content to understand the package naming context
cat recipes/steamboat/meta.yaml

# Also search for any other references to steamboat in the repository
rg -i "steamboat" --type yaml

Length of output: 1382


Script:

#!/bin/bash
# Check the GitHub repository for package naming information
gh repo view rpetit3/steamboat-py --json name,description,nameWithOwner,url

# Also check if there's a setup.py or pyproject.toml in the recipe directory
fd -t f 'setup.py|pyproject.toml' recipes/steamboat/ -x cat '{}'

Length of output: 330

@rpetit3
Copy link
Member Author

rpetit3 commented Oct 23, 2024

@bioconda-bot please fetch artifacts

@BiocondaBot
Copy link
Collaborator

Package(s) built are ready for inspection:

Arch Package Zip File / Repodata CI Instructions
noarch steamboat-1.0.0-pyhdfd78af_0.tar.bz2 LinuxArtifacts.zip Azure
showYou may also use conda to install after downloading and extracting the zip file. From the LinuxArtifacts directory: conda install -c ./packages <package name>

Docker image(s) built:

Package Tag CI Install with docker
steamboat 1.0.0--pyhdfd78af_0 Azure
showImages for Azure are in the LinuxArtifacts zip file above.gzip -dc LinuxArtifacts/images/steamboat:1.0.0--pyhdfd78af_0.tar.gz | docker load

@rpetit3
Copy link
Member Author

rpetit3 commented Oct 23, 2024

@BiocondaBot please add label

@BiocondaBot BiocondaBot added the please review & merge set to ask for merge label Oct 23, 2024
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/steamboat/meta.yaml (1)

32-39: Consider enhancing test coverage.

While the basic tests are good, consider adding more comprehensive testing:

  • Test additional CLI commands if available
  • Verify key functionality through command outputs

Example addition:

  commands:
    - pip check
    - gisaid-batch --help
+   - steamboat --version  # Verify version output
+   - steamboat --help    # Verify main help menu
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between eace275 and a98adba.

📒 Files selected for processing (1)
  • recipes/steamboat/meta.yaml (1 hunks)
🧰 Additional context used
🪛 yamllint
recipes/steamboat/meta.yaml

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

(syntax)

🔇 Additional comments (4)
recipes/steamboat/meta.yaml (4)

1-6: LGTM! Package metadata is well-structured.

The package name and version are properly defined using Conda/Jinja2 templating.

🧰 Tools
🪛 yamllint

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

(syntax)


12-17: LGTM! Build configuration follows best practices.

The build section correctly specifies:

  • Platform independence with noarch: python
  • Standard pip installation
  • Proper dependency pinning with run_exports

41-49: LGTM! Package metadata is complete.

The about section includes all required fields and proper license information. Maintainer information is correctly specified.


8-10: Verify PyPI package name and availability.

The PyPI package name (steamboat-binf) differs from the Conda package name (steamboat). Let's verify the package exists and is accessible.

✅ Verification successful

Let me verify the package name in the recipe metadata to ensure consistency.


Package name discrepancy is intentional and correct

The verification shows that:

  1. The PyPI package steamboat-binf exists and is accessible
  2. The SHA256 checksum in the recipe matches one of the available checksums from PyPI
  3. The recipe correctly uses steamboat as the conda package name while sourcing from the PyPI package steamboat-binf

This is a valid configuration where the conda package name differs from the PyPI source package name. The recipe is properly structured to handle this difference by:

  • Setting conda package name as steamboat
  • Correctly referencing the PyPI source as steamboat-binf in the URL
  • Using the correct SHA256 checksum
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify PyPI package existence and accessibility
# Expected: Package should exist on PyPI with correct name and version

# Check if package exists on PyPI
curl -s "https://pypi.org/pypi/steamboat-binf/1.0.0/json" | jq -r '.info.name'

# Verify SHA256 matches
curl -s "https://pypi.org/pypi/steamboat-binf/1.0.0/json" | jq -r '.urls[].digests.sha256'

Length of output: 312


Script:

#!/bin/bash
# Check package name and version in meta.yaml
cat recipes/steamboat/meta.yaml

Length of output: 1058

recipes/steamboat/meta.yaml Show resolved Hide resolved
@mencian mencian merged commit 11ec7d5 into bioconda:master Oct 24, 2024
7 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