Repository navigation
v0.1.6
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.ymllisted it underenv: required:. For a PowerShell app, that is each$env:NAMEread. For a Python app, it is eachos.environ["NAME"]read;os.environ.get("NAME")andos.getenv("NAME")count as optional. A name thatconfig.ymllists 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 deployalso 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.--yestakes the suggestion. A run with no terminal and no--yesstops and prints the line to add. (#139) - A deployed job runs the pdt-cli version that its
run.pypins. Apps pinned to 0.1.4 get the job-side fixes below only after you change the pin topdt-cli==0.1.6and 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 --followprints a run's lines as they arrive.pdt logssays 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 completionprints 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
uvandpdton 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