Bump environs from 11.0.0 to 14.1.0
Bumps environs from 11.0.0 to 14.1.0.
Changelog
Sourced from environs's changelog.
14.1.0 (2025-01-10)
Features:
- Add
prefixparameter toEnvconstructor (#384). Thanks arthurc0102 for the suggestion.- Re-export
validatemodule from marshmallow (#385).Bug fixes:
- Typing: Fix typing for
Env.enumto allowby_valueto be passed (#386).14.0.0 (2025-01-07)
Features:
- Add
envsingleton (#194). Thanks AndBondStyle for the suggestion.from environs import envChanges:
defaultvalues are expected to be their in their deserialized form. Backwards-incompatible: Passing serialized values todefaultis no longer supported.from datetime import date, timedelta import environsDO
enable_login = env.bool("ENABLE_LOGIN", True) ttl = env.timedelta("TTL", default=timedelta(seconds=600)) release_date = env.date("RELEASE", date(2025, 1, 7)) numbers = env.list("FOO", [1.0, 2.0, 3.0], subcast=float)
DON'T
enable_login = env.bool("ENABLE_LOGIN", "true") ttl = env.timedelta("TTL", default=600) release_date = env.date("RELEASE", "2025-01-07") numbers = env.list("NUMBERS", "1,2,42", subcast=float)
The exceptions to this rule are the Django-related functions, which accept string defaults.
... (truncated)
Commits
015b5dcBump version and update changelogf6a0115Re-export validate module from marshmallow (#391)8b1228dRename enums (#390)cafc8deTest by_value; run mypy against tests (#389)e2a1336Fix typo1c8d64cAdd by_value doc to changelog0862487Fix typing for Env.enum; document by_value (#388)d175948Add prefix parameter to Env constructor (#387)b996d9dRemove unnecessary Enum field (#383)a0cadc1Fix enum doc; remove badge- 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 mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@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)