d188796
%global srcname sniffio
460e3a3
%global common_description %{expand:
460e3a3
You're writing a library.  You've decided to be ambitious, and support multiple
460e3a3
async I/O packages, like Trio, and asyncio, and ... You've written a bunch of
460e3a3
clever code to handle all the differences.  But... how do you know which piece
460e3a3
of clever code to run?  This is a tiny package whose only purpose is to let you
460e3a3
detect which async library your code is running under.}
d188796
5cb5a98
%bcond_without  tests
5cb5a98
d188796
8864c8a
Name:           python-%{srcname}
d498088
Version:        1.2.0
8864c8a
Release:        6%{?dist}
d188796
Summary:        Sniff out which async library your code is running under
d188796
License:        MIT or ASL 2.0
d188796
URL:            https://github.com/python-trio/sniffio
d188796
Source0:        %pypi_source
d188796
BuildArch:      noarch
d188796
d188796
460e3a3
%description %{common_description}
d188796
d188796
8864c8a
%package -n python3-%{srcname}
d188796
Summary:        %{summary}
460e3a3
BuildRequires:  python3-devel
5cb5a98
%if %{with tests}
8864c8a
BuildRequires:  %{py3_dist pytest curio}
5cb5a98
%endif
d498088
d188796
8864c8a
%description -n python3-%{srcname} %{common_description}
d188796
d188796
d188796
%prep
d188796
%autosetup -n %{srcname}-%{version}
8864c8a
8864c8a
8864c8a
%generate_buildrequires
8864c8a
%pyproject_buildrequires -r
d188796
d188796
d188796
%build
8864c8a
%pyproject_wheel
d188796
d188796
d188796
%install
8864c8a
%pyproject_install
8864c8a
%pyproject_save_files %{srcname}
d188796
d188796
5cb5a98
%if %{with tests}
d188796
%check
df8c144
%pytest --verbose
5cb5a98
%endif
d188796
d188796
8864c8a
%files -n python3-%{srcname} -f %{pyproject_files}
d188796
%doc README.rst
d188796
d188796
d188796
%changelog
8864c8a
* Thu Jan 27 2022 Carl George <carl@george.computer> - 1.2.0-6
8864c8a
- Convert to pyproject macros
8864c8a
d02e245
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-5
d02e245
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
d02e245
d52993f
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4
d52993f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d52993f
fb8b8a3
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.2.0-3
fb8b8a3
- Rebuilt for Python 3.10
fb8b8a3
4291a4a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
4291a4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4291a4a
d498088
* Fri Nov 20 2020 Joel Capitao <jcapitao@redhat.com> - 1.2.0-1
d498088
- Update to 1.2.0 (#1887203)
d498088
e3588af
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-7
e3588af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e3588af
2b4990e
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-6
2b4990e
- Rebuilt for Python 3.9
2b4990e
b2e4c55
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
b2e4c55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b2e4c55
6789d73
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-4
6789d73
- Rebuilt for Python 3.8.0rc1 (#1748018)
6789d73
ac4c6a1
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-3
ac4c6a1
- Rebuilt for Python 3.8
ac4c6a1
8c61447
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
8c61447
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8c61447
35d3496
* Tue May 14 2019 Carl George <carl@george.computer> - 1.1.0-1
35d3496
- Latest upstream
35d3496
3f4b0dd
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
3f4b0dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3f4b0dd
d188796
* Wed Sep 12 2018 Carl George <carl@george.computer> - 1.0.0-1
d188796
- Initial package