|
1 | | -%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
2 | | -%{!?python3_version: %define python3_version %(python3 -c "import sys; sys.stdout.write(sys.version[:3])")} |
3 | | -%{!?__python3: %global __python3 /usr/bin/python3} |
4 | | - |
5 | | -# what it's called on pypi |
6 | | -%global srcname sniffio |
7 | | -# what it's imported as |
8 | | -%global libname sniffio |
9 | | -# name of egg info directory |
10 | | -%global eggname sniffio |
11 | | -# package name fragment |
12 | | -%global pkgname sniffio |
13 | | - |
14 | | -%global _description \ |
15 | | -You're writing a library. You've decided to be ambitious, and support multiple\ |
16 | | -async I/O packages, like Trio, and asyncio, and ... You've written a bunch of\ |
17 | | -clever code to handle all the differences. But... how do you know which piece\ |
18 | | -of clever code to run? This is a tiny package whose only purpose is to let you\ |
19 | | -detect which async library your code is running under. |
20 | 1 |
|
| 2 | +Name: python-sniffio |
| 3 | +Version: 1.3.1 |
| 4 | +Release: 4%{?dist} |
21 | 5 | Summary: Sniff out which async library your code is running under |
22 | | -Name: python-%{pkgname} |
23 | | -Version: 1.1.0 |
24 | | -Release: 11%{?dist} |
25 | | -License: MIT or ASL 2.0 |
| 6 | +License: MIT OR Apache-2.0 |
| 7 | +Vendor: Microsoft Corporation |
| 8 | +Distribution: Azure Linux |
26 | 9 | URL: https://github.com/python-trio/sniffio |
27 | | -Source0: https://files.pythonhosted.org/packages/source/s/%{pkgname}/%{pkgname}-%{version}.tar.gz#/%{name}-%{version}.tar.gz |
| 10 | +Source0: https://files.pythonhosted.org/packages/source/s/sniffio/sniffio-1.3.1.tar.gz#/%{name}-%{version}.tar.gz |
28 | 11 | BuildArch: noarch |
29 | 12 |
|
30 | | -%if 0%{?with_check} |
31 | | -BuildRequires: python3-pip |
32 | | -%endif |
| 13 | +BuildRequires: python3-pip |
| 14 | +BuildRequires: python3-wheel |
33 | 15 |
|
34 | | -%description %{_description} |
| 16 | +%global common_description %{expand: |
| 17 | +You're writing a library. You've decided to be ambitious, and support multiple |
| 18 | +async I/O packages, like Trio, and asyncio, and ... You've written a bunch of |
| 19 | +clever code to handle all the differences. But... how do you know which piece |
| 20 | +of clever code to run? This is a tiny package whose only purpose is to let you |
| 21 | +detect which async library your code is running under.} |
35 | 22 |
|
36 | | -%package -n python3-%{pkgname} |
| 23 | +%description %{common_description} |
| 24 | + |
| 25 | +%package -n python3-sniffio |
37 | 26 | Summary: %{summary} |
38 | 27 | BuildRequires: python3-devel |
39 | | -BuildRequires: python3-setuptools |
40 | | -BuildRequires: python3-curio |
41 | | -%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}} |
| 28 | +BuildRequires: %{py3_dist pytest} |
42 | 29 |
|
43 | | -%description -n python3-%{pkgname} %{_description} |
| 30 | +%description -n python3-sniffio %{common_description} |
44 | 31 |
|
45 | 32 | %prep |
46 | | -%autosetup -n %{srcname}-%{version} |
47 | | -rm -rf %{eggname}.egg-info |
| 33 | +%autosetup -n sniffio-%{version} |
| 34 | + |
| 35 | +%generate_buildrequires |
| 36 | +%pyproject_buildrequires |
48 | 37 |
|
49 | 38 | %build |
50 | | -%py3_build |
| 39 | +%pyproject_wheel |
51 | 40 |
|
52 | 41 | %install |
53 | | -%py3_install |
| 42 | +%pyproject_install |
| 43 | +%pyproject_save_files sniffio |
54 | 44 |
|
55 | 45 | %check |
56 | | -pip3 install pytest |
57 | | -py.test --verbose |
| 46 | +%pytest --verbose |
58 | 47 |
|
59 | | -%files -n python3-%{pkgname} |
| 48 | +%files -n python3-sniffio -f %{pyproject_files} |
60 | 49 | %license LICENSE LICENSE.MIT LICENSE.APACHE2 |
61 | 50 | %doc README.rst |
62 | | -%{python3_sitelib}/%{libname} |
63 | | -%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info |
64 | 51 |
|
65 | 52 | %changelog |
66 | | -* Fri Apr 29 2022 Muhamamd Falak <mwani@microsoft.com> - 1.10-11 |
67 | | -- Drop BR on pytest & pip install latest deps |
68 | | -- Use `py.test` instead of `py.test-3` to enable ptest |
69 | | - |
70 | | -* Tue Apr 26 2022 Mandeep Plaha <mandeepplaha@microsoft.com> - 1.1.0-10 |
71 | | -- Updated source URL |
| 53 | +* Tue Feb 11 2025 Akhila Guruju <v-guakhila@microsoft.com> - 1.3.1-4 |
| 54 | +- Initial Azure Linux import from Fedora 41 (license: MIT). |
72 | 55 | - License verified |
| 56 | +- Added `BuildRequires: python3-pip python3-wheel` |
| 57 | + |
| 58 | +* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3 |
| 59 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild |
| 60 | + |
| 61 | +* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 1.3.1-2 |
| 62 | +- Rebuilt for Python 3.13 |
| 63 | + |
| 64 | +* Mon Jun 03 2024 Carl George <carlwgeorge@fedoraproject.org> - 1.3.1-1 |
| 65 | +- Update to version 1.3.1 rhbz#2265958 |
| 66 | + |
| 67 | +* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3 |
| 68 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 69 | + |
| 70 | +* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2 |
| 71 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 72 | + |
| 73 | +* Fri Sep 29 2023 Carl George <carlwgeorge@fedoraproject.org> - 1.3.0-1 |
| 74 | +- Update to version 1.3.0, resolves rhbz#2123340 |
| 75 | +- Switch to SPDX license notation |
| 76 | + |
| 77 | +* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-11 |
| 78 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild |
73 | 79 |
|
74 | | -* Tue Jan 12 2021 Steve Laughman <steve.laughman@microsoft.com> - 1.1.0-9 |
75 | | -- Correction to files declaration |
| 80 | +* Sat Jul 01 2023 Python Maint <python-maint@redhat.com> - 1.2.0-10 |
| 81 | +- Rebuilt for Python 3.12 |
76 | 82 |
|
77 | | -* Tue Dec 08 2020 Steve Laughman <steve.laughman@microsoft.com> - 1.1.0-8 |
78 | | -- Initial CBL-Mariner import from Fedora 33 (license: MIT) |
| 83 | +* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-9 |
| 84 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild |
| 85 | + |
| 86 | +* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-8 |
| 87 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild |
| 88 | + |
| 89 | +* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.2.0-7 |
| 90 | +- Rebuilt for Python 3.11 |
| 91 | + |
| 92 | +* Thu Jan 27 2022 Carl George <carl@george.computer> - 1.2.0-6 |
| 93 | +- Convert to pyproject macros |
| 94 | + |
| 95 | +* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-5 |
| 96 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild |
| 97 | + |
| 98 | +* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4 |
| 99 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild |
| 100 | + |
| 101 | +* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.2.0-3 |
| 102 | +- Rebuilt for Python 3.10 |
| 103 | + |
| 104 | +* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2 |
| 105 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild |
| 106 | + |
| 107 | +* Fri Nov 20 2020 Joel Capitao <jcapitao@redhat.com> - 1.2.0-1 |
| 108 | +- Update to 1.2.0 (#1887203) |
79 | 109 |
|
80 | 110 | * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-7 |
81 | 111 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild |
@@ -103,3 +133,4 @@ py.test --verbose |
103 | 133 |
|
104 | 134 | * Wed Sep 12 2018 Carl George <carl@george.computer> - 1.0.0-1 |
105 | 135 | - Initial package |
| 136 | + |
0 commit comments