forked from pool/python-hypercorn
Accepting request 1164000 from devel:languages:python
- Reflow spec file. - Skip a test broken by new trio. OBS-URL: https://build.opensuse.org/request/show/1164000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypercorn?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 2 02:07:15 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Reflow spec file.
|
||||||
|
- Skip a test broken by new trio.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 25 11:08:52 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
Thu Jan 25 11:08:52 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-Hypercorn
|
# spec file for package python-hypercorn
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
@@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
# avoid taskgroup backports
|
# avoid taskgroup backports
|
||||||
%define skip_python39 1
|
|
||||||
%define skip_python310 1
|
%define skip_python310 1
|
||||||
Name: python-hypercorn
|
Name: python-hypercorn
|
||||||
Version: 0.16.0
|
Version: 0.16.0
|
||||||
@@ -26,21 +25,21 @@ Summary: A ASGI Server based on Hyper libraries and inspired by Gunicorn
|
|||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/pgjones/hypercorn/
|
URL: https://github.com/pgjones/hypercorn/
|
||||||
Source: https://github.com/pgjones/hypercorn/archive/refs/tags/%{version}.tar.gz
|
Source: https://github.com/pgjones/hypercorn/archive/refs/tags/%{version}.tar.gz
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
BuildRequires: %{python_module base >= 3.8}
|
BuildRequires: %{python_module base >= 3.8}
|
||||||
BuildRequires: %{python_module pip}
|
|
||||||
BuildRequires: %{python_module poetry-core >= 1}
|
|
||||||
BuildRequires: %{python_module exceptiongroup >= 1.1.0}
|
BuildRequires: %{python_module exceptiongroup >= 1.1.0}
|
||||||
BuildRequires: %{python_module h11}
|
BuildRequires: %{python_module h11}
|
||||||
BuildRequires: %{python_module h2 >= 3.1.0}
|
BuildRequires: %{python_module h2 >= 3.1.0}
|
||||||
BuildRequires: %{python_module hypothesis}
|
BuildRequires: %{python_module hypothesis}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module poetry-core >= 1}
|
||||||
BuildRequires: %{python_module priority}
|
BuildRequires: %{python_module priority}
|
||||||
BuildRequires: %{python_module pytest}
|
|
||||||
BuildRequires: %{python_module pytest-asyncio}
|
BuildRequires: %{python_module pytest-asyncio}
|
||||||
BuildRequires: %{python_module pytest-trio}
|
BuildRequires: %{python_module pytest-trio}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module trio >= 0.22.0}
|
BuildRequires: %{python_module trio >= 0.22.0}
|
||||||
BuildRequires: %{python_module wsproto >= 0.14.0}
|
BuildRequires: %{python_module wsproto >= 0.14.0}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-exceptiongroup >= 1.1.0
|
Requires: python-exceptiongroup >= 1.1.0
|
||||||
Requires: python-h11
|
Requires: python-h11
|
||||||
Requires: python-h2 >= 3.1.0
|
Requires: python-h2 >= 3.1.0
|
||||||
@@ -64,9 +63,6 @@ sed -i 's/--no-cov-on-fail//' pyproject.toml
|
|||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
%check
|
|
||||||
%pytest
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
|
||||||
@@ -75,10 +71,9 @@ sed -i 's/--no-cov-on-fail//' pyproject.toml
|
|||||||
%python_expand chmod -x %{buildroot}/%{$python_sitelib}/hypercorn/protocol/h11.py
|
%python_expand chmod -x %{buildroot}/%{$python_sitelib}/hypercorn/protocol/h11.py
|
||||||
%python_expand chmod -x %{buildroot}/%{$python_sitelib}/hypercorn/protocol/h2.py
|
%python_expand chmod -x %{buildroot}/%{$python_sitelib}/hypercorn/protocol/h2.py
|
||||||
|
|
||||||
%files %{python_files}
|
%check
|
||||||
%{python_sitelib}/hypercorn
|
# Broken with new trio
|
||||||
%{python_sitelib}/hypercorn-%{version}.dist-info
|
%pytest -k 'not test_startup_failure'
|
||||||
%python_alternative %{_bindir}/hypercorn
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative hypercorn
|
%python_install_alternative hypercorn
|
||||||
@@ -86,5 +81,9 @@ sed -i 's/--no-cov-on-fail//' pyproject.toml
|
|||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative hypercorn
|
%python_uninstall_alternative hypercorn
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%{python_sitelib}/hypercorn
|
||||||
|
%{python_sitelib}/hypercorn-%{version}.dist-info
|
||||||
|
%python_alternative %{_bindir}/hypercorn
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user