14
0
forked from pool/python-falcon

8 Commits

Author SHA256 Message Date
828e29922b 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
322d819fee - Add websockets.patch to fix test failure
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
03cdd46458 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
823c2f6e8e - 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
ec693d0a80 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
47f9b5d457 - 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/package/show/devel:languages:python/python-falcon?expand=0&rev=59
2024-11-12 17:08:27 +00:00
5edd96e9d9 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
c74f12e20f - 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 11 additions and 34 deletions

View File

@@ -1,13 +1,3 @@
-------------------------------------------------------------------
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,21 +21,17 @@
%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: https://falconframework.org
URL: http://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
Patch0: websockets.patch
Patch: websockets.patch
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module base >= 3.8}
@@ -49,20 +45,8 @@ 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}
@@ -80,6 +64,13 @@ 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
@@ -119,7 +110,6 @@ 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}
@@ -132,11 +122,8 @@ 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