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 Woltka to 0.1.7 #51263

Merged
merged 10 commits into from
Oct 9, 2024
Merged

Update Woltka to 0.1.7 #51263

merged 10 commits into from
Oct 9, 2024

Conversation

qiyunzhu
Copy link
Contributor

@qiyunzhu qiyunzhu commented Oct 8, 2024

Update Woltka to 0.1.7


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 8, 2024

📝 Walkthrough

Walkthrough

The pull request introduces several updates to the meta.yaml file for the woltka package. The version number is incremented from "0.1.6" to "0.1.7". Modifications include removing quotes from the name and version fields in the package section, updating the source URL from pypi.io to pypi.org, and changing the SHA256 checksum. In the build section, the formatting of entry_points is adjusted, and the order of the noarch and script fields is modified. The requirements section sees the removal of setuptools and python from host requirements, while hatchling is added. The run requirements are updated to include python >=3.6 and numba, with python and setuptools removed. The test section is revised to remove certain imports and add pip check to the commands, along with a new requires field for pip. Lastly, the about section simplifies the home URL formatting and updates the summary field while removing the doc_url and dev_url fields.

Possibly related PRs

  • Update mgnify-pipelines-toolkit to 0.1.7 #51237: The version number in the meta.yaml file for the mgnify-pipelines-toolkit package was updated from "0.1.6" to "0.1.7", similar to the version increment in the main PR for the woltka package from "0.1.6" to "0.1.7".
  • Update PhyloAcc recipe #51090: The meta.yaml file for the PhyloAcc package was updated, involving changes to the run requirements, similar to modifications seen in the main PR.
  • Update orthanq to 1.7.9 #51214: The orthanq package's version was updated from "1.7.8" to "1.7.9", reflecting a similar versioning change as in the main PR for woltka.

Suggested labels

autobump, new version, please review & merge


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: 2

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

9-10: LGTM: Source URL and checksum updates

The changes to the source section are appropriate:

  1. Updating to pypi.org is correct as it's the current official domain.
  2. The SHA256 checksum has been updated for the new version.
  3. Using {{ version }} in the URL is a good practice for maintainability.

Consider using {{ name }}-{{ version }}.tar.gz instead of hardcoding woltka in the URL for better consistency and maintainability:

url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 1f7e295 and 0dcfc3f.

📒 Files selected for processing (1)
  • recipes/woltka/meta.yaml (1 hunks)
🧰 Additional context used
🔇 Additional comments (3)
recipes/woltka/meta.yaml (3)

2-2: LGTM: Version update and style improvements

The version has been correctly updated to 0.1.7, aligning with the PR objective. The removal of quotes from the name and version fields is a valid style improvement that doesn't affect functionality.

Also applies to: 5-6


14-17: LGTM: Build section improvements

The changes in the build section are style improvements that enhance readability without affecting functionality:

  1. Adjusted entry point formatting.
  2. Reordered noarch and script fields.
  3. Removed unnecessary quotes from the script command.

These changes align with best practices for YAML formatting in Conda recipes.


35-35: LGTM: Improved test section

The changes to the test section enhance the package verification:

  1. Adding pip check ensures all dependencies are correctly specified.
  2. Adding pip as a test requirement is necessary for the new check.

To ensure the removal of woltka.q2 and woltka.tests imports is intentional, let's verify the current package structure:

Also applies to: 37-38

✅ Verification successful

Verified: Removal of Unused Imports

The removal of woltka.q2 and woltka.tests imports does not impact the current codebase as these directories are not present.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# List the package structure to verify submodules
fd -t d . | grep -E 'woltka/(q2|tests)$'

Length of output: 373

Comment on lines +41 to +42
home: https://github.com/qiyunzhu/woltka
summary: versatile meta-omic data classifier
Copy link
Contributor

@coderabbitai coderabbitai bot Oct 8, 2024

Choose a reason for hiding this comment

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

💡 Codebase verification

Re-add dev_url Field

While removing doc_url is appropriate since the Documentation URL is invalid, the Development URL remains valid. Please re-add the dev_url field to ensure developers can access necessary resources.

🔗 Analysis chain

Style improvements in about section

The changes to the home URL and summary formatting improve readability.

However, the removal of doc_url and dev_url fields might affect users looking for documentation or development resources. Let's verify if these URLs are still valid and should be included:

If these URLs are valid, consider re-adding them to provide users with easy access to documentation and development resources.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if documentation and development URLs are available
curl -sI https://github.com/qiyunzhu/woltka/wiki | grep -q "HTTP/2 200" && echo "Documentation URL is valid" || echo "Documentation URL is invalid"
curl -sI https://github.com/qiyunzhu/woltka | grep -q "HTTP/2 200" && echo "Development URL is valid" || echo "Development URL is invalid"

Length of output: 373

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both keys had empty values in the previous version.

Copy link
Contributor

Choose a reason for hiding this comment

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

@qiyunzhu, thank you for the clarification. Since both doc_url and dev_url fields were empty in the previous version, it's appropriate to remove them. No further action is needed.

(_/)
(•‿•)⁀ I'm glad we resolved that!


✏️ Learnings added
Learnt from: qiyunzhu
PR: bioconda/bioconda-recipes#51263
File: recipes/woltka/meta.yaml:41-42
Timestamp: 2024-10-08T23:41:28.630Z
Learning: In the `recipes/woltka/meta.yaml` file for the `woltka` package, the `doc_url` and `dev_url` fields were previously empty, so it's acceptable to remove them when updating the package.

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.

Comment on lines +23 to +24
- python >=3.6
- hatchling
Copy link
Contributor

@coderabbitai coderabbitai bot Oct 8, 2024

Choose a reason for hiding this comment

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

💡 Codebase verification

Unnecessary Numba Dependency

The numba dependency added on line 28 is not used in the codebase.

Please remove it from the requirements in recipes/woltka/meta.yaml.

🔗 Analysis chain

LGTM: Updated dependencies

The changes to the requirements section are appropriate and align with best practices:

  1. Adding Python version constraints improves compatibility specification.
  2. Adding Hatchling and removing setuptools aligns with modern Python packaging.
  3. Adding Numba as a runtime dependency likely indicates performance optimizations.

To ensure the Numba dependency is necessary, let's verify its usage in the package:

Also applies to: 27-28

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for Numba imports in the package
rg --type python 'import\s+numba|from\s+numba\s+import'

Length of output: 373


Script:

#!/bin/bash
# Search for Numba import statements in all Python files
rg --type python -e '^import\s+numba' -e '^from\s+numba\s+import' .

Length of output: 100


Script:

#!/bin/bash
# Search for Numba import statements in all Python files using the correct type identifier
rg --type py -e '^import\s+numba' -e '^from\s+numba\s+import' .

Length of output: 65

Copy link
Contributor Author

Choose a reason for hiding this comment

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

numba is indeed a dependency of this version

Copy link
Contributor

Choose a reason for hiding this comment

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

@qiyunzhu, thank you for the clarification. I'll note that numba is indeed a dependency in this version.


✏️ Learnings added
Learnt from: qiyunzhu
PR: bioconda/bioconda-recipes#51263
File: recipes/woltka/meta.yaml:23-24
Timestamp: 2024-10-08T23:37:46.238Z
Learning: In 'woltka' version 0.1.7, `numba` is a required dependency and should be included in `recipes/woltka/meta.yaml` under `requirements`.

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.

@qiyunzhu
Copy link
Contributor Author

qiyunzhu commented Oct 8, 2024

@BiocondaBot please add label

@BiocondaBot BiocondaBot added the please review & merge set to ask for merge label Oct 8, 2024
@mencian
Copy link
Contributor

mencian commented Oct 9, 2024

LGTM, thanks @qiyunzhu!

@mencian mencian merged commit 99770b7 into bioconda:master Oct 9, 2024
7 checks passed
@mencian mencian mentioned this pull request Oct 9, 2024
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