14
0
forked from pool/python-bottle

6 Commits

Author SHA256 Message Date
3a431c3485 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
46e218b7f3 update to version 0.13.3
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
3ab9843d0f 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
2fa1b9e1c9 - update to version 0.13.2
- add bottle script as alternative alongside bottle.py

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
1b358fefd2 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
44deb1e4c8 - 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/package/show/devel:languages:python/python-bottle?expand=0&rev=55
2024-09-09 08:31:17 +00:00
4 changed files with 8 additions and 47 deletions

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

Binary file not shown.

View File

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

View File

@@ -1,26 +1,3 @@
-------------------------------------------------------------------
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,14 +16,9 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-bottle
Version: 0.13.4
Version: 0.13.3
Release: 0
Summary: WSGI framework for small web applications
License: MIT
@@ -35,13 +30,8 @@ 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
@@ -70,35 +60,29 @@ 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
%python_install_alternative bottle.py bottle
%postun
%python_uninstall_alternative bottle.py
%python_uninstall_alternative bottle
%python_uninstall_alternative bottle.py 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__