Skip to content

Releases: zoispag/go-python-runner

v2.0.0

06 Apr 21:41
139325f

Choose a tag to compare

What's Changed

Breaking changes

  • Removed PyFlow support (python/pyflow.go, pyflow.lock, pyproject.toml.pyflow)
  • Removed __pypackages__ detection from GetPythonRunCommand / ExecutePython

New features

  • Added uv support — detects uv.lock and runs uv sync; uv takes precedence over Poetry

Package manager precedence (updated)

Priority Tool Indicator
1 uv uv.lock + pyproject.toml
2 Poetry pyproject.toml with [tool.poetry]
3 pipenv Pipfile
4 pip + venv requirements.txt

Improvements

  • Bumped Go version to 1.26
  • Replaced deprecated ioutil.ReadFile with os.ReadFile
  • Fixed poetryProc CWD-relative bug in poetry.toml detection
  • ExecutePython now delegates to GetPythonRunCommand internally
  • Replaced panic with log.Error + early return on pyproject.toml read failure
  • Updated all GitHub Actions to latest versions
  • Added e2e tests (python/e2e_test.go) and testdata/ fixtures for all package managers
  • Added CI matrix workflow (.github/workflows/test.yml)

Full Changelog: v1.2.1...v2.0.0

Patch: Provide path as command root during virtual environment creation

14 Dec 20:36
df35b43

Choose a tag to compare

Make poetry, pip, and pyflow virtual environment creation process directory-aware, so it won't be required to do os.Chdir(path) before running python.SetupVirtualEnv(path)