mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
* test: add .tool-versions test * feat: extract locally defined mise package versions * test: .tool-versions unit tests * docs: integration tests docs * build: local mise config for less annoying warnings * feat: pull python ecosystem versions from mise * feat: internal support for extracting mise-specified package versions from app folder * refactor: move mise package version methods into context * test: snapshots * test: multiple test.json expectation lines this is using newly implemented multiple expectations syntax * test: support multiple expectations per test.json entry, don't use additional non-deterministic contains to throw an error * refactor: refine mise interface * refactor: make mise versions easier for a provider to use * test: snapshot update * refactor: move mise local package logic to step builder * test: move mise package version extraction to mise step builder tests * refactor: move mise package into mise step builder
12 lines
370 B
Python
12 lines
370 B
Python
import sys
|
|
import subprocess
|
|
|
|
print("Hello from Python UV!")
|
|
print(f"Python version: {sys.version.split()[0]}")
|
|
|
|
try:
|
|
result = subprocess.run(["uv", "--version"], capture_output=True, text=True, check=True)
|
|
print(f"UV version: {result.stdout.strip().split()[1]}")
|
|
except (subprocess.CalledProcessError, FileNotFoundError):
|
|
print("UV version: not available")
|