Bump python-dotenv from 1.2.1 to 1.2.2
Bumps python-dotenv from 1.2.1 to 1.2.2.
Release notes
Sourced from python-dotenv's releases.
v1.2.2
Added
- Support for Python 3.14, including the free-threaded (3.14t) build. (#)
Changed
- The
dotenv runcommand now forwards flags directly to the specified command by@bbc2in theskumar/python-dotenv#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_keyandunset_keybehavior when interacting with symlinks by@bbc2in #790c5- Corrected the license specifier and added missing Python 3.14 classifiers in package metadata by
@JYOuyangin theskumar/python-dotenv#590Breaking Changes
dotenv.set_keyanddotenv.unset_keyused to follow symlinks in some situations. This is no longer the case. For that behavior to be restored in all cases,follow_symlinks=Trueshould be used.In the CLI,
setandunsetused to follow symlinks in some situations. This is no longer the case.
dotenv.set_key,dotenv.unset_keyand the CLI commandssetandunsetused to reset the file mode of the modified .env file to0o600in 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, mode0o600is used.Misc
- skip 000 permission tests for root user by
@burnout-projectsin theskumar/python-dotenv#561- Bump actions/checkout from 5 to 6 in the github-actions group by
@dependabot[bot] in theskumar/python-dotenv#593- Add Windows testing to CI by
@bbc2in theskumar/python-dotenv#604- Improve workflow efficiency with best practices by
@theskumarin theskumar/python-dotenv#609- Remove the use of
shin tests by@bbc2in theskumar/python-dotenv#612New Contributors
@JYOuyangmade their first contribution in theskumar/python-dotenv#590@burnout-projectsmade their first contribution in theskumar/python-dotenv#561@cpackham-atlnzmade their first contribution in theskumar/python-dotenv#597Full Changelog: https://github.com/theskumar/python-dotenv/compare/v1.2.1...v1.2.2
Changelog
Sourced from python-dotenv's changelog.
[1.2.2] - 2026-03-01
Added
- Support for Python 3.14, including the free-threaded (3.14t) build. (#588)
Changed
- The
dotenv runcommand 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.
- Dropped Support for Python 3.9.
Fixed
- Improved
set_keyandunset_keybehavior when interacting with symlinks by [@bbc2] in [790c5c0]- Corrected the license specifier and added missing Python 3.14 classifiers in package metadata by [
@JYOuyang] in #590Breaking Changes
dotenv.set_keyanddotenv.unset_keyused to follow symlinks in some situations. This is no longer the case. For that behavior to be restored in all cases,follow_symlinks=Trueshould be used.In the CLI,
setandunsetused to follow symlinks in some situations. This is no longer the case.
dotenv.set_key,dotenv.unset_keyand the CLI commandssetandunsetused to reset the file mode of the modified .env file to0o600in 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, mode0o600is used.
Commits
36004e0Bump version: 1.2.1 → 1.2.2eb20252docs: update changelog for v1.2.2790c5c0Merge commit from fork43340daRemove the use ofshin tests (#612)09d7ceedocs: clarify override behavior and document FIFO support (#610)c8de288ci: improve workflow efficiency with best practices (#609)7bd9e3dAdd Windows testing to CI (#604)1baaf04Drop Python 3.9 support and update to PyPy 3.11 (#608)4a22cf8ci: enable testing on Python 3.14t (free-threaded) (#588)e2e8e77Fix license specifier (#597)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the Security Alerts page.
Summary by cubic
Bumps python-dotenv from 1.2.1 to 1.2.2, adding support for Python 3.14 and changing how set_key and unset_key handle symlinks and file modes.
Migration
dotenv.set_keyanddotenv.unset_keyno longer follow symlinks by default; passfollow_symlinks=Trueto restore that behavior.- The CLI
setandunsetcommands likewise no longer follow symlinks. - Modified
.envfiles keep their original file mode instead of being reset to0o600;0o600is used only when creating a new file.