Skip to content

Commit 3ab55b2

Browse files
Upgrade: python-sniffio version to 1.3.1 (#12290)
1 parent 0751905 commit 3ab55b2

3 files changed

Lines changed: 89 additions & 57 deletions

File tree

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"Signatures": {
3-
"python-sniffio-1.1.0.tar.gz": "8e3810100f69fe0edd463d02ad407112542a11ffdc29f67db2bf3771afb87a21"
4-
}
2+
"Signatures": {
3+
"python-sniffio-1.3.1.tar.gz": "f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc"
4+
}
55
}
6+
Lines changed: 83 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,111 @@
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.
201

2+
Name: python-sniffio
3+
Version: 1.3.1
4+
Release: 4%{?dist}
215
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
269
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
2811
BuildArch: noarch
2912

30-
%if 0%{?with_check}
31-
BuildRequires: python3-pip
32-
%endif
13+
BuildRequires: python3-pip
14+
BuildRequires: python3-wheel
3315

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.}
3522

36-
%package -n python3-%{pkgname}
23+
%description %{common_description}
24+
25+
%package -n python3-sniffio
3726
Summary: %{summary}
3827
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}
4229

43-
%description -n python3-%{pkgname} %{_description}
30+
%description -n python3-sniffio %{common_description}
4431

4532
%prep
46-
%autosetup -n %{srcname}-%{version}
47-
rm -rf %{eggname}.egg-info
33+
%autosetup -n sniffio-%{version}
34+
35+
%generate_buildrequires
36+
%pyproject_buildrequires
4837

4938
%build
50-
%py3_build
39+
%pyproject_wheel
5140

5241
%install
53-
%py3_install
42+
%pyproject_install
43+
%pyproject_save_files sniffio
5444

5545
%check
56-
pip3 install pytest
57-
py.test --verbose
46+
%pytest --verbose
5847

59-
%files -n python3-%{pkgname}
48+
%files -n python3-sniffio -f %{pyproject_files}
6049
%license LICENSE LICENSE.MIT LICENSE.APACHE2
6150
%doc README.rst
62-
%{python3_sitelib}/%{libname}
63-
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
6451

6552
%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).
7255
- 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
7379

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
7682

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)
79109

80110
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-7
81111
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
@@ -103,3 +133,4 @@ py.test --verbose
103133

104134
* Wed Sep 12 2018 Carl George <carl@george.computer> - 1.0.0-1
105135
- Initial package
136+

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24663,8 +24663,8 @@
2466324663
"type": "other",
2466424664
"other": {
2466524665
"name": "python-sniffio",
24666-
"version": "1.1.0",
24667-
"downloadUrl": "https://files.pythonhosted.org/packages/source/s/sniffio/sniffio-1.1.0.tar.gz"
24666+
"version": "1.3.1",
24667+
"downloadUrl": "https://files.pythonhosted.org/packages/source/s/sniffio/sniffio-1.3.1.tar.gz"
2466824668
}
2466924669
}
2467024670
},

0 commit comments

Comments
 (0)