Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
db89b6e
feat: add pet-hatch locator for Hatch environments (Fixes #450)
karthiknadig May 8, 2026
b25b3a5
fix: address PR #460 review feedback
karthiknadig May 8, 2026
ec40512
fix: order Hatch before VirtualEnvWrapper in locator chain (PR #460)
karthiknadig May 8, 2026
b2a819b
fix: address PR #460 round-2 review feedback
karthiknadig May 10, 2026
29ad0dc
fix: address PR #460 round-3 review feedback
karthiknadig May 10, 2026
4da16a5
chore: align pet-hatch serde version with workspace style (PR #460)
karthiknadig May 10, 2026
beef4e5
fix: expand and trim HATCH_DATA_DIR; skip empty configured virtual pa…
karthiknadig May 11, 2026
3a1e302
perf: avoid Vec alloc and double norm_case in pet-hatch hot path (PR …
karthiknadig May 11, 2026
ba241fa
fix: env-name allowlist guard + matrix support for configured Hatch v…
karthiknadig May 11, 2026
16e07df
perf: dedupe TOML parsing + precompute env-name matcher (PR #460)
karthiknadig May 11, 2026
b716320
chore: revert to .unwrap() on mutex + fix stale doc reference (PR #460)
karthiknadig May 11, 2026
ea5b499
fix: reject unexpanded tilde paths in HATCH_DATA_DIR / dirs.env.virtu…
karthiknadig May 11, 2026
4225e5c
chore: use .expect() on workspace mutex to match codebase pattern (PR…
karthiknadig May 11, 2026
66b67fa
perf: Arc-wrap workspace cache entries; macOS no longer assumed case-…
karthiknadig May 11, 2026
95c9516
perf: snapshot workspace cache in try_from() to minimize lock hold (P…
karthiknadig May 11, 2026
7509df2
test: canonicalize temp roots in pet-hatch tests for Windows CI (PR #…
karthiknadig May 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/pet-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pub struct Configuration {
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub enum LocatorKind {
Conda,
Hatch,
Homebrew,
LinuxGlobal,
MacCommandLineTools,
Expand Down
1 change: 1 addition & 0 deletions crates/pet-core/src/python_environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub enum PythonEnvironmentKind {
PyenvVirtualEnv, // Pyenv virtualenvs.
Pipenv,
Poetry,
Hatch,
MacPythonOrg,
MacCommandLineTools,
LinuxGlobal,
Expand Down
16 changes: 16 additions & 0 deletions crates/pet-hatch/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "pet-hatch"
version.workspace = true
edition.workspace = true
license.workspace = true

[dependencies]
pet-core = { path = "../pet-core" }
pet-fs = { path = "../pet-fs" }
pet-python-utils = { path = "../pet-python-utils" }
serde = { version = "1.0.152", features = ["derive"] }
toml = "0.9.7"
log = "0.4.21"

[dev-dependencies]
tempfile = "3.13"
Loading
Loading