8 Commits

Author SHA256 Message Date
cbca512587 Accepting request 1298861 from devel:languages:python
- Make the libalternatives transition conditional

OBS-URL: https://build.opensuse.org/request/show/1298861
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bottle?expand=0&rev=33
2025-08-12 15:03:34 +00:00
60fd785310 - Make the libalternatives transition conditional
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bottle?expand=0&rev=67
2025-08-11 14:02:07 +00:00
73d3ea3170 Accepting request 1293288 from devel:languages:python
- Do not put bottle.py in /usr/bin, bsc#1245790

OBS-URL: https://build.opensuse.org/request/show/1293288
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bottle?expand=0&rev=32
2025-07-15 14:43:11 +00:00
25e44016be - Do not put bottle.py in /usr/bin, bsc#1245790
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bottle?expand=0&rev=65
2025-07-15 07:16:09 +00:00
d8f675b234 Accepting request 1286300 from devel:languages:python
- Convert to libalternatives
- update to version 0.13.4:
  * fix: Route __repr__ and get_undecorated_callback behavior with
    __call__ (#1488)
  * fix: Workaround for uv/uvx bug (#1486)

OBS-URL: https://build.opensuse.org/request/show/1286300
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bottle?expand=0&rev=31
2025-06-20 14:48:21 +00:00
423a5ddd7d fix libalternatives call
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bottle?expand=0&rev=63
2025-06-17 08:46:47 +00:00
8269322eef - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bottle?expand=0&rev=62
2025-06-17 08:43:55 +00:00
290506a645 update to version 0.13.4
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bottle?expand=0&rev=61
2025-06-17 06:48:37 +00:00
4 changed files with 47 additions and 8 deletions

BIN
bottle-0.13.3.tar.gz (Stored with Git LFS)

Binary file not shown.

3
bottle-0.13.4.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:787e78327e12b227938de02248333d788cfe45987edca735f8f88e03472c3f47
size 98717

View File

@@ -1,3 +1,26 @@
-------------------------------------------------------------------
Mon Aug 11 14:01:21 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Make the libalternatives transition conditional
-------------------------------------------------------------------
Tue Jul 15 06:52:35 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Do not put bottle.py in /usr/bin, bsc#1245790
-------------------------------------------------------------------
Tue Jun 17 08:43:33 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Sun Jun 15 12:06:40 UTC 2025 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 0.13.4:
* fix: Route __repr__ and get_undecorated_callback behavior with
__call__ (#1488)
* fix: Workaround for uv/uvx bug (#1486)
-------------------------------------------------------------------
Mon Apr 21 13:26:32 UTC 2025 - Benoît Monin <benoit.monin@gmx.fr>

View File

@@ -16,9 +16,14 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-bottle
Version: 0.13.3
Version: 0.13.4
Release: 0
Summary: WSGI framework for small web applications
License: MIT
@@ -30,8 +35,13 @@ BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
BuildArch: noarch
%python_subpackages
@@ -60,29 +70,35 @@ This subpackage contains the PDF documentation for %{name}.
%prep
%autosetup -p1 -n bottle-%{version}
cp %{SOURCE1} .
chmod 644 bottle.py
sed -i '1{ /^#!/d }' bottle.py
%build
%pyproject_wheel
%install
%pyproject_install
rm -rf %{buildroot}%{_bindir}/bottle.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/bottle.py
%python_clone -a %{buildroot}%{_bindir}/bottle
%check
%pyunittest -v
%pre
%python_libalternatives_reset_alternative bottle.py
%python_libalternatives_reset_alternative bottle
%post
%python_install_alternative bottle.py bottle
%python_install_alternative bottle
%postun
%python_uninstall_alternative bottle.py bottle
%python_uninstall_alternative bottle.py
%python_uninstall_alternative bottle
%files %{python_files}
%license LICENSE
%doc README.rst
%python_alternative %{_bindir}/bottle.py
%python_alternative %{_bindir}/bottle
%{python_sitelib}/bottle.py*
%pycache_only %{python_sitelib}/__pycache__