14 Commits

Author SHA256 Message Date
7a094bef16 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
bcad03e2b4 - 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
f82d465a5f 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
2ace1bf37b - 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
7720a10c4f 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
eb7e59bcfb 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
834247ddb8 - 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
73cb23d3ff Accepting request 1285894 from home:benoit_monin:branches:devel:languages:python
update to version 0.13.4

OBS-URL: https://build.opensuse.org/request/show/1285894
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
180befb599 Accepting request 1271295 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1271295
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bottle?expand=0&rev=30
2025-04-22 15:25:59 +00:00
0f487dec00 Accepting request 1271171 from home:benoit_monin:branches:devel:languages:python
update to version 0.13.3

OBS-URL: https://build.opensuse.org/request/show/1271171
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bottle?expand=0&rev=59
2025-04-22 07:39:45 +00:00
f3ce142c1d Accepting request 1207849 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1207849
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bottle?expand=0&rev=29
2024-10-15 12:57:34 +00:00
b44501b1d0 Accepting request 1207461 from home:benoit_monin:branches:devel:languages:python
- update to version 0.13.2
- add bottle script as alternative alongside bottle.py

OBS-URL: https://build.opensuse.org/request/show/1207461
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bottle?expand=0&rev=57
2024-10-14 08:26:58 +00:00
14df83b607 Accepting request 1199619 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1199619
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bottle?expand=0&rev=28
2024-09-25 19:51:46 +00:00
79684f9a7e Accepting request 1199544 from home:glaubitz:branches:devel:languages:python
- Update to version 0.13.1
  * Added DeprecationWarning warning for Python 2
  * fix: Bottle.__setattr__ breaks data descriptors
- from version 0.13.0
  * This release contains breaking changers, please read the notes below
  * Dropped support for Python versions that reached their end-of-life.
  * The documented API of the :class:`ConfigDict` class is now considered
    stable and ready to use.
  * Plugins with the old API (``api=1`` or no api attribute) will no longer work.
  * Parameter order of :meth:`Bottle.mount` changed in 0.10.
    The old order will now result in an error instead of a warning.
  * The :class:`ConfigDict` class was introduced in 0.11 and changed during 0.12.
    These changes are now final.
  * Attribute access and assignment was removed due to high overhead and limited usability.
  * Namespaced sub-instance creation was removed. ``config["a"]["b"]``
    has a high overhead and little benefit over ``config["a.b"]``.
  * :class:`ConfigDict` instances are no longer callable.
    This was a shortcut for :meth:`ConfigDict.update`.
  * :class:`ConfigDict` constructor no longer accepts any parameters.
    Use the `load_*` methods instead.
  * Bottle 0.12 changed some aspects of the Simple Template Engine.
    These changes are now final and the old syntax will now longer work.
  * The magic ``{{rebase()}}`` call was replaced by a ``base`` variable. Example: ``{{base}}``
  * In STPL Templates, the ``rebase`` and ``include`` keywords were replaced with functions in 0.12.
  * PEP-263 encoding strings are no longer recognized. Templates are always utf-8.
  * The 'geventSocketIO' server adapter was removed without notice. It did not work anyway.
  * Signed cookies now use a stronger HMAC algorithm by default. This will result
    in old cookies to appear invalid after the update. Pass an explicit ``digestmod=hashlib.md5``
    to :meth:`Request.get_cookie <BaseRequest.get_cookie>` and :meth:`Response.set_cookie
    <BaseResponse.set_cookie>` to get the old behavior.

OBS-URL: https://build.opensuse.org/request/show/1199544
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bottle?expand=0&rev=55
2024-09-09 08:31:17 +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__