Skip to content

Fix hardcoded reliance on pip#1882

Open
vpetrigo wants to merge 34 commits intopypa:masterfrom
vpetrigo:fix/hardcoded-reliance-on-pip
Open

Fix hardcoded reliance on pip#1882
vpetrigo wants to merge 34 commits intopypa:masterfrom
vpetrigo:fix/hardcoded-reliance-on-pip

Conversation

@vpetrigo
Copy link
Copy Markdown

@vpetrigo vpetrigo commented Jan 9, 2025

This is an attempt to fix the issue described here juftin/hatch-pip-compile#85.

As it was discussed there, since hatch already depends on uv there is no need to rely on pip install during environment requirements resolution, because it may be not available.

Comment thread src/hatch/cli/application.py Outdated
Comment thread src/hatch/cli/application.py
Comment thread src/hatch/cli/application.py
@vpetrigo vpetrigo force-pushed the fix/hardcoded-reliance-on-pip branch from 56d4787 to b1838f8 Compare January 11, 2025 22:04
@vpetrigo vpetrigo force-pushed the fix/hardcoded-reliance-on-pip branch from 8dca06c to c1f2e75 Compare July 2, 2025 14:18
@vpetrigo
Copy link
Copy Markdown
Author

@ofek would you please re-approve workflows once again, I fixed formatting errors reported. I am really sorry to bother you. 😔

@vpetrigo
Copy link
Copy Markdown
Author

Not sure why 3.12 on Linux failed. Re-run that in my repo and it passed. 🤷

@vpetrigo
Copy link
Copy Markdown
Author

vpetrigo commented Jan 29, 2026

Tests fail due to differences in rendering Terminal output:

with console.capture() as capture:
console.print(table)

The following update in test_show.py fixes tests:

    with console.capture() as capture:
        console.print(table, overflow="ignore", no_wrap=True, crop=False)

Copy link
Copy Markdown
Contributor

@ofek ofek left a comment

Choose a reason for hiding this comment

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

Thanks for your patience here!

Comment thread src/hatch/cli/application.py Outdated
from functools import cached_property
from typing import TYPE_CHECKING, cast

from uv import find_uv_bin
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's import this lazily.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Should be fixed.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@ofek would you please tell me if any other changes are required, when you have time.😅

@vpetrigo vpetrigo requested a review from ofek March 9, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants