Skip to content

Releases: theskumar/python-dotenv

v1.2.3

Choose a tag to compare

@theskumar theskumar released this 16 Aug 16:54
49515af

Fixed

  • Strip a leading UTF-8 BOM from .env file contents so the first variable is no longer silently lost when the file is saved with BOM (e.g. by some JetBrains IDEs on Windows) by [@h1whelan] in [#640]
  • set_key now escapes backslashes, so values containing them (Windows paths, regular expressions) survive a write/read round-trip. Quoted values ending in an escaped backslash are no longer mis-parsed as an escaped quote, which used to swallow the following lines by [@dchaudhari7177] in [#680]
  • dotenv run now prints a friendly error instead of a traceback when no command is given by [@bbc2] in [#606]
  • Cache the parsed result for empty .env files so repeated dotenv_values/load_dotenv calls no longer re-read the file by [@ReinerBRO] in [#638]

v1.2.2

Choose a tag to compare

@theskumar theskumar released this 01 Mar 15:59
36004e0

Added

  • Support for Python 3.14, including the free-threaded (3.14t) build. (#)

Changed

  • The dotenv run command now forwards flags directly to the specified command by @bbc2 in #607
  • Improved documentation clarity regarding override behavior and the reference page.
  • Updated PyPy support to version 3.11.
  • Documentation for FIFO file support.
  • Support for Python 3.9.

Fixed

  • Improved set_key and unset_key behavior when interacting with symlinks by @bbc2 in #790c5
  • Corrected the license specifier and added missing Python 3.14 classifiers in package metadata by @JYOuyang in #590

Breaking Changes

  • dotenv.set_key and dotenv.unset_key used to follow symlinks in some
    situations. This is no longer the case. For that behavior to be restored in
    all cases, follow_symlinks=True should be used.

  • In the CLI, set and unset used to follow symlinks in some situations. This
    is no longer the case.

  • dotenv.set_key, dotenv.unset_key and the CLI commands set and unset
    used to reset the file mode of the modified .env file to 0o600 in some
    situations. This is no longer the case: The original mode of the file is now
    preserved. Is the file needed to be created or wasn't a regular file, mode
    0o600 is used.

Misc

New Contributors

Full Changelog: v1.2.1...v1.2.2

v1.2.1

Choose a tag to compare

@theskumar theskumar released this 26 Oct 15:11
eaf2a91

What's Changed

  • Support reading .env from FIFOs (Unix) by @sidharth-sudhir in #586
  • Update CI to use trusted publishing on PyPI

New Contributors

Full Changelog: v1.2.0...v1.2.1

v1.2.0

Choose a tag to compare

@theskumar theskumar released this 26 Oct 13:36
5bf8822

What's Changed

New Contributors

Full Changelog: v1.1.1...v1.2.0

v1.1.1

Choose a tag to compare

@theskumar theskumar released this 24 Jun 04:20
16e660d

What's Changed

New Contributors

Full Changelog: v1.1.0...v1.1.1

v1.1.0

Choose a tag to compare

@theskumar theskumar released this 25 Mar 10:56
6a02ef5

What's Changed

New Contributors

Full Changelog: v1.0.1...v1.1.0

v1.0.1

Choose a tag to compare

@theskumar theskumar released this 23 Jan 06:32
d6c0b96

What's Changed

New Contributors

Full Changelog: v1.0.0...v1.0.1

Version 1.0.0

Choose a tag to compare

@theskumar theskumar released this 24 Feb 06:46
d0684d1

What's Changed

  • Handle situations where the cwd does not exist. by @jctanner in #446
  • Add python-decouple as a related project by @kcarnold in #451
  • Drop support for python 3.7, add python 3.12-dev by @theskumar in #449

New Contributors

Full Changelog: v0.21.1...v1.0.0

Version 0.21.1

Choose a tag to compare

@theskumar theskumar released this 21 Jan 10:22
5317a56

Added

Fixed

  • Fix Out-of-scope error when "dest" variable is undefined (#413 by @theGOTOguy)
  • Fix IPython test warning about deprecated magic (#440 by @bbc2)
  • Fix type hint for dotenv_path var, add StrPath alias (#432 by @eaf)

New Contributors

Full Changelog: v0.21.0...v0.21.1

Version 0.21.0

Choose a tag to compare

@theskumar theskumar released this 03 Sep 15:15

What's Changed

Added

  • CLI: add support for invocations via 'python -m'. (#395 by @theskumar)
  • load_dotenv function now returns False. (#388 by @larsks)
  • CLI: add --format= option to list command. (#407 by @sammck)

Fixed

New Contributors

Full Changelog: v0.20.0...v0.21.0