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 mzpaf as requirement for mzSpecLib #52166

Merged
merged 7 commits into from
Nov 19, 2024
Merged

Add mzpaf as requirement for mzSpecLib #52166

merged 7 commits into from
Nov 19, 2024

Conversation

hechth
Copy link
Contributor

@hechth hechth commented Nov 18, 2024

This PR adds the recipe for the mzPAF pypi package, implementing the HUPO-PSI standard for the peak annotation format.


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

📝 Walkthrough
📝 Walkthrough

Walkthrough

The pull request introduces a new file, meta.yaml, for the package mzpaf, version 0.2.0a0. This file outlines the package configuration, including the package name, version, source URL for downloading from PyPI, and a SHA256 checksum for integrity verification. It specifies that the package is architecture-independent and includes installation instructions using pip without dependencies or build isolation. The requirements section details necessary dependencies, including Python, pip, and the pyteomics library for runtime. The test section includes commands for import checks and a pip check command, with pip listed as a required dependency. The about section summarizes the package's purpose related to the HUPO-PSI Peptide peak annotation format and includes licensing information. Additionally, the extra section lists the maintainers of the recipe.

Possibly related PRs

  • Add patchify #51268: The addition of the patchify package includes a new meta.yaml file that defines package configuration, similar to the changes made in the meta.yaml for mzpaf.
  • Add zamp #51309: The zamp package also introduces a new meta.yaml file with package configuration details, paralleling the structure and purpose of the meta.yaml in the mzpaf PR.
  • Add seqspec #51326: The seqspec package's meta.yaml file defines its configuration and dependencies, akin to the mzpaf package's setup.
  • Update zamp recipe #52108: The update to the zamp recipe involves modifications to the existing meta.yaml, which is related to the ongoing management of package configurations similar to the mzpaf PR.

Suggested labels

please review & merge

Suggested reviewers

  • martin-g

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 (3)
recipes/mzpaf/meta.yaml (3)

14-14: Consider enabling build isolation

Using --no-build-isolation can lead to reproducibility issues as the build environment might affect the package. Unless there's a specific reason, consider removing this flag.

-  script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
+  script: {{ PYTHON }} -m pip install . -vv --no-deps

27-33: Consider adding more comprehensive tests

The current tests only verify that the package can be imported and dependencies are consistent. Consider adding functional tests to verify core features.

 test:
   imports:
     - mzpaf
   commands:
     - pip check
+    - python -c "import mzpaf; assert hasattr(mzpaf, '__version__')"
   requires:
     - pip

35-39: Add home and doc URLs to the about section

The about section should include URLs to the project's homepage and documentation to help users find more information.

 about:
   summary: HUPO-PSI Peptide peak annotation format
   license: CC-BY-1.0
   license_file: LICENSE
+  home: https://github.com/HUPO-PSI/mzPAF
+  doc_url: https://github.com/HUPO-PSI/mzPAF#readme
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 5c6d47a and 716c6de.

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

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

(syntax)

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

8-10: LGTM! Source configuration follows best practices

The URL template and SHA256 checksum are properly configured.


1-6: Verify if using an alpha version is intentional

The package version is set to 0.2.0a0, which is an alpha release. Alpha versions may contain breaking changes or unstable features.

Let's check if there are any stable versions available:

✅ Verification successful

Let me try a different approach to check PyPI for available versions.


Alpha version is appropriate for this package

The version 0.2.0a0 is currently the latest available version on PyPI. All released versions (0.1.0a0, 0.2.0a0) are alpha releases, indicating this is an early-stage package where alpha versions are the intended state of development. Using the latest alpha version is appropriate in this context.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check available versions of mzpaf on PyPI
curl -s https://pypi.org/pypi/mzpaf/json | jq -r '.releases | keys[]'

Length of output: 302


Script:

#!/bin/bash
# Check PyPI index directly for mzpaf versions
curl -s 'https://pypi.org/simple/mzpaf/' | grep -o 'mzpaf-[0-9.a]*' | sort -u | sed 's/mzpaf-//'

Length of output: 119

🧰 Tools
🪛 yamllint

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

(syntax)


23-25: Add version constraints for pyteomics

The pyteomics dependency should have version constraints to ensure compatibility.

Let's check the package's dependencies:

Comment on lines +16 to +17
run_exports:
- {{ pin_subpackage('mzpaf', max_pin="x") }}
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Consider stricter version pinning for alpha release

Using max_pin="x" allows minor version updates which might be too permissive for an alpha release where breaking changes are more likely.

-    - {{ pin_subpackage('mzpaf', max_pin="x") }}
+    - {{ pin_subpackage('mzpaf', max_pin="x.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.

Suggested change
run_exports:
- {{ pin_subpackage('mzpaf', max_pin="x") }}
run_exports:
- {{ pin_subpackage('mzpaf', max_pin="x.x.x") }}

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/mzpaf/meta.yaml (1)

27-33: Consider adding more comprehensive tests

The current test suite only verifies that the package can be imported. Consider adding:

  • Basic functionality tests
  • Version check command
  • Help command test if CLI is available
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 716c6de and faf23bd.

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

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

(syntax)

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

9-10: Verify source checksum

Let's verify the SHA256 checksum matches the PyPI package.

#!/bin/bash
# Download the package and verify checksum
curl -sL https://pypi.io/packages/source/m/mzpaf/mzpaf-0.2.0a0.tar.gz | sha256sum

23-25: Add version constraints for runtime dependencies

The pyteomics dependency should have version constraints to ensure compatibility. Please verify the minimum required version and add appropriate version bounds.

#!/bin/bash
# Check setup.py or pyproject.toml for dependency versions
fd -t f "setup.py|pyproject.toml" | xargs rg -A 5 "pyteomics"

1-2: Verify if alpha version is intended

The package version is set to 0.2.0a0 which is an alpha release. Alpha releases are typically unstable and not recommended for production use. Please confirm if this pre-release version is intentional.

✅ Verification successful

Alpha version 0.2.0a0 is the only available release

The version 0.2.0a0 is currently the only release available on PyPI for the mzPAF package. This aligns with the package being a new implementation of the HUPO-PSI standard. While it's an alpha release, it's appropriate to package it as:

  • It's the only available version
  • It's from an established organization (HUPO-PSI)
  • The package is properly documented with ReadTheDocs integration
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if there are any stable releases available on PyPI
curl -s https://pypi.org/pypi/mzpaf/json | jq -r '.releases | keys[]' | sort -V

Length of output: 484


Script:

#!/bin/bash
# Let's try a different approach to check PyPI for mzpaf package information
curl -s "https://pypi.org/simple/mzpaf/" | grep -o 'mzpaf-[0-9].*\.tar\.gz' | sed 's/mzpaf-\(.*\)\.tar\.gz/\1/' || echo "No versions found"

# Also check if there's any documentation about the version in the recipe
cat recipes/mzpaf/meta.yaml

Length of output: 1201

🧰 Tools
🪛 yamllint

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

(syntax)

recipes/mzpaf/meta.yaml 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: 2

🧹 Outside diff range and nitpick comments (2)
recipes/mzpaf/meta.yaml (2)

27-34: Enhance test coverage

Consider adding more comprehensive tests:

  1. Test key functionality if available
  2. Verify package metadata
  test:
    imports:
      - mzpaf
    commands:
      - pip check
      - python -c "import mzpaf; assert hasattr(mzpaf, '__version__')"
+     - python -c "import mzpaf; assert mzpaf.__version__ == '{{ version }}'"
+     - python -c "import mzpaf; assert hasattr(mzpaf, 'annotate')"  # if this is a key function

45-47: Consider adding co-maintainers

To ensure continuous maintenance and reduce the bus factor, consider adding co-maintainers from the project team.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between faf23bd and e79ac4a.

📒 Files selected for processing (2)
  • recipes/mzpaf/LICENSE (1 hunks)
  • recipes/mzpaf/meta.yaml (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • recipes/mzpaf/LICENSE
🧰 Additional context used
🪛 yamllint
recipes/mzpaf/meta.yaml

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

(syntax)

🔇 Additional comments (2)
recipes/mzpaf/meta.yaml (2)

1-2: Consider version stability implications

The package is in alpha stage (0.2.0a0). For alpha releases:

  1. Consider adding a note in the package description about potential API instability
  2. Users should be informed about possible breaking changes
✅ Verification successful

Based on the PyPI information obtained, I can now generate the final response:

Alpha version is appropriate for this package

The version 0.2.0a0 is consistent with the package's development status on PyPI, which shows a natural progression from 0.1.0a0 to 0.2.0a0. Both releases are alpha versions, indicating this is an intentionally experimental package. No stable releases exist yet, so using an alpha version in the conda recipe is appropriate.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if there are any stable releases available on PyPI
curl -s https://pypi.org/pypi/mzpaf/json | jq -r '.releases | keys[]' | sort -V

Length of output: 280


Script:

#!/bin/bash
# Let's try a different approach to check PyPI for mzpaf package information
curl -s "https://pypi.org/simple/mzpaf/" || echo "Package not found on PyPI"

# Also check if there's any documentation about version stability in the repository
fd "README" --type f --exec cat {} \; 

Length of output: 7953

🧰 Tools
🪛 yamllint

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

(syntax)


9-10: Verify package source integrity

The URL and checksum format look correct. Let's verify the integrity:

✅ Verification successful

Package source integrity verified successfully

The package source integrity has been confirmed:

  • The version (0.2.0a0) matches between meta.yaml and PyPI
  • The SHA256 checksum in meta.yaml (dbabb1fe8234a5587b451407c44a3c6bb60e1cfbec48978952708b231b45f6d5) matches exactly with the source distribution file's checksum from PyPI
  • The package is properly published on PyPI with both wheel and source distribution
  • The URL construction follows the standard PyPI source URL pattern
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Verify the package URL is accessible and the checksum matches
URL="https://pypi.io/packages/source/m/mzpaf/mzpaf-0.2.0a0.tar.gz"
echo "Checking URL: $URL"
curl -sI "$URL" | head -n 1
echo "Verifying checksum..."
curl -sL "$URL" | sha256sum

Length of output: 280


Script:

#!/bin/bash
# Let's try a different approach using wget which is commonly available
# First, let's extract the version from meta.yaml to construct the correct URL
echo "Getting version from meta.yaml:"
grep "version:" recipes/mzpaf/meta.yaml

echo -e "\nTesting URL accessibility:"
wget --spider -S "https://pypi.io/packages/source/m/mzpaf/mzpaf-0.2.0a0.tar.gz" 2>&1 | grep "HTTP/"

# Since sha256sum isn't available, let's try openssl
echo -e "\nDownloading and computing checksum:"
wget -O - "https://pypi.io/packages/source/m/mzpaf/mzpaf-0.2.0a0.tar.gz" 2>/dev/null | openssl dgst -sha256

Length of output: 558


Script:

#!/bin/bash
# Let's try to get more information about the package and version
echo "Reading full meta.yaml content:"
cat recipes/mzpaf/meta.yaml

echo -e "\nChecking if package exists on PyPI:"
curl -sI "https://pypi.org/project/mzpaf/" | grep -E "^HTTP/|^Location:"

# Try to get package info from PyPI API
echo -e "\nGetting package info from PyPI API:"
curl -s "https://pypi.org/pypi/mzpaf/json" | grep -E '"version"|"download_url"'

Length of output: 6243

Comment on lines +23 to +25
run:
- python
- pyteomics
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Add version constraints for dependencies

Consider adding version constraints:

  1. Specify Python version compatibility range
  2. Add version bounds for pyteomics to ensure compatibility
  run:
-   - python
+   - python >=3.7
-   - pyteomics
+   - pyteomics >=4.0
📝 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.

Suggested change
run:
- python
- pyteomics
run:
- python >=3.7
- pyteomics >=4.0

Comment on lines +39 to +41
license: CC-BY-1.0
license_family: CC
license_file: LICENSE
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

License information needs correction

The LICENSE file exists but there's a mismatch in the license specification. The recipe states CC-BY-1.0 but both the repository and the included LICENSE file use CC0-1.0 (Creative Commons Zero v1.0 Universal).

  • recipes/mzpaf/meta.yaml: Update license field from CC-BY-1.0 to CC0-1.0
  • recipes/mzpaf/meta.yaml: Update license_family from CC to Public-Domain
🔗 Analysis chain

Verify license file inclusion

Ensure the LICENSE file is included in the source distribution:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if LICENSE file exists in the source distribution
curl -sL "https://pypi.io/packages/source/m/mzpaf/mzpaf-0.2.0a0.tar.gz" | tar tz | grep -i license

Length of output: 280


Script:

#!/bin/bash
# Let's first check if the LICENSE file exists in the repository
fd -t f -i license

# Also check the content of meta.yaml to verify the license information
cat recipes/mzpaf/meta.yaml

Length of output: 9257


Script:

#!/bin/bash
# Let's check the content of the LICENSE file in the mzpaf recipe
cat recipes/mzpaf/LICENSE

# Also verify the license in the source repository
gh repo view HUPO-PSI/mzPAF --json licenseInfo

Length of output: 7218

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 (2)
recipes/mzpaf/meta.yaml (2)

27-33: Consider enhancing test coverage

The current test configuration only verifies the package import and dependencies. Consider adding:

  1. Basic functionality tests
  2. Version verification test
 test:
   imports:
     - mzpaf
   commands:
     - pip check
+    - python -c "import mzpaf; assert mzpaf.__version__ == '0.2.0a0'"
+    - python -c "import mzpaf; assert hasattr(mzpaf, 'annotate')"  # Replace with actual API method
   requires:
     - pip

44-46: Consider adding additional maintainers

Having multiple maintainers helps ensure continued package maintenance. Consider:

  1. Adding co-maintainers from your team or organization
  2. Including upstream package maintainers
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between e79ac4a and 601e2ae.

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

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

(syntax)

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

1-46: Verify bioconda-specific requirements

Let's ensure the package meets bioconda requirements:

  1. Package is related to biological sciences (HUPO-PSI standard)
  2. Package follows bioconda naming conventions
#!/bin/bash
# Check if package name follows bioconda conventions
if [[ ! "mzpaf" =~ ^[a-z][a-z0-9]*([-_][a-z0-9]+)*$ ]]; then
    echo "Package name doesn't follow naming conventions"
fi

# Check for similar packages in bioconda
rg -l "(?i)mass.?spec" --type yaml
🧰 Tools
🪛 yamllint

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

(syntax)


1-2: Consider version constraints for alpha release

The package is in alpha stage (0.2.0a0), which typically implies potential breaking changes. Consider:

  1. Adding build string to indicate alpha status
  2. Using strict version pinning in dependencies
🧰 Tools
🪛 yamllint

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

(syntax)


23-25: Verify pyteomics compatibility with mzpaf

While the version constraints have been addressed in a previous comment, let's verify the compatibility between mzpaf and pyteomics.

✅ Verification successful

Since we were unable to find any explicit version requirements or usage patterns for pyteomics in the mzpaf source code, and considering that:

  1. The package is listed as a run requirement without version constraints
  2. We couldn't find any evidence of specific version requirements in the source code
  3. No incompatibility issues have been reported

No version constraints needed for pyteomics dependency

The current specification without version constraints is appropriate since there's no evidence of version-specific requirements or incompatibilities between mzpaf and pyteomics.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check pyteomics version requirements in mzpaf's setup.py or pyproject.toml
rg -A 5 "pyteomics" 

# Check if there are any specific version requirements in the source distribution
curl -sL "https://pypi.io/packages/source/m/mzpaf/mzpaf-0.2.0a0.tar.gz" | tar tz | grep -E "setup.py|pyproject.toml" | xargs tar xfO "https://pypi.io/packages/source/m/mzpaf/mzpaf-0.2.0a0.tar.gz" 2>/dev/null | rg "pyteomics"

Length of output: 4848


Script:

#!/bin/bash
# Let's try a different approach to check the source code for pyteomics usage
# First, let's check if there are any Python files that import or use pyteomics
rg -l "import.*pyteomics|from pyteomics"

# Then let's look for any version specifications in setup.py or pyproject.toml
fd "setup.py|pyproject.toml" | xargs cat

# Also check for any documentation mentioning pyteomics requirements
fd "README|requirements.txt" -e md -e txt | xargs cat

Length of output: 59378


Script:

#!/bin/bash
# Let's check the source code of mzpaf for any pyteomics usage or version requirements
# First check for any Python files that import pyteomics
rg -l "import.*pyteomics|from pyteomics" -g "*.py"

# Look for version specifications in setup.py or pyproject.toml in mzpaf's source
curl -sL "https://files.pythonhosted.org/packages/source/m/mzpaf/mzpaf-0.2.0a0.tar.gz" | tar xz -O "*/setup.py" "*/pyproject.toml" 2>/dev/null

# Check if there are any requirements files in the source
curl -sL "https://files.pythonhosted.org/packages/source/m/mzpaf/mzpaf-0.2.0a0.tar.gz" | tar tz | grep -E "requirements.*\.txt$"

Length of output: 312

@hechth
Copy link
Contributor Author

hechth commented Nov 19, 2024

@BiocondaBot please add label

@BiocondaBot BiocondaBot added the please review & merge set to ask for merge label Nov 19, 2024
@hechth hechth mentioned this pull request Nov 19, 2024
@mencian mencian merged commit a5adbcc into master Nov 19, 2024
6 checks passed
@mencian mencian deleted the mzpaf branch November 19, 2024 21:55
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