Skip to content

Releases: theskumar/python-dotenv

v1.0.1

23 Jan 06:32
d6c0b96
Compare
Choose a tag to compare

What's Changed

New Contributors

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

Version 1.0.0

24 Feb 06:46
d0684d1
Compare
Choose a tag to compare

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

21 Jan 10:22
5317a56
Compare
Choose a tag to compare

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

03 Sep 15:15
Compare
Choose a tag to compare

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

Version 0.19.2

11 Nov 12:35
Compare
Choose a tag to compare

What's Changed

Fixed

  • Add missing trailing newline before adding new entry with set_key by @bbc2 in #361

Full Changelog: v0.19.1...v0.19.2

Version 0.19.1

09 Oct 08:19
fc138ce
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.19.0...v0.19.1

Version 0.19.0

24 Jul 16:06
Compare
Choose a tag to compare

Changed

  • Require Python 3.5 or a later version. Python 2 and 3.4 are no longer supported. (#341 by @bbc2).

Added

  • The dotenv_path argument of set_key and unset_key now has a type of Union[str, os.PathLike] instead of just os.PathLike (#347 by @bbc2).
  • The stream argument of load_dotenv and dotenv_values can now be a text stream (IO[str]), which includes values like io.StringIO("foo") and open("file.env", "r") (#348 by @bbc2).

Version 0.18.0

20 Jun 16:51
Compare
Choose a tag to compare

Changed

  • Raise ValueError if quote_mode isn't one of always, auto or never in set_key (#330 by @bbc2).
  • When writing a value to a .env file with set_key or dotenv set <key> <value> (#330 by @bbc2):
    • Use single quotes instead of double quotes.
    • Don't strip surrounding quotes.
    • In auto mode, don't add quotes if the value is only made of alphanumeric characters (as determined by string.isalnum).

Version 0.17.1

29 Apr 19:04
Compare
Choose a tag to compare

Fixed

  • Fixed tests for build environments relying on PYTHONPATH (#318 by @befeleme).

Version 0.17.0

02 Apr 21:17
Compare
Choose a tag to compare

Changed

  • Make dotenv get <key> only show the value, not key=value (#313 by @bbc2).

Added

  • Add --override/--no-override option to dotenv run (#312 by @zueve and @bbc2).