13 Commits

Author SHA256 Message Date
13dbb0b66c Accepting request 1300396 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems

OBS-URL: https://build.opensuse.org/request/show/1300396
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-falcon?expand=0&rev=29
2025-08-20 11:26:19 +00:00
56db6d0738 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-falcon?expand=0&rev=68 2025-08-20 06:49:35 +00:00
62fb66a27b - Convert to libalternatives on SLE-16-based and newer systems
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-falcon?expand=0&rev=67
2025-08-19 12:25:48 +00:00
86c7d5129c Accepting request 1291282 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291282
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-falcon?expand=0&rev=28
2025-07-09 15:27:45 +00:00
7fcebf74b5 - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-falcon?expand=0&rev=65
2025-07-08 13:24:23 +00:00
3987ef8b38 Accepting request 1256063 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1256063
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-falcon?expand=0&rev=27
2025-03-26 20:19:44 +00:00
937f80fbe9 Accepting request 1256021 from home:mcalabkova:branches:devel:languages:python
- Add websockets.patch to fix test failure

OBS-URL: https://build.opensuse.org/request/show/1256021
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-falcon?expand=0&rev=63
2025-03-25 20:52:57 +00:00
9768347acc Accepting request 1236160 from devel:languages:python
- Build doc package just for tumbleweed to remove
  pydata-sphinx-theme requirement

OBS-URL: https://build.opensuse.org/request/show/1236160
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-falcon?expand=0&rev=26
2025-01-12 10:14:02 +00:00
638d3461d3 - Build doc package just for tumbleweed to remove
pydata-sphinx-theme requirement

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-falcon?expand=0&rev=61
2025-01-09 12:05:38 +00:00
dfaad2ac82 Accepting request 1223760 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1223760
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-falcon?expand=0&rev=25
2024-11-13 14:28:29 +00:00
26e1a41bd5 Accepting request 1223640 from home:glaubitz:branches:devel:languages:python
- Update to 4.0.2
  * Running Mypy on code that uses parts of falcon.testing would
    previously lead to errors like:
     "Name "falcon.testing.TestClient" is not defined"
    This has been fixed by explicitly exporting the names that
    are imported into the falcon.testing namespace. (#2387)
  * The printable PDF version of our documentation was enabled
    on Read the Docs. (#2365)

OBS-URL: https://build.opensuse.org/request/show/1223640
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-falcon?expand=0&rev=59
2024-11-12 17:08:27 +00:00
5357ddc88c Accepting request 1220150 from devel:languages:python
- Update to 4.0.1:
  * Overview
    + CPython 3.11 - 3.13 is now fully supported.
    + End-of-life Python 3.5, 3.6 & 3.7 are no longer supported.
    + End-of-life Python 3.8 is no longer actively supported.
    + Type checking support was introduced.
    + Falcon is no longer vendoring the python-mimeparse library.
    + A number of undocumented internal helpers were renamed to start with an
      underscore.
    + A number of previously deprecated methods, attributes and classes have
      now been removed.
    + We decided, on the other hand, to keep the deprecated falcon.API alias
      until Falcon 5.0.
    + The deprecated api_helpers was removed in favor of the app_helpers
      module.
    + The function falcon.http_date_to_dt now validates HTTP dates to have
      the correct timezone set. It now also returns timezone-aware
      datetime.datetime objects.
    + setup.cfg was dropped in favor of consolidating all static project
      configuration in pyproject.toml
  * New & Improved
    + A new path converter falcon.routing.PathConverter
      capable of matching segments that include / was added.
    + Similar to the existing falcon.routing.IntConverter, a new
      falcon.routing.FloatConverter has been added, allowing to convert
      path segments to float.
    + A new method falcon.Request.get_header_as_int was implemented.
    + A new property, falcon.Request.headers_lower, was added to provide a
      unified, self-documenting way to get a copy of all request headers with
      lowercase names to facilitate case-insensitive matching.

OBS-URL: https://build.opensuse.org/request/show/1220150
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-falcon?expand=0&rev=24
2024-11-02 15:11:54 +00:00
60805abe63 - Update to 4.0.1:
* Overview
    + CPython 3.11 - 3.13 is now fully supported.
    + End-of-life Python 3.5, 3.6 & 3.7 are no longer supported.
    + End-of-life Python 3.8 is no longer actively supported.
    + Type checking support was introduced.
    + Falcon is no longer vendoring the python-mimeparse library.
    + A number of undocumented internal helpers were renamed to start with an
      underscore.
    + A number of previously deprecated methods, attributes and classes have
      now been removed.
    + We decided, on the other hand, to keep the deprecated falcon.API alias
      until Falcon 5.0.
    + The deprecated api_helpers was removed in favor of the app_helpers
      module.
    + The function falcon.http_date_to_dt now validates HTTP dates to have
      the correct timezone set. It now also returns timezone-aware
      datetime.datetime objects.
    + setup.cfg was dropped in favor of consolidating all static project
      configuration in pyproject.toml
  * New & Improved
    + A new path converter falcon.routing.PathConverter
      capable of matching segments that include / was added.
    + Similar to the existing falcon.routing.IntConverter, a new
      falcon.routing.FloatConverter has been added, allowing to convert
      path segments to float.
    + A new method falcon.Request.get_header_as_int was implemented.
    + A new property, falcon.Request.headers_lower, was added to provide a
      unified, self-documenting way to get a copy of all request headers with
      lowercase names to facilitate case-insensitive matching.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-falcon?expand=0&rev=57
2024-11-02 06:34:21 +00:00
2 changed files with 34 additions and 11 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Aug 19 12:18:37 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems
-------------------------------------------------------------------
Tue Jul 8 13:19:46 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Tue Mar 25 15:51:05 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -21,17 +21,21 @@
%else
%bcond_with doc
%endif
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-falcon
Version: 4.0.2
Release: 0
Summary: A web framework for building APIs and app backends
License: Apache-2.0
URL: http://falconframework.org
URL: https://falconframework.org
Source: https://files.pythonhosted.org/packages/source/f/falcon/falcon-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/falconry/falcon/pull/2406 chore(tests/asgi): migrate to the new websockets async client
Patch: websockets.patch
Patch0: websockets.patch
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module base >= 3.8}
@@ -45,8 +49,20 @@ BuildRequires: %{python_module sphinx-tabs}
BuildRequires: %{python_module sphinxcontrib-copybutton}
BuildRequires: %{python_module websockets}
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
Suggests: %{name}-doc
BuildArch: noarch
# TODO: Cython support
#BuildRequires: %%{python_module Cython}
#Requires: python-Cython
# SECTION test requirements
BuildRequires: %{python_module aiofiles}
BuildRequires: %{python_module cbor2}
@@ -64,13 +80,6 @@ BuildRequires: %{python_module websockets >= 13.1 if (%python-base without pyth
BuildRequires: %{python_module pydata-sphinx-theme}
%endif
# /SECTION
BuildRequires: fdupes
BuildRequires: python-rpm-macros
#Requires: python-Cython
Requires(post): update-alternatives
Requires(postun): update-alternatives
Suggests: %{name}-doc
BuildArch: noarch
%python_subpackages
%package -n %{name}-doc
@@ -110,6 +119,7 @@ popd
%python_clone -a %{buildroot}%{_bindir}/falcon-bench
%python_clone -a %{buildroot}%{_bindir}/falcon-inspect-app
%python_clone -a %{buildroot}%{_bindir}/falcon-print-routes
%python_group_libalternatives falcon-bench falcon-inspect-app falcon-print-routes
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with doc}
@@ -122,8 +132,11 @@ cp -ar docs/_build/html examples %{buildroot}%{_defaultdocdir}/%{name}-doc/
export LANG=en_US.UTF8
%pytest
%pre
%python_libalternatives_reset_alternative falcon-bench
%post
%{python_install_alternative falcon-bench falcon-inspect-app falcon-print-routes}
%python_install_alternative falcon-bench falcon-inspect-app falcon-print-routes
%postun
%python_uninstall_alternative falcon-bench