Commit d9fc8f7
authored
Add WinPython support and testing (#330)
Fixes #96
Introduce support for detecting WinPython environments.
## Changes
- Add new \pet-winpython\ crate for WinPython environment detection
- Add \WinPython\ to \PythonEnvironmentKind\ and \LocatorKind\ enums
- Integrate WinPython locator into the locator chain
- Update JSONRPC documentation
## Detection Strategy
WinPython environments are identified by:
1. Marker files: \.winpython\ or \winpython.ini\ in parent directories
2. Directory naming pattern: \WPy64-*\, \WPy32-*\, or \WPy-*\
3. Python folder naming: \python-X.Y.Z.amd64\ or \python-X.Y.Z\
## Testing
Added 14 tests covering directory/folder name patterns, version
extraction, marker file detection, and locator trait verification.1 parent 6e3266d commit d9fc8f7
File tree
9 files changed
+625
-9
lines changed- crates
- pet-core/src
- pet-winpython
- src
- pet
- src
- docs
9 files changed
+625
-9
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments