Skip to content

Conversation

@pyup-bot
Copy link
Collaborator

@pyup-bot pyup-bot commented Dec 5, 2025

This PR pins python-dotenv to the latest release 1.2.1.

Changelog

1.2.1

- Move more config to `pyproject.toml`, removed `setup.cfg`
- Add support for reading `.env` from FIFOs (Unix) by [sidharth-sudhir] in [586]

0.10.3

- Improve interactive mode detection ([andrewsmith])([183]).
- Refactor parser to fix parsing inconsistencies ([bbc2])([170]).
- Interpret escapes as control characters only in double-quoted strings.
- Interpret `` as start of comment only if preceded by whitespace.

0.10.2

- Add type hints and expose them to users ([qnighy])([172])
- `load_dotenv` and `dotenv_values` now accept an `encoding` parameter, defaults to `None`
([theskumar])([earlbread])([161])
- Fix `str`/`unicode` inconsistency in Python 2: values are always `str` now. ([bbc2])([121])
- Fix Unicode error in Python 2, introduced in 0.10.0. ([bbc2])([176])

0.10.1

- Fix parsing of variable without a value ([asyncee])([bbc2])([158])

0.10.0

- Add support for UTF-8 in unquoted values ([bbc2])([148])
- Add support for trailing comments ([bbc2])([148])
- Add backslashes support in values ([bbc2])([148])
- Add support for newlines in values ([bbc2])([148])
- Force environment variables to str with Python2 on Windows ([greyli])
- Drop Python 3.3 support ([greyli])
- Fix stderr/-out/-in redirection ([venthur])

0.9.0

- Add `--version` parameter to cli ([venthur])
- Enable loading from current directory ([cjauvin])
- Add 'dotenv run' command for calling arbitrary shell script with .env ([venthur])

0.8.1

-   Add tests for docs ([Flimm])
-   Make 'cli' support optional. Use `pip install python-dotenv[cli]`. ([theskumar])

0.8.0

-   `set_key` and `unset_key` only modified the affected file instead of
 parsing and re-writing file, this causes comments and other file
 entact as it is.
-   Add support for `export` prefix in the line.
-   Internal refractoring ([theskumar])
-   Allow `load_dotenv` and `dotenv_values` to work with `StringIO())` ([alanjds])([theskumar])([78])

0.7.1

-   Remove hard dependency on iPython ([theskumar])

0.7.0

-   Add support to override system environment variable via .env.
 ([milonimrod](https://github.com/milonimrod))
 ([\63](https://github.com/theskumar/python-dotenv/issues/63))
-   Disable ".env not found" warning by default
 ([maxkoryukov](https://github.com/maxkoryukov))
 ([\57](https://github.com/theskumar/python-dotenv/issues/57))

0.6.5

-   Add support for special characters `\`.
 ([pjona](https://github.com/pjona))
 ([\60](https://github.com/theskumar/python-dotenv/issues/60))

0.6.4

-   Fix issue with single quotes ([Flimm])
 ([\52](https://github.com/theskumar/python-dotenv/issues/52))

0.6.3

-   Handle unicode exception in setup.py
 ([\46](https://github.com/theskumar/python-dotenv/issues/46))

0.6.2

-   Fix dotenv list command ([ticosax](https://github.com/ticosax))
-   Add iPython Support
 ([tillahoffmann](https://github.com/tillahoffmann))

0.6.0

-   Drop support for Python 2.6
-   Handle escaped characters and newlines in quoted values. (Thanks
 [iameugenejo](https://github.com/iameugenejo))
-   Remove any spaces around unquoted key/value. (Thanks
 [paulochf](https://github.com/paulochf))
-   Added POSIX variable expansion. (Thanks
 [hugochinchilla](https://github.com/hugochinchilla))

0.5.1

-   Fix `find_dotenv` - it now start search from the file where this
 function is called from.

0.5.0

-   Add `find_dotenv` method that will try to find a `.env` file.
 (Thanks [isms](https://github.com/isms))

0.4.0

-   cli: Added `-q/--quote` option to control the behaviour of quotes
 around values in `.env`. (Thanks
 [hugochinchilla](https://github.com/hugochinchilla)).
-   Improved test coverage.

<!-- PR LINKS -->
[78]: https://github.com/theskumar/python-dotenv/issues/78
[121]: https://github.com/theskumar/python-dotenv/issues/121
[148]: https://github.com/theskumar/python-dotenv/issues/148
[158]: https://github.com/theskumar/python-dotenv/issues/158
[170]: https://github.com/theskumar/python-dotenv/issues/170
[172]: https://github.com/theskumar/python-dotenv/issues/172
[176]: https://github.com/theskumar/python-dotenv/issues/176
[183]: https://github.com/theskumar/python-dotenv/issues/183
[359]: https://github.com/theskumar/python-dotenv/issues/359
[469]: https://github.com/theskumar/python-dotenv/issues/469
[456]: https://github.com/theskumar/python-dotenv/issues/456
[466]: https://github.com/theskumar/python-dotenv/issues/466
[454]: https://github.com/theskumar/python-dotenv/issues/454
[474]: https://github.com/theskumar/python-dotenv/issues/474
[523]: https://github.com/theskumar/python-dotenv/issues/523
[553]: https://github.com/theskumar/python-dotenv/issues/553
[569]: https://github.com/theskumar/python-dotenv/issues/569
[583]: https://github.com/theskumar/python-dotenv/issues/583
[586]: https://github.com/theskumar/python-dotenv/issues/586

<!-- contributors -->
[23f3001135]: https://github.com/23f3001135
[EpicWink]: https://github.com/EpicWink
[Flimm]: https://github.com/Flimm
[Nicals]: https://github.com/Nicals
[Nougat-Waffle]: https://github.com/Nougat-Waffle
[Qwerty-133]: https://github.com/Qwerty-133
[alanjds]: https://github.com/alanjds
[altendky]: https://github.com/altendky
[andrewsmith]: https://github.com/andrewsmith
[asyncee]: https://github.com/asyncee
[bbc2]: https://github.com/bbc2
[befeleme]: https://github.com/befeleme
[cjauvin]: https://github.com/cjauvin
[eaf]: https://github.com/eaf
[earlbread]: https://github.com/earlbread
[eekstunt]: https://github.com/eekstunt
[eggplants]: https://github.com/eggplants
[ekohl]: https://github.com/ekohl
[elbehery95]: https://github.com/elbehery95
[eumiro]: https://github.com/eumiro
[freddyaboulton]: https://github.com/freddyaboulton
[gergelyk]: https://github.com/gergelyk
[gongqingkui]: https://github.com/gongqingkui
[greyli]: https://github.com/greyli
[harveer07]: https://github.com/harveer07
[jadutter]: https://github.com/jadutter
[jankislinger]: https://github.com/jankislinger
[jctanner]: https://github.com/jctanner
[larsks]: https://github.com/larsks
[lsmith77]: https://github.com/lsmith77
[matthewfranglen]: https://github.com/matthewfranglen
[mgorny]: https://github.com/mgorny
[naorlivne]: https://github.com/naorlivne
[qnighy]: https://github.com/qnighy
[rabinadk1]: https://github.com/rabinadk1
[randomseed42]: https://github.com/zueve
[sammck]: https://github.com/sammck
[samwyma]: https://github.com/samwyma
[sidharth-sudhir]: https://github.com/sidharth-sudhir
[snobu]: https://github.com/snobu
[techalchemy]: https://github.com/techalchemy
[theGOTOguy]: https://github.com/theGOTOguy
[theskumar]: https://github.com/theskumar
[ulyssessouza]: https://github.com/ulyssessouza
[venthur]: https://github.com/venthur
[wrongontheinternet]: https://github.com/wrongontheinternet
[x-yuri]: https://github.com/x-yuri
[yannham]: https://github.com/yannham
[zueve]: https://github.com/zueve

[Unreleased]: https://github.com/theskumar/python-dotenv/compare/v1.2.0...HEAD
Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants