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

Adding Cargo Rust to the Python Environment #11599

Merged

Conversation

thavaahariharangit
Copy link
Contributor

@thavaahariharangit thavaahariharangit commented Feb 14, 2025

What are you trying to accomplish?

Python dependency jinja2 is required Cargo Rust installation for pip-compile

Failing command in dependabot core

command: {} pyenv exec pip-compile -v --build-isolation --allow-unsafe --output-file\=requirements-dev.txt -P jinja2 requirements-dev.in {}

With Error:

2025-01-02T10:49:26.7645509Z     Preparing metadata (pyproject.toml): started
2025-01-02T10:49:26.7645917Z     Preparing metadata (pyproject.toml): finished with status 'error'
2025-01-02T10:49:26.7646405Z     error: subprocess-exited-with-error
2025-01-02T10:49:26.7646767Z     
2025-01-02T10:49:26.7647336Z     × Preparing metadata (pyproject.toml) did not run successfully.
2025-01-02T10:49:26.7647858Z     │ exit code: 1
2025-01-02T10:49:26.7648473Z     ╰─> [6 lines of output]
2025-01-02T10:49:26.7648789Z         
2025-01-02T10:49:26.7649266Z         Cargo, the Rust package manager, is not installed or is not on PATH.
2025-01-02T10:49:26.7649823Z         This package requires Rust and Cargo to compile extensions. Install it through
2025-01-02T10:49:26.7650406Z         the system's package manager or via https://rustup.rs/
2025-01-02T10:49:26.7650845Z         
2025-01-02T10:49:26.7651116Z         Checking for Rust toolchain....
2025-01-02T10:49:26.7651506Z         [end of output]
2025-01-02T10:49:26.7651812Z     
2025-01-02T10:49:26.7652201Z     note: This error originates from a subprocess, and is likely not a problem with pip.

Making Rust available in the Python environment will resolve the error and allow the pip-compile command to run successfully

Anything you want to highlight for special attention from reviewers?

So this PR making the Rust available in the python environment.

How will you know you've accomplished your goal?

After this changes, I ran the CLI and ensured, that the build is completed successfully

2025/02/14 11:21:09 INFO Finished job processing
2025/02/14 11:21:09 INFO Results:
+------------------------------------------+
|   Changes to Dependabot Pull Requests    |
+---------+--------------------------------+
| created | jinja2 ( from 3.1.4 to 3.1.5 ) |
+---------+--------------------------------+

Checklist

  • I have run the complete test suite to ensure all tests and linters pass.
  • I have thoroughly tested my code changes to ensure they work as expected, including adding additional tests for new functionality.
  • I have written clear and descriptive commit messages.
  • I have provided a detailed description of the changes in the pull request, including the problem it addresses, how it fixes the problem, and any relevant details about the implementation.
  • I have ensured that the code is well-documented and easy to understand.

@thavaahariharangit thavaahariharangit requested a review from a team as a code owner February 14, 2025 11:34
@thavaahariharangit thavaahariharangit merged commit c38541c into main Feb 17, 2025
63 of 64 checks passed
@thavaahariharangit thavaahariharangit deleted the harry/adding-cargo-rust-to-python-environment branch February 17, 2025 11:12
dmitris pushed a commit to dmitris/dependabot-core that referenced this pull request Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants