diff --git a/.python-sniffio.metadata b/.python-sniffio.metadata new file mode 100644 index 0000000..78bd5fe --- /dev/null +++ b/.python-sniffio.metadata @@ -0,0 +1 @@ +bf44677930fc53bd6d42a5049bdd3bbf0498a748 SOURCES/sniffio-1.3.0.tar.gz diff --git a/SOURCES/.gitignore b/SOURCES/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitignore diff --git a/SPECS/python-sniffio.spec b/SPECS/python-sniffio.spec new file mode 100644 index 0000000..fc916cd --- /dev/null +++ b/SPECS/python-sniffio.spec @@ -0,0 +1,131 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +Name: python-sniffio +Version: 1.3.0 +Release: %autorelease +Summary: Sniff out which async library your code is running under +License: MIT OR Apache-2.0 +URL: https://github.com/python-trio/sniffio +Source: %{pypi_source sniffio} +BuildArch: noarch + +%global common_description %{expand: +You're writing a library. You've decided to be ambitious, and support multiple +async I/O packages, like Trio, and asyncio, and ... You've written a bunch of +clever code to handle all the differences. But... how do you know which piece +of clever code to run? This is a tiny package whose only purpose is to let you +detect which async library your code is running under.} + + +%description %{common_description} + + +%package -n python3-sniffio +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros +BuildRequires: %{py3_dist pytest} + + +%description -n python3-sniffio %{common_description} + + +%prep +%autosetup -n sniffio-%{version} + + +%generate_buildrequires +%pyproject_buildrequires + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files sniffio + + +%check +# curio is upstream discontinued and is not yet available for Python 3.12 +%pytest --verbose -k "not test_curio" + + +%files -n python3-sniffio -f %{pyproject_files} +%doc README.rst + + +%changelog +* Fri Sep 29 2023 Carl George - 1.3.0-1 +- Update to version 1.3.0, resolves rhbz#2123340 +- Switch to SPDX license notation + +* Fri Jul 21 2023 Fedora Release Engineering - 1.2.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jul 01 2023 Python Maint - 1.2.0-10 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.2.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.2.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 1.2.0-7 +- Rebuilt for Python 3.11 + +* Thu Jan 27 2022 Carl George - 1.2.0-6 +- Convert to pyproject macros + +* Fri Jan 21 2022 Fedora Release Engineering - 1.2.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 1.2.0-3 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Nov 20 2020 Joel Capitao - 1.2.0-1 +- Update to 1.2.0 (#1887203) + +* Wed Jul 29 2020 Fedora Release Engineering - 1.1.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 1.1.0-6 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.1.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 1.1.0-4 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 1.1.0-3 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue May 14 2019 Carl George - 1.1.0-1 +- Latest upstream + +* Sat Feb 02 2019 Fedora Release Engineering - 1.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Wed Sep 12 2018 Carl George - 1.0.0-1 +- Initial package +