Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency environs to v14 #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 9, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
environs (changelog) ==9.3.2 -> ==14.1.0 age adoption passing confidence

Release Notes

sloria/environs (environs)

v14.1.0

Compare Source

Features:

  • Add prefix parameter to Env constructor (#​384).
    Thanks arthurc0102
    for the suggestion.
  • Re-export validate module from marshmallow (#​385).

Bug fixes:

  • Typing: Fix typing for Env.enum to allow by_value to be passed (#​386).

v14.0.0

Compare Source

Features:

from environs import env

Changes:

  • default values are expected to be their in their deserialized form.
    Backwards-incompatible: Passing serialized values to default
    is no longer supported.
from datetime import date, timedelta
import environs

v13.0.0

Compare Source

Features:

  • Typing: Add type hints for parser methods (#​367).
    Thanks OkeyDev for the PR.
  • Add by_value param to Env.enum. Pass by_value=True to parse Enum by values instead of names.

Other changes:

  • Drop support for marshmallow<3.18.0.
  • Backwards-incompatible: Remove load_default param from parser methods. Use default instead.
  • Backwards-incompatible: Rename Env.enum's type param to enum.
  • Backwards-incompatible: Remove ignore_case param from Env.enum.
  • Backwards-incompatible: Remove
    allow_none, error_messages, and metadata params from parser methods.

v12.0.0

Compare Source

Features:

  • Env.enum allows passing an Enum as default.

Other changes:

  • Support marshmallow 4.
  • Support Python 3.9-3.13.
  • Backwards-incompatible: Make Field classes private. Users should
    not need to access these.

v11.2.1

Compare Source

Bug fixes:

  • Fix passing non-string default values to Env.timedelta (#​369).
    Thanks tcleonard for reporting and
    thanks ddelange for the PR.
  • Fix Env.read_env(recurse=True) so that it returns as soon as a .env
    file is found (#​370).
    Thanks senese for the PR.

v11.2.0

Compare Source

Features:

v11.1.0

Compare Source

Features:

  • Add return_path argument to Env.read_env to return the path of the
    parsed file (#​362).
    Thanks senese for the suggestion and PR.
    NOTE: This is added as a backwards-compatible change that is scheduled to be
    removed in 12.0.0. The path will stored as an attribute of Env.

v11.0.0

Compare Source

Fixes:

  • Prevent DeprecationWarning getting raised by marshmallow 3.21.0 (:issue:333).

Other changes:

  • Remove subcast_key argument of env.dict. Use subcast_keys instead.
  • Bump minimum required marshmallow version to 3.13.0.
  • Remove missing argument from Env methods. Use default instead.
  • Remove subcast argument from Env methods that don't use it.
  • Backwards-incompatible: Remove environs.__version__ variable.
    Use importlib.metadata.version("environs") instead.

v10.3.0

Compare Source

Features:

  • Env.__repr__ and Env.__str__ no longer display environment variables, to prevent accidental exfiltration of sensitive data (#​292).
    Thanks mro-rhansen2 for the suggestion.

Bug fixes:

v10.2.0

Compare Source

Features:

  • env.read_env returns False if file not found (#​294).
    Thanks rptaylor for the suggestion.

v10.1.0

Compare Source

Features:

Other changes:

  • Test against Python 3.12.

v10.0.0

Compare Source

Features:

Other changes:

  • Backwards-incompatible: Drop support for EOL Python 3.6 and 3.7.
  • Test against Python 3.11.
  • Migrate to setup.cfg. Thanks deronnax for the PR.

v9.5.0

Compare Source

Features:

  • Allow callables or custom marshmallow fields to be passed to subcast, subcast_keys, and subcast_values. (#​241).
    Thanks bvanelli for the PR.

v9.4.0

Compare Source

Bug fixes:

  • Address warning about passing metadata in newer versions of marshmallow.

Other changes:

  • Test against Python 3.10.

v9.3.5

Compare Source

Bug fixes:

  • Fix env.url and other parsers that take field keyword arguments (#​227).
    Thanks KochankovID for the PR.

v9.3.4

Compare Source

Bug fixes:

  • Allow default for env.path to be a pathlib.Path (#​228).
    Thanks KochankovID for the PR.

v9.3.3

Compare Source

Bug fixes:

  • Fix compatibility with marshmallow>=3.13.0
    so that no DeprecationWarnings are raised (#​224).

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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/environs-14.x branch from 31e43ed to f582106 Compare January 11, 2025 04:00
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.

0 participants