Skip to content

v0.1.6

Choose a tag to compare

@github-actions github-actions released this 08 Oct 20:36
· 94 commits to main since this release
b7609c8

0.1.5 was tagged but never published to PyPI. This release contains everything since 0.1.4.

Upgrade notes

  • A missing env var now stops a run before the app starts. pdt treats each env var that an app reads as required, as if config.yml listed it under env: required:. For a PowerShell app, that is each $env:NAME read. For a Python app, it is each os.environ["NAME"] read; os.environ.get("NAME") and os.getenv("NAME") count as optional. A name that config.yml lists keeps its listing. pdt run, pdt validate, pdt deploy, pdt secrets, and the deployed job all check the list, and the error names the variable, the file and line that reads it, and the fix. pdt deploy also sends these variables to the job. (#139)
  • The first deploy of a project with no region asks for one. pdt suggests a region from this computer's time zone, then from the provider CLI's settings, then a fixed default, and saves your answer to pdt.yml. --yes takes the suggestion. A run with no terminal and no --yes stops and prints the line to add. (#139)
  • A deployed job runs the pdt-cli version that its run.py pins. Apps pinned to 0.1.4 get the job-side fixes below only after you change the pin to pdt-cli==0.1.6 and deploy again.

New

  • Cost estimates show the currency of this computer's regional setting. pdt uses the cloud's own price in that currency, then the cloud's exchange rate, then the ECB daily rate, and otherwise USD with a note. (#139)
  • pdt logs --follow prints a run's lines as they arrive. pdt logs says when a run is still running, or when the cloud log store may not show the last lines yet (up to 5 minutes on AWS, Azure, and Google Cloud). (#139)
  • A mistyped command, option, or app name gets a "Did you mean" suggestion. (#139)
  • pdt prints a line before each slow step, including the first install of the AWS, Azure, or Google Cloud CLI. (#139)
  • pdt completion prints the line that turns on completion in the current shell, for PowerShell, bash, zsh, and fish. On Windows, it offers to set the PowerShell execution policy so the profile loads. (#139, fixes #133)

Fixes

  • A local store folder with a space in its name no longer gets a literal %20. (#139)
  • Azure commands run the Azure CLI inside pdt's process. Six calls took 13.96 s before and 1.12 s after, on a Windows test computer. (#139)
  • A PowerShell app's image pins the pdt-cli version that deployed it; before, it pinned 0.0.0.dev0, which is not on PyPI, and the build failed. (#136)
  • Output that a PowerShell module prints when it loads no longer breaks the script scan. (#135)
  • The README install steps put uv and pdt on the PATH in the current PowerShell window. (#139)

What's Changed

  • Keep a module's load-time output out of the PowerShell scan by @visch in #135
  • Pass pdt's version to the provider script by @visch in #136
  • fix(windows): fix problems found on Windows by @autoidm-jon in #139
  • chore(release): 0.1.6 by @visch in #138

Full Changelog: v0.1.4...v0.1.6