17
0

Accepting request 1336261 from devel:languages:python

- Update to 1.2.2:
  ## Added
  * Support for Python 3.14, including the free-threaded (3.14t) build.
  ## Changed
  * The dotenv run command now forwards flags directly to the specified
    command
  * Dropped Support for Python 3.9.
  ## Fixed
  * Improved set_key and unset_key behavior when interacting with symlinks
  * Corrected the license specifier and added missing Python 3.14 classifiers
    in package metadata
  * Move more config to pyproject.toml, removed setup.cfg
  * Add support for reading .env from FIFOs (Unix)
  * Upgrade build system to use PEP 517 & PEP 518 to use build and
    pyproject.toml
  * Add support for disabling of load_dotenv() using PYTHON_DOTENV_DISABLED
    env var
  ## Breaking Changes
  * dotenv.set_key and dotenv.unset_key used to follow symlinks in some
    situations. This is no longer the case.
  * In the CLI, set and unset used to follow symlinks in some situations.
    This is no longer the case.
  * dotenv.set_key, dotenv.unset_key and the CLI commands set and unset used
    to reset the file mode of the modified .env file to 0o600 in 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,
    mode 0o600 is used.
- Drop patch avoid-click-8.2-bug.patch, no longer needed.

OBS-URL: https://build.opensuse.org/request/show/1336261
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dotenv?expand=0&rev=20
This commit is contained in:
2026-03-05 16:14:05 +00:00
committed by Git OBS Bridge
5 changed files with 38 additions and 21 deletions

View File

@@ -1,13 +0,0 @@
Index: python-dotenv-1.1.0/src/dotenv/cli.py
===================================================================
--- python-dotenv-1.1.0.orig/src/dotenv/cli.py
+++ python-dotenv-1.1.0/src/dotenv/cli.py
@@ -60,6 +60,8 @@ def stream_file(path: os.PathLike) -> It
yield stream
except OSError as exc:
print(f"Error opening env file: {exc}", file=sys.stderr)
+ # Work around https://github.com/pallets/click/issues/2913
+ sys.stderr.flush()
exit(2)

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:94850b99f1b4705b25abecff1471f4d82450758bf2864f12b04df940feb66cd5
size 28372

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:58f0f1016f35872bf90649f28d8777ee4897bb88f9075c315f71dc485410002a
size 32423

View File

@@ -1,3 +1,35 @@
-------------------------------------------------------------------
Wed Mar 4 04:59:06 UTC 2026 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.2.2:
## Added
* Support for Python 3.14, including the free-threaded (3.14t) build.
## Changed
* The dotenv run command now forwards flags directly to the specified
command
* Dropped Support for Python 3.9.
## Fixed
* Improved set_key and unset_key behavior when interacting with symlinks
* Corrected the license specifier and added missing Python 3.14 classifiers
in package metadata
* Move more config to pyproject.toml, removed setup.cfg
* Add support for reading .env from FIFOs (Unix)
* Upgrade build system to use PEP 517 & PEP 518 to use build and
pyproject.toml
* Add support for disabling of load_dotenv() using PYTHON_DOTENV_DISABLED
env var
## Breaking Changes
* dotenv.set_key and dotenv.unset_key used to follow symlinks in some
situations. This is no longer the case.
* In the CLI, set and unset used to follow symlinks in some situations.
This is no longer the case.
* dotenv.set_key, dotenv.unset_key and the CLI commands set and unset used
to reset the file mode of the modified .env file to 0o600 in 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,
mode 0o600 is used.
- Drop patch avoid-click-8.2-bug.patch, no longer needed.
-------------------------------------------------------------------
Fri Sep 26 08:20:06 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-dotenv
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,19 +24,17 @@
%endif
%{?sle15_python_module_pythons}
Name: python-python-dotenv
Version: 1.1.1
Version: 1.2.2
Release: 0
Summary: Python library for .env support
License: BSD-3-Clause
URL: https://github.com/theskumar/python-dotenv
Source: https://github.com/theskumar/python-dotenv/archive/v%{version}.tar.gz#/python-dotenv-%{version}.tar.gz
# PATCH-FIX-OPENSUSE Avoid upstream click 8.2 bug -- gh#pallets/click#2913
Patch0: avoid-click-8.2-bug.patch
BuildRequires: %{python_module base >= 3.10}
BuildRequires: %{python_module click >= 5.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 3.0.5}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module sh >= 2.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros