theskumar/python-dotenv (python-dotenv)
### [`v0.21.1`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0211---2023-01-21)
[Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.21.0...v0.21.1)
**Added**
- Use Python 3.11 non-beta in CI ([#438](https://togithub.com/theskumar/python-dotenv/issues/438) by \[[@bbc2](https://togithub.com/bbc2)])
- Modernize variables code ([#434](https://togithub.com/theskumar/python-dotenv/issues/434) by \[[@Nougat-Waffle](https://togithub.com/Nougat-Waffle)])
- Modernize main.py and parser.py code ([#435](https://togithub.com/theskumar/python-dotenv/issues/435) by \[[@Nougat-Waffle](https://togithub.com/Nougat-Waffle)])
- Improve conciseness of cli.py and **init**.py ([#439](https://togithub.com/theskumar/python-dotenv/issues/439) by \[[@Nougat-Waffle](https://togithub.com/Nougat-Waffle)])
- Improve error message for `get` and `list` commands when env file can't be opened ([#441](https://togithub.com/theskumar/python-dotenv/issues/441) by \[[@bbc2](https://togithub.com/bbc2)])
- Updated License to align with BSD OSI template ([#433](https://togithub.com/theskumar/python-dotenv/issues/433) by \[[@lsmith77](https://togithub.com/lsmith77)])
**Fixed**
- Fix Out-of-scope error when "dest" variable is undefined ([#413](https://togithub.com/theskumar/python-dotenv/issues/413) by \[[@theGOTOguy](https://togithub.com/theGOTOguy)])
- Fix IPython test warning about deprecated `magic` ([#440](https://togithub.com/theskumar/python-dotenv/issues/440) by \[[@bbc2](https://togithub.com/bbc2)])
- Fix type hint for dotenv_path var, add StrPath alias ([#432](https://togithub.com/theskumar/python-dotenv/issues/432) by \[[@eaf](https://togithub.com/eaf)])
### [`v0.21.0`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0210---2022-09-03)
[Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.20.0...v0.21.0)
**Added**
- CLI: add support for invocations via 'python -m'. ([#395](https://togithub.com/theskumar/python-dotenv/issues/395) by \[[@theskumar](https://togithub.com/theskumar)])
- `load_dotenv` function now returns `False`. ([#388](https://togithub.com/theskumar/python-dotenv/issues/388) by \[[@larsks](https://togithub.com/larsks)])
- CLI: add --format= option to list command. ([#407](https://togithub.com/theskumar/python-dotenv/issues/407) by \[[@sammck](https://togithub.com/sammck)])
**Fixed**
- Drop Python 3.5 and 3.6 and upgrade GA ([#393](https://togithub.com/theskumar/python-dotenv/issues/393) by \[[@eggplants](https://togithub.com/eggplants)])
- Use `open` instead of `io.open`. ([#389](https://togithub.com/theskumar/python-dotenv/issues/389) by \[[@rabinadk1](https://togithub.com/rabinadk1)])
- Improve documentation for variables without a value ([#390](https://togithub.com/theskumar/python-dotenv/issues/390) by \[[@bbc2](https://togithub.com/bbc2)])
- Add `parse_it` to Related Projects ([#410](https://togithub.com/theskumar/python-dotenv/issues/410) by \[[@naorlivne](https://togithub.com/naorlivne)])
- Update README.md ([#415](https://togithub.com/theskumar/python-dotenv/issues/415) by \[[@harveer07](https://togithub.com/harveer07)])
- Improve documentation with direct use of MkDocs ([#398](https://togithub.com/theskumar/python-dotenv/issues/398) by \[[@bbc2](https://togithub.com/bbc2)])
### [`v0.20.0`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0200---2022-03-24)
[Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.19.2...v0.20.0)
**Added**
- Add `encoding` (`Optional[str]`) parameter to `get_key`, `set_key` and `unset_key`.
([#379](https://togithub.com/theskumar/python-dotenv/issues/379) by \[[@bbc2](https://togithub.com/bbc2)])
**Fixed**
- Use dict to specify the `entry_points` parameter of `setuptools.setup` ([#376](https://togithub.com/theskumar/python-dotenv/issues/376) by
\[[@mgorny](https://togithub.com/mgorny)]).
- Don't build universal wheels ([#387](https://togithub.com/theskumar/python-dotenv/issues/387) by \[[@bbc2](https://togithub.com/bbc2)]).
### [`v0.19.2`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0192---2021-11-11)
[Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.19.1...v0.19.2)
**Fixed**
- In `set_key`, add missing newline character before new entry if necessary. ([#361](https://togithub.com/theskumar/python-dotenv/issues/361) by
\[[@bbc2](https://togithub.com/bbc2)])
### [`v0.19.1`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0191---2021-08-09)
[Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.19.0...v0.19.1)
**Added**
- Add support for Python 3.10. ([#359](https://togithub.com/theskumar/python-dotenv/issues/359) by \[[@theskumar](https://togithub.com/theskumar)])
### [`v0.19.0`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0190---2021-07-24)
[Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.18.0...v0.19.0)
**Changed**
- Require Python 3.5 or a later version. Python 2 and 3.4 are no longer supported. ([#341](https://togithub.com/theskumar/python-dotenv/issues/341)
by \[[@bbc2](https://togithub.com/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](https://togithub.com/theskumar/python-dotenv/issues/347) by \[[@bbc2](https://togithub.com/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](https://togithub.com/theskumar/python-dotenv/issues/348) by \[[@bbc2](https://togithub.com/bbc2)]).
### [`v0.18.0`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0180---2021-06-20)
[Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.17.1...v0.18.0)
**Changed**
- Raise `ValueError` if `quote_mode` isn't one of `always`, `auto` or `never` in
`set_key` ([#330](https://togithub.com/theskumar/python-dotenv/issues/330) by \[[@bbc2](https://togithub.com/bbc2)]).
- When writing a value to a .env file with `set_key` or `dotenv set ` ([#330](https://togithub.com/theskumar/python-dotenv/issues/330)
by \[[@bbc2](https://togithub.com/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`).
### [`v0.17.1`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0171---2021-04-29)
[Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.17.0...v0.17.1)
**Fixed**
- Fixed tests for build environments relying on `PYTHONPATH` ([#318](https://togithub.com/theskumar/python-dotenv/issues/318) by \[[@befeleme](https://togithub.com/befeleme)]).
### [`v0.17.0`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0170---2021-04-02)
[Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.16.0...v0.17.0)
**Changed**
- Make `dotenv get ` only show the value, not `key=value` ([#313](https://togithub.com/theskumar/python-dotenv/issues/313) by \[[@bbc2](https://togithub.com/bbc2)]).
**Added**
- Add `--override`/`--no-override` option to `dotenv run` ([#312](https://togithub.com/theskumar/python-dotenv/issues/312) by \[[@zueve](https://togithub.com/zueve)] and \[[@bbc2](https://togithub.com/bbc2)]).
### [`v0.16.0`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0160---2021-03-27)
[Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.15.0...v0.16.0)
**Changed**
- The default value of the `encoding` parameter for `load_dotenv` and `dotenv_values` is
now `"utf-8"` instead of `None` ([#306](https://togithub.com/theskumar/python-dotenv/issues/306) by \[[@bbc2](https://togithub.com/bbc2)]).
- Fix resolution order in variable expansion with `override=False` ([#287](https://togithub.com/theskumar/python-dotenv/issues/287) by \[[@bbc2](https://togithub.com/bbc2)]).
### [`v0.15.0`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0150---2020-10-28)
[Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.14.0...v0.15.0)
**Added**
- Add `--export` option to `set` to make it prepend the binding with `export` ([#270](https://togithub.com/theskumar/python-dotenv/issues/270) by
\[[@jadutter](https://togithub.com/jadutter)]).
**Changed**
- Make `set` command create the `.env` file in the current directory if no `.env` file was
found ([#270](https://togithub.com/theskumar/python-dotenv/issues/270) by \[[@jadutter](https://togithub.com/jadutter)]).
**Fixed**
- Fix potentially empty expanded value for duplicate key ([#260](https://togithub.com/theskumar/python-dotenv/issues/260) by \[[@bbc2](https://togithub.com/bbc2)]).
- Fix import error on Python 3.5.0 and 3.5.1 ([#267](https://togithub.com/theskumar/python-dotenv/issues/267) by \[[@gongqingkui](https://togithub.com/gongqingkui)]).
- Fix parsing of unquoted values containing several adjacent space or tab characters
([#277](https://togithub.com/theskumar/python-dotenv/issues/277) by \[[@bbc2](https://togithub.com/bbc2)], review by \[[@x-yuri](https://togithub.com/x-yuri)]).
### [`v0.14.0`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0140---2020-07-03)
[Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.13.0...v0.14.0)
**Changed**
- Privilege definition in file over the environment in variable expansion ([#256](https://togithub.com/theskumar/python-dotenv/issues/256) by
\[[@elbehery95](https://togithub.com/elbehery95)]).
**Fixed**
- Improve error message for when file isn't found ([#245](https://togithub.com/theskumar/python-dotenv/issues/245) by \[[@snobu](https://togithub.com/snobu)]).
- Use HTTPS URL in package meta data ([#251](https://togithub.com/theskumar/python-dotenv/issues/251) by \[[@ekohl](https://togithub.com/ekohl)]).
### [`v0.13.0`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0130---2020-04-16)
[Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.12.0...v0.13.0)
**Added**
- Add support for a Bash-like default value in variable expansion ([#248](https://togithub.com/theskumar/python-dotenv/issues/248) by \[[@bbc2](https://togithub.com/bbc2)]).
### [`v0.12.0`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0120---2020-02-28)
[Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.11.0...v0.12.0)
**Changed**
- Use current working directory to find `.env` when bundled by PyInstaller ([#213](https://togithub.com/theskumar/python-dotenv/issues/213) by
\[[@gergelyk](https://togithub.com/gergelyk)]).
**Fixed**
- Fix escaping of quoted values written by `set_key` ([#236](https://togithub.com/theskumar/python-dotenv/issues/236) by \[[@bbc2](https://togithub.com/bbc2)]).
- Fix `dotenv run` crashing on environment variables without values ([#237](https://togithub.com/theskumar/python-dotenv/issues/237) by \[[@yannham](https://togithub.com/yannham)]).
- Remove warning when last line is empty ([#238](https://togithub.com/theskumar/python-dotenv/issues/238) by \[[@bbc2](https://togithub.com/bbc2)]).
### [`v0.11.0`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0110---2020-02-07)
[Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.10.5...v0.11.0)
**Added**
- Add `interpolate` argument to `load_dotenv` and `dotenv_values` to disable interpolation
([#232](https://togithub.com/theskumar/python-dotenv/issues/232) by \[[@ulyssessouza](https://togithub.com/ulyssessouza)]).
**Changed**
- Use logging instead of warnings ([#231](https://togithub.com/theskumar/python-dotenv/issues/231) by \[[@bbc2](https://togithub.com/bbc2)]).
**Fixed**
- Fix installation in non-UTF-8 environments ([#225](https://togithub.com/theskumar/python-dotenv/issues/225) by \[[@altendky](https://togithub.com/altendky)]).
- Fix PyPI classifiers ([#228](https://togithub.com/theskumar/python-dotenv/issues/228) by \[[@bbc2](https://togithub.com/bbc2)]).
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
~=0.10.2
->~=0.21.1
Release Notes
theskumar/python-dotenv (python-dotenv)
### [`v0.21.1`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0211---2023-01-21) [Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.21.0...v0.21.1) **Added** - Use Python 3.11 non-beta in CI ([#438](https://togithub.com/theskumar/python-dotenv/issues/438) by \[[@bbc2](https://togithub.com/bbc2)]) - Modernize variables code ([#434](https://togithub.com/theskumar/python-dotenv/issues/434) by \[[@Nougat-Waffle](https://togithub.com/Nougat-Waffle)]) - Modernize main.py and parser.py code ([#435](https://togithub.com/theskumar/python-dotenv/issues/435) by \[[@Nougat-Waffle](https://togithub.com/Nougat-Waffle)]) - Improve conciseness of cli.py and **init**.py ([#439](https://togithub.com/theskumar/python-dotenv/issues/439) by \[[@Nougat-Waffle](https://togithub.com/Nougat-Waffle)]) - Improve error message for `get` and `list` commands when env file can't be opened ([#441](https://togithub.com/theskumar/python-dotenv/issues/441) by \[[@bbc2](https://togithub.com/bbc2)]) - Updated License to align with BSD OSI template ([#433](https://togithub.com/theskumar/python-dotenv/issues/433) by \[[@lsmith77](https://togithub.com/lsmith77)]) **Fixed** - Fix Out-of-scope error when "dest" variable is undefined ([#413](https://togithub.com/theskumar/python-dotenv/issues/413) by \[[@theGOTOguy](https://togithub.com/theGOTOguy)]) - Fix IPython test warning about deprecated `magic` ([#440](https://togithub.com/theskumar/python-dotenv/issues/440) by \[[@bbc2](https://togithub.com/bbc2)]) - Fix type hint for dotenv_path var, add StrPath alias ([#432](https://togithub.com/theskumar/python-dotenv/issues/432) by \[[@eaf](https://togithub.com/eaf)]) ### [`v0.21.0`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0210---2022-09-03) [Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.20.0...v0.21.0) **Added** - CLI: add support for invocations via 'python -m'. ([#395](https://togithub.com/theskumar/python-dotenv/issues/395) by \[[@theskumar](https://togithub.com/theskumar)]) - `load_dotenv` function now returns `False`. ([#388](https://togithub.com/theskumar/python-dotenv/issues/388) by \[[@larsks](https://togithub.com/larsks)]) - CLI: add --format= option to list command. ([#407](https://togithub.com/theskumar/python-dotenv/issues/407) by \[[@sammck](https://togithub.com/sammck)]) **Fixed** - Drop Python 3.5 and 3.6 and upgrade GA ([#393](https://togithub.com/theskumar/python-dotenv/issues/393) by \[[@eggplants](https://togithub.com/eggplants)]) - Use `open` instead of `io.open`. ([#389](https://togithub.com/theskumar/python-dotenv/issues/389) by \[[@rabinadk1](https://togithub.com/rabinadk1)]) - Improve documentation for variables without a value ([#390](https://togithub.com/theskumar/python-dotenv/issues/390) by \[[@bbc2](https://togithub.com/bbc2)]) - Add `parse_it` to Related Projects ([#410](https://togithub.com/theskumar/python-dotenv/issues/410) by \[[@naorlivne](https://togithub.com/naorlivne)]) - Update README.md ([#415](https://togithub.com/theskumar/python-dotenv/issues/415) by \[[@harveer07](https://togithub.com/harveer07)]) - Improve documentation with direct use of MkDocs ([#398](https://togithub.com/theskumar/python-dotenv/issues/398) by \[[@bbc2](https://togithub.com/bbc2)]) ### [`v0.20.0`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0200---2022-03-24) [Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.19.2...v0.20.0) **Added** - Add `encoding` (`Optional[str]`) parameter to `get_key`, `set_key` and `unset_key`. ([#379](https://togithub.com/theskumar/python-dotenv/issues/379) by \[[@bbc2](https://togithub.com/bbc2)]) **Fixed** - Use dict to specify the `entry_points` parameter of `setuptools.setup` ([#376](https://togithub.com/theskumar/python-dotenv/issues/376) by \[[@mgorny](https://togithub.com/mgorny)]). - Don't build universal wheels ([#387](https://togithub.com/theskumar/python-dotenv/issues/387) by \[[@bbc2](https://togithub.com/bbc2)]). ### [`v0.19.2`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0192---2021-11-11) [Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.19.1...v0.19.2) **Fixed** - In `set_key`, add missing newline character before new entry if necessary. ([#361](https://togithub.com/theskumar/python-dotenv/issues/361) by \[[@bbc2](https://togithub.com/bbc2)]) ### [`v0.19.1`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0191---2021-08-09) [Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.19.0...v0.19.1) **Added** - Add support for Python 3.10. ([#359](https://togithub.com/theskumar/python-dotenv/issues/359) by \[[@theskumar](https://togithub.com/theskumar)]) ### [`v0.19.0`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0190---2021-07-24) [Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.18.0...v0.19.0) **Changed** - Require Python 3.5 or a later version. Python 2 and 3.4 are no longer supported. ([#341](https://togithub.com/theskumar/python-dotenv/issues/341) by \[[@bbc2](https://togithub.com/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](https://togithub.com/theskumar/python-dotenv/issues/347) by \[[@bbc2](https://togithub.com/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](https://togithub.com/theskumar/python-dotenv/issues/348) by \[[@bbc2](https://togithub.com/bbc2)]). ### [`v0.18.0`](https://togithub.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0180---2021-06-20) [Compare Source](https://togithub.com/theskumar/python-dotenv/compare/v0.17.1...v0.18.0) **Changed** - Raise `ValueError` if `quote_mode` isn't one of `always`, `auto` or `never` in `set_key` ([#330](https://togithub.com/theskumar/python-dotenv/issues/330) by \[[@bbc2](https://togithub.com/bbc2)]). - When writing a value to a .env file with `set_key` or `dotenv setConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.