14
0
2023-10-05 17:20:23 +00:00
committed by Git OBS Bridge
parent 1ffa3ff69b
commit f464965165
2 changed files with 14 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Oct 5 17:20:13 UTC 2023 - Matej Cepl <mcepl@cepl.eu>
- Clean up the SPEC file
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 21 12:34:16 UTC 2023 - Dirk Müller <dmueller@suse.com> Fri Apr 21 12:34:16 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -16,9 +16,8 @@
# #
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
%define skip_python2 1
Name: python-sniffio Name: python-sniffio
Version: 1.3.0 Version: 1.3.0
Release: 0 Release: 0
@@ -28,12 +27,13 @@ Group: Development/Languages/Python
URL: https://github.com/python-trio/sniffio URL: https://github.com/python-trio/sniffio
Source: https://github.com/python-trio/sniffio/archive/v%{version}.tar.gz#/sniffio-%{version}.tar.gz Source: https://github.com/python-trio/sniffio/archive/v%{version}.tar.gz#/sniffio-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros >= 20210127.3a18043 BuildRequires: python-rpm-macros >= 20210127.3a18043
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module curio} # BuildRequires: %%{python_module curio}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
# /SECTION # /SECTION
%python_subpackages %python_subpackages
@@ -47,18 +47,19 @@ asyncio.
%setup -q -n sniffio-%{version} %setup -q -n sniffio-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pytest %pytest -k 'not test_curio'
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst
%license LICENSE LICENSE.APACHE2 LICENSE.MIT %license LICENSE LICENSE.APACHE2 LICENSE.MIT
%{python_sitelib}/* %{python_sitelib}/sniffio
%{python_sitelib}/sniffio-%{version}*-info
%changelog %changelog