Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-python-dotenv for 
openSUSE:Factory checked in at 2025-05-15 16:59:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-dotenv (Old)
 and      /work/SRC/openSUSE:Factory/.python-python-dotenv.new.30101 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-python-dotenv"

Thu May 15 16:59:46 2025 rev:16 rq:1277293 version:1.1.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-python-dotenv/python-python-dotenv.changes    
    2025-04-15 16:48:22.701315529 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-python-dotenv.new.30101/python-python-dotenv.changes
     2025-05-15 17:00:18.703521959 +0200
@@ -1,0 +2,7 @@
+Wed May 14 05:41:25 UTC 2025 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Add patch avoid-click-8.2-bug.patch:
+  * Work around an upstream click 8.2.0 bug.
+- Switch to pyproject macros.
+
+-------------------------------------------------------------------

New:
----
  avoid-click-8.2-bug.patch

BETA DEBUG BEGIN:
  New:
- Add patch avoid-click-8.2-bug.patch:
  * Work around an upstream click 8.2.0 bug.
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-python-dotenv.spec ++++++
--- /var/tmp/diff_new_pack.G6fv06/_old  2025-05-15 17:00:19.343548809 +0200
+++ /var/tmp/diff_new_pack.G6fv06/_new  2025-05-15 17:00:19.343548809 +0200
@@ -16,7 +16,6 @@
 #
 
 
-%define skip_python2 1
 %{?sle15_python_module_pythons}
 Name:           python-python-dotenv
 Version:        1.1.0
@@ -25,10 +24,14 @@
 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 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
 Requires:       python-click >= 5.0
@@ -45,15 +48,15 @@
 Add .env support to your Django/Flask apps in development and deployments.
 
 %prep
-%setup -q -n python-dotenv-%{version}
+%autosetup -p1 -n python-dotenv-%{version}
 
 %build
 export LANG=C.UTF-8
-%python_build
+%pyproject_wheel
 
 %install
 export LANG=C.UTF-8
-%python_install
+%pyproject_install
 %python_clone -a %{buildroot}%{_bindir}/dotenv
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
@@ -80,5 +83,5 @@
 %license LICENSE
 %python_alternative %{_bindir}/dotenv
 %{python_sitelib}/dotenv/
-%{python_sitelib}/python_dotenv*/
+%{python_sitelib}/python_dotenv-%{version}.dist-info
 

++++++ avoid-click-8.2-bug.patch ++++++
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)
 
 

Reply via email to