Skip to content

Releases

1.8.8

Choose a tag to compare

@github-actions github-actions released this 23 Nov 19:21
Immutable release. Only release title and notes can be modified.

Bug fixes

  • Expand dotenv references in file order when env_files_skip_if_set is enabled, including repeated definitions and bare names (#358) by @narayana006 and @gaborbernat.

New Contributors

🐍 PyPI release

📜 Full Changelog

1.8.7

Choose a tag to compare

@github-actions github-actions released this 19 Nov 21:39
Immutable release. Only release title and notes can be modified.

Bug fixes

  • Reject non-boolean env_files_skip_if_set values in native TOML configuration (#355) by @gaborbernat.
  • Report -o env as the source of overridden INI entries in the verbose header (#348) by @gaborbernat.
  • Report a configuration error for a directory or named pipe supplied as a dotenv file (#356) by @gaborbernat.
  • Report a usage error naming the entry when the operating system rejects an environment assignment (#349) by @gaborbernat.
  • Resolve mixed-case environment variable references on Windows (#351) by @gaborbernat.
  • Show the file and line number of malformed dotenv statements in pytest's warning summary (#350) by @gaborbernat.

Security

  • Omit rejected environment option values from configuration errors (#353) by @gaborbernat.
  • Report invalid environment templates without including field text in error output (#354) by @gaborbernat.

Performance

  • Defer loading the .env parser until a configured environment file is read (#341) by @gaborbernat.

🐍 PyPI release

📜 Full Changelog

1.8.6

Choose a tag to compare

@github-actions github-actions released this 17 Nov 23:16
Immutable release. Only release title and notes can be modified.

Bug fixes

  • Escape non-printable characters in the --pytest-env-verbose header so each assignment stays on one line (#331) by @gaborbernat.
  • Expand ${VAR} in .env files with the kept value when env_files_skip_if_set skips the file's own assignment (#340) by @gaborbernat.
  • Keep an existing variable when an entry combines skip_if_set (D:) with unset (U:) (#337) by @gaborbernat.
  • Name the file when a TOML file found during discovery does not parse, and skip files whose pytest_env is not a table (#333) by @gaborbernat.
  • Raise FileNotFoundError for an empty --envfile value instead of loading the configured env files (#330) by @gaborbernat.
  • Read [pytest_env] from a custom-named TOML file selected with -c instead of a sibling or parent file (#339) by @gaborbernat.
  • Reject INI env lines 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 --envfile against the invocation directory before the project root, so --envfile ../file loads 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

🐍 PyPI release

📜 Full Changelog

1.8.5

Choose a tag to compare

@github-actions github-actions released this 04 Nov 05:11
Immutable release. Only release title and notes can be modified.

1.8.4

Choose a tag to compare

@github-actions github-actions released this 31 Oct 14:45
Immutable release. Only release title and notes can be modified.

Bug fixes

New Contributors

PyPI release

Full Changelog

1.8.3

Choose a tag to compare

@github-actions github-actions released this 27 Oct 17:37
Immutable release. Only release title and notes can be modified.

New Contributors

🐍 PyPI release

📜 Full Changelog

1.8.2

Choose a tag to compare

@github-actions github-actions released this 27 Oct 06:00
Immutable release. Only release title and notes can be modified.

Bug fixes

Packaging

  • Describe the pytest plugin and its testing purpose in package metadata (#282) by @gaborbernat.

New Contributors

🐍 PyPI release

📜 Full Changelog

1.8.1

Choose a tag to compare

@gaborbernat gaborbernat released this 18 Oct 06:54
Immutable release. Only release title and notes can be modified.
1fed481

Bug fixes

  • Respect an explicitly empty native env_files list over the INI fallback (#273) by @edsonsims.

New Contributors

🐍 PyPI release

📜 Full Changelog

1.8.0

Choose a tag to compare

@gaborbernat gaborbernat released this 10 Oct 22:49
Immutable release. Only release title and notes can be modified.
484cdae

Features

Documentation

  • Document [pytest] environment settings in pytest.toml and .pytest.toml (#262) by @devtechedge.

New Contributors

🐍 PyPI release

📜 Full Changelog

1.7.1

Choose a tag to compare

@gaborbernat gaborbernat released this 08 Sep 14:49
Immutable release. Only release title and notes can be modified.
7ddd152

Bug fixes

  • Discover pyproject.toml environment settings beside native pytest configuration (#260) by @oyeong011.

New Contributors

🐍 PyPI release

📜 Full Changelog