Bug fixes
- Escape non-printable characters in the
--pytest-env-verboseheader so each assignment stays on one line (#331) by @gaborbernat. - Expand
${VAR}in.envfiles with the kept value whenenv_files_skip_if_setskips the file's own assignment (#340) by @gaborbernat. - Keep an existing variable when an entry combines
skip_if_set(D:) withunset(U:) (#337) by @gaborbernat. - Name the file when a TOML file found during discovery does not parse, and skip files whose
pytest_envis not a table (#333) by @gaborbernat. - Raise
FileNotFoundErrorfor an empty--envfilevalue instead of loading the configured env files (#330) by @gaborbernat. - Read
[pytest_env]from a custom-named TOML file selected with-cinstead of a sibling or parent file (#339) by @gaborbernat. - Reject INI
envlines with an unknown flag or no variable name instead of applying them (#334) by @gaborbernat. - Reject native TOML entry tables with unknown keys, non-boolean flags or no value instead of applying them (#338) by @gaborbernat.
- Resolve
--envfileagainst the invocation directory before the project root, so--envfile ../fileloads the file it names (#332) by @gaborbernat. - Skip directories and other non-regular entries named like a TOML configuration file during discovery (#336) by @gaborbernat.
Security
- Report an invalid
{VAR}template as a usage error that names the entry instead of printing an environment value (#335) by @gaborbernat.
Packaging
- Every wheel now carries a PEP 770 CycloneDX SBOM in its
.dist-info/sbomsdirectory, written at build time by python-sbom (#309) by @gaborbernat.