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 primerforge to 1.5.1 #48898

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

Update primerforge to 1.5.1 #48898

wants to merge 19 commits into from

Conversation

BiocondaBot
Copy link
Collaborator

@BiocondaBot BiocondaBot commented Jul 2, 2024

Update primerforge: 1.1.11.5.1

install with bioconda Conda

Info Link or Description
Recipe recipes/primerforge (click to view/edit other files)
Summary primerForge: software to identify primers that can be used to distinguish genomes
Home https://github.com/dr-joe-wirth/primerForge
Releases https://github.com/dr-joe-wirth/primerForge/tags
Recipe Maintainer(s) @dr-joe-wirth
Author @dr-joe-wirth

This pull request was automatically generated (see docs).

@BiocondaBot BiocondaBot added autobump Automatic Version Update new version labels Jul 2, 2024
recipes/primerforge/meta.yaml Outdated Show resolved Hide resolved
recipes/primerforge/meta.yaml Outdated Show resolved Hide resolved
@dr-joe-wirth
Copy link
Contributor

not sure how to fix this. in my environment.yml file, it did not work when I specified it as @martin-g did. It only worked when I allowed pip to install the package.

i'd gladly change it, but i'm unsure how to track down and resolve the conflict.

@martin-g
Copy link
Contributor

martin-g commented Jul 3, 2024

Which version has been installed by pip ? Maybe we can try with exact version instead of a range ?!

@dr-joe-wirth
Copy link
Contributor

dr-joe-wirth commented Jul 3, 2024

Which version has been installed by pip ? Maybe we can try with exact version instead of a range ?!

version 2.1.1. So i had thought that specfiying khmer >=2.1 would be sufficient.

https://pypi.org/project/khmer/

just checked the bioconda page for khmer...it appears that 2.1.1 is not a version there.

looks like maybe the problem is the version of python it is dependent on:

depends python: >=3.6,<3.7.0a0

primerforge would need at least v3.9+ since it uses typehinting which wasn't formally supported until 3.9. I would expect to get a lot of errors saying like "cannot subset type tuple" because a function's signature line had something like def f(n:int) -> tuple[str,int]:. I am not entirely sure what version of python allows this, but i know with certainty that 3.7 would complain.

@dr-joe-wirth
Copy link
Contributor

would including a line like pip install khmer in a build.sh file be compliant with bioconda syntax? or is this still a bad practice?

@rpetit3
Copy link
Member

rpetit3 commented Jul 4, 2024

I think we have a few options

  1. Try building khmer 2.1.1 with latest python pinnings
  2. try rebuilding khmer 2.1 with latest python pinnings
  3. (do not recommend) pingeon-hole primerforge to only work with python 3.6 (which might not even be supported by primerforge)

@rpetit3
Copy link
Member

rpetit3 commented Jul 4, 2024

would including a line like pip install khmer in a build.sh file be compliant with bioconda syntax? or is this still a bad practice?

You are correct, this wouldn't be allowed

@dr-joe-wirth
Copy link
Contributor

@rpetit3 thanks for the input. Here are my thoughts.

I think we have a few options

  1. Try building khmer 2.1.1 with latest python pinnings
  2. try rebuilding khmer 2.1 with latest python pinnings
  3. (do not recommend) pingeon-hole primerforge to only work with python 3.6 (which might not even be supported by primerforge)

TL;DR

Option 3 is probably a bad choice; where can I find resources for doing options 1 or 2?

full response

I think option 1 is the best option, but khmer 2.1.1 does not have a conda recipe. So maybe that means option 2 is better? To be honest, I don't really know how we would go about rebuilding a recipe with the latest python pinnings. Is there a reference available that I could use to figure this out?

Option 3 is not good because I know for sure that the inclusion of type hinting without importing typing is not supported below python 3.9. If I had said like from typing import List, Dict, Tuple then it may have been compatible with lower versions. Obviously I would prefer not to rewrite the entire code base just to make a functioning conda installation especially when my pip installer works just fine.

As a note, khmer does not work with python 3.12 because SafeConfigParser was replaced with ConfigParser. But the pip installation does work with python >=3,9,<3.12.

additional note

would including a line like pip install khmer in a build.sh file be compliant with bioconda syntax? or is this still a bad practice?

You are correct, this wouldn't be allowed

Ok thanks for clearing that up. I had started working on this as a solution (this is what I was trying to do in my build.sh file, but I will discard this work and move things back to how they were.

@BiocondaBot BiocondaBot changed the title Update primerforge to 1.2.5 Update primerforge to 1.2.7 Jul 16, 2024
@dr-joe-wirth
Copy link
Contributor

this recipe should work once the recipe for khmer is working with higher versions of python3. I am trying to do this in PR #49359

@BiocondaBot BiocondaBot changed the title Update primerforge to 1.2.7 Update primerforge to 1.3.1 Jul 29, 2024
@dr-joe-wirth
Copy link
Contributor

updated the version, but this recipe is still broken since the recipe for khmer is incompatible with the python3 versions required for primerForge

@BiocondaBot BiocondaBot changed the title Update primerforge to 1.3.1 Update primerforge to 1.3.2 Jul 30, 2024
@BiocondaBot BiocondaBot changed the title Update primerforge to 1.3.2 Update primerforge to 1.3.3 Aug 2, 2024
@BiocondaBot BiocondaBot changed the title Update primerforge to 1.3.3 Update primerforge to 1.3.4 Aug 12, 2024
@BiocondaBot BiocondaBot changed the title Update primerforge to 1.3.4 Update primerforge to 1.3.5 Aug 13, 2024
@BiocondaBot BiocondaBot changed the title Update primerforge to 1.3.5 Update primerforge to 1.3.6 Aug 22, 2024
@BiocondaBot BiocondaBot changed the title Update primerforge to 1.3.6 Update primerforge to 1.3.7 Sep 16, 2024
@BiocondaBot BiocondaBot changed the title Update primerforge to 1.3.7 Update primerforge to 1.4.3 Oct 7, 2024
Copy link
Contributor

coderabbitai bot commented Oct 7, 2024

📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request introduces several updates to the meta.yaml file for the primerForge package. The version number is increased from 1.1.1 to 1.5.1, and the source URL is updated to reflect the new version's tarball. The SHA256 checksum is also modified to correspond with the new version's archive. In the requirements section, the Python version constraints have been adjusted from >=3.11 to >=3.9,<3.12, thus expanding the range of compatible Python versions. Additionally, three new dependencies have been added: ispcr, khmer >=2.1.1, and pyahocorasick. The existing dependencies, which include biopython, numpy, and primer3-py, remain unchanged. These modifications primarily focus on version updates, the inclusion of new dependencies, and adjustments to the Python version compatibility.

Possibly related PRs

  • Update meta.yaml for spec2vec #49857: Updates the meta.yaml file for the spec2vec package, including changes to versioning and dependencies.
  • Update PhyloAcc recipe #51090: Modifies the meta.yaml file for the PhyloAcc package to change the Python version compatibility, aligning with the adjustments made in the primerForge package.
  • Update meta.yaml, VITAP v.1.7 #51220: Updates the meta.yaml file for the vitap package with a new version and changes to dependencies, reflecting a similar pattern of updates as seen in the primerForge package.

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 459b4a4 and 02a31d1.

📒 Files selected for processing (1)
  • recipes/primerforge/meta.yaml (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • recipes/primerforge/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.

@BiocondaBot BiocondaBot changed the title Update primerforge to 1.4.3 Update primerforge to 1.5.1 Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autobump Automatic Version Update new version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants