diff --git a/avoid-click-8.2-bug.patch b/avoid-click-8.2-bug.patch deleted file mode 100644 index be06a61..0000000 --- a/avoid-click-8.2-bug.patch +++ /dev/null @@ -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) - - diff --git a/python-dotenv-1.1.1.tar.gz b/python-dotenv-1.1.1.tar.gz deleted file mode 100644 index 8cc291b..0000000 --- a/python-dotenv-1.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:94850b99f1b4705b25abecff1471f4d82450758bf2864f12b04df940feb66cd5 -size 28372 diff --git a/python-dotenv-1.2.2.tar.gz b/python-dotenv-1.2.2.tar.gz new file mode 100644 index 0000000..4262224 --- /dev/null +++ b/python-dotenv-1.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58f0f1016f35872bf90649f28d8777ee4897bb88f9075c315f71dc485410002a +size 32423 diff --git a/python-python-dotenv.changes b/python-python-dotenv.changes index 60bfeef..bab3a59 100644 --- a/python-python-dotenv.changes +++ b/python-python-dotenv.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +Wed Mar 4 04:59:06 UTC 2026 - Steve Kowalik + +- 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 diff --git a/python-python-dotenv.spec b/python-python-dotenv.spec index 01c314d..c9a4741 100644 --- a/python-python-dotenv.spec +++ b/python-python-dotenv.spec @@ -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