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]).
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [python-dotenv](https://github.com/theskumar/python-dotenv) | packages | minor | `==0.17.1` -> `==0.21.1` |
---
### Release Notes
<details>
<summary>theskumar/python-dotenv (python-dotenv)</summary>
### [`v0.21.1`](https://github.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0211---2023-01-21)
[Compare Source](https://github.com/theskumar/python-dotenv/compare/v0.21.0...v0.21.1)
**Added**
- Use Python 3.11 non-beta in CI ([#​438](https://github.com/theskumar/python-dotenv/issues/438) by \[[@​bbc2](https://github.com/bbc2)])
- Modernize variables code ([#​434](https://github.com/theskumar/python-dotenv/issues/434) by \[[@​Nougat-Waffle](https://github.com/Nougat-Waffle)])
- Modernize main.py and parser.py code ([#​435](https://github.com/theskumar/python-dotenv/issues/435) by \[[@​Nougat-Waffle](https://github.com/Nougat-Waffle)])
- Improve conciseness of cli.py and **init**.py ([#​439](https://github.com/theskumar/python-dotenv/issues/439) by \[[@​Nougat-Waffle](https://github.com/Nougat-Waffle)])
- Improve error message for `get` and `list` commands when env file can't be opened ([#​441](https://github.com/theskumar/python-dotenv/issues/441) by \[[@​bbc2](https://github.com/bbc2)])
- Updated License to align with BSD OSI template ([#​433](https://github.com/theskumar/python-dotenv/issues/433) by \[[@​lsmith77](https://github.com/lsmith77)])
**Fixed**
- Fix Out-of-scope error when "dest" variable is undefined ([#​413](https://github.com/theskumar/python-dotenv/issues/413) by \[[@​theGOTOguy](https://github.com/theGOTOguy)])
- Fix IPython test warning about deprecated `magic` ([#​440](https://github.com/theskumar/python-dotenv/issues/440) by \[[@​bbc2](https://github.com/bbc2)])
- Fix type hint for dotenv_path var, add StrPath alias ([#​432](https://github.com/theskumar/python-dotenv/issues/432) by \[[@​eaf](https://github.com/eaf)])
### [`v0.21.0`](https://github.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0210---2022-09-03)
[Compare Source](https://github.com/theskumar/python-dotenv/compare/v0.20.0...v0.21.0)
**Added**
- CLI: add support for invocations via 'python -m'. ([#​395](https://github.com/theskumar/python-dotenv/issues/395) by \[[@​theskumar](https://github.com/theskumar)])
- `load_dotenv` function now returns `False`. ([#​388](https://github.com/theskumar/python-dotenv/issues/388) by \[[@​larsks](https://github.com/larsks)])
- CLI: add --format= option to list command. ([#​407](https://github.com/theskumar/python-dotenv/issues/407) by \[[@​sammck](https://github.com/sammck)])
**Fixed**
- Drop Python 3.5 and 3.6 and upgrade GA ([#​393](https://github.com/theskumar/python-dotenv/issues/393) by \[[@​eggplants](https://github.com/eggplants)])
- Use `open` instead of `io.open`. ([#​389](https://github.com/theskumar/python-dotenv/issues/389) by \[[@​rabinadk1](https://github.com/rabinadk1)])
- Improve documentation for variables without a value ([#​390](https://github.com/theskumar/python-dotenv/issues/390) by \[[@​bbc2](https://github.com/bbc2)])
- Add `parse_it` to Related Projects ([#​410](https://github.com/theskumar/python-dotenv/issues/410) by \[[@​naorlivne](https://github.com/naorlivne)])
- Update README.md ([#​415](https://github.com/theskumar/python-dotenv/issues/415) by \[[@​harveer07](https://github.com/harveer07)])
- Improve documentation with direct use of MkDocs ([#​398](https://github.com/theskumar/python-dotenv/issues/398) by \[[@​bbc2](https://github.com/bbc2)])
### [`v0.20.0`](https://github.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0200---2022-03-24)
[Compare Source](https://github.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://github.com/theskumar/python-dotenv/issues/379) by \[[@​bbc2](https://github.com/bbc2)])
**Fixed**
- Use dict to specify the `entry_points` parameter of `setuptools.setup` ([#​376](https://github.com/theskumar/python-dotenv/issues/376) by
\[[@​mgorny](https://github.com/mgorny)]).
- Don't build universal wheels ([#​387](https://github.com/theskumar/python-dotenv/issues/387) by \[[@​bbc2](https://github.com/bbc2)]).
### [`v0.19.2`](https://github.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0192---2021-11-11)
[Compare Source](https://github.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://github.com/theskumar/python-dotenv/issues/361) by
\[[@​bbc2](https://github.com/bbc2)])
### [`v0.19.1`](https://github.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0191---2021-08-09)
[Compare Source](https://github.com/theskumar/python-dotenv/compare/v0.19.0...v0.19.1)
**Added**
- Add support for Python 3.10. ([#​359](https://github.com/theskumar/python-dotenv/issues/359) by \[[@​theskumar](https://github.com/theskumar)])
### [`v0.19.0`](https://github.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0190---2021-07-24)
[Compare Source](https://github.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://github.com/theskumar/python-dotenv/issues/341)
by \[[@​bbc2](https://github.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://github.com/theskumar/python-dotenv/issues/347) by \[[@​bbc2](https://github.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://github.com/theskumar/python-dotenv/issues/348) by \[[@​bbc2](https://github.com/bbc2)]).
### [`v0.18.0`](https://github.com/theskumar/python-dotenv/blob/HEAD/CHANGELOG.md#0180---2021-06-20)
[Compare Source](https://github.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://github.com/theskumar/python-dotenv/issues/330) by \[[@​bbc2](https://github.com/bbc2)]).
- When writing a value to a .env file with `set_key` or `dotenv set <key> <value>` ([#​330](https://github.com/theskumar/python-dotenv/issues/330)
by \[[@​bbc2](https://github.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`).
</details>
---
### 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.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
==0.17.1->==0.21.1Release Notes
theskumar/python-dotenv (python-dotenv)
v0.21.1Compare Source
Added
getandlistcommands when env file can't be opened (#441 by [@bbc2])Fixed
magic(#440 by [@bbc2])v0.21.0Compare Source
Added
load_dotenvfunction now returnsFalse. (#388 by [@larsks])Fixed
openinstead ofio.open. (#389 by [@rabinadk1])parse_itto Related Projects (#410 by [@naorlivne])v0.20.0Compare Source
Added
encoding(Optional[str]) parameter toget_key,set_keyandunset_key.(#379 by [@bbc2])
Fixed
entry_pointsparameter ofsetuptools.setup(#376 by[@mgorny]).
v0.19.2Compare Source
Fixed
set_key, add missing newline character before new entry if necessary. (#361 by[@bbc2])
v0.19.1Compare Source
Added
v0.19.0Compare Source
Changed
by [@bbc2]).
Added
dotenv_pathargument ofset_keyandunset_keynow has a type ofUnion[str, os.PathLike]instead of justos.PathLike(#347 by [@bbc2]).streamargument ofload_dotenvanddotenv_valuescan now be a text stream(
IO[str]), which includes values likeio.StringIO("foo")andopen("file.env", "r")(#348 by [@bbc2]).v0.18.0Compare Source
Changed
ValueErrorifquote_modeisn't one ofalways,autoorneverinset_key(#330 by [@bbc2]).set_keyordotenv set <key> <value>(#330by [@bbc2]):
automode, don't add quotes if the value is only made of alphanumeric characters(as determined by
string.isalnum).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.
This PR has been generated by Renovate Bot.
7f5a270f70to26b7e1e0f126b7e1e0f1to751db35361751db35361to9b2b7c0e849b2b7c0e84tof2ee95211af2ee95211ato6ddd34369c6ddd34369cto7a0f2434db