1
0

6 Commits

Author SHA256 Message Date
91c8e16ecd Accepting request 1291274 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291274
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dotenv?expand=0&rev=17
2025-07-09 15:26:10 +00:00
88474efaba - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dotenv?expand=0&rev=36
2025-07-08 13:09:26 +00:00
e9c52f1ce4 Accepting request 1277293 from devel:languages:python
- Add patch avoid-click-8.2-bug.patch:
  * Work around an upstream click 8.2.0 bug.
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1277293
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dotenv?expand=0&rev=16
2025-05-15 14:59:46 +00:00
6a73714dfd - Add patch avoid-click-8.2-bug.patch:
* Work around an upstream click 8.2.0 bug.
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dotenv?expand=0&rev=34
2025-05-14 05:41:57 +00:00
1d65a77f1e Accepting request 1269223 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1269223
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dotenv?expand=0&rev=15
2025-04-15 14:45:15 +00:00
d45fbd46cb - update to 1.1.0:
* Add a security policy
  * Enhance dotenv run: Switch to execvpe for better resource management and
    signal handling
  * Add Python 3.13 trove classifier
  * Add support for python 3.13 and drop 3.8
  * docs: Update README.md
  * Some more s/Python-dotenv/python-dotenv/
  * add _is_debugger so load_dotenv will work in pdb

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dotenv?expand=0&rev=32
2025-04-14 10:10:30 +00:00
5 changed files with 57 additions and 18 deletions

13
avoid-click-8.2-bug.patch Normal file
View File

@@ -0,0 +1,13 @@
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)

BIN
python-dotenv-1.0.1.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
python-dotenv-1.1.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,28 @@
-------------------------------------------------------------------
Tue Jul 8 13:08:26 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Wed May 14 05:41:25 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch avoid-click-8.2-bug.patch:
* Work around an upstream click 8.2.0 bug.
- Switch to pyproject macros.
-------------------------------------------------------------------
Wed Apr 9 17:26:29 UTC 2025 - Richard Rahl <rrahl0@opensuse.org>
- update to 1.1.0:
* Add a security policy
* Enhance dotenv run: Switch to execvpe for better resource management and
signal handling
* Add Python 3.13 trove classifier
* Add support for python 3.13 and drop 3.8
* docs: Update README.md
* Some more s/Python-dotenv/python-dotenv/
* add _is_debugger so load_dotenv will work in pdb
-------------------------------------------------------------------
Thu Feb 1 21:23:28 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-dotenv
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,25 +16,29 @@
#
%define skip_python2 1
# rubygem-dotenv also provides executable dotenv
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-python-dotenv
Version: 1.0.1
Version: 1.1.0
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 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: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-click >= 5.0
# rubygem-dotenv also provides executable dotenv
Requires(post): update-alternatives
Requires(postun): update-alternatives
Suggests: python-jupyter_ipython
# There is a very similar Python package which also used `dotenv` namespace
Conflicts: python-dotenv
@@ -45,15 +49,15 @@ BuildArch: noarch
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}
@@ -69,17 +73,14 @@ $python -m pytest -v -k "not ipython"
}
mv %{buildroot}%{_bindir}/dotenv.orig %{buildroot}%{_bindir}/dotenv
%post
%python_install_alternative dotenv
%postun
%python_uninstall_alternative dotenv
%pre
%python_libalternatives_reset_alternative dotenv
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/dotenv
%{python_sitelib}/dotenv/
%{python_sitelib}/python_dotenv*/
%{python_sitelib}/python_dotenv-%{version}.dist-info
%changelog