summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-14 12:28:20 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-14 12:28:20 +0000
commitd79e50f9229853674cfcf3ea30d670a1c8d9eaf2 (patch)
treed4e6fac182cc1fb25695459178aa0fc44b43626e
parentf0804efb2bc1d2a9cfbb9d2e129371a7c2bda9b8 (diff)
automatic import of python-sniffio
-rw-r--r--.gitignore1
-rw-r--r--sniffio.spec64
-rw-r--r--sources1
3 files changed, 66 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..0462bc6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-sniffio-1.3.1.tar.gz
diff --git a/sniffio.spec b/sniffio.spec
new file mode 100644
index 0000000..6a35d74
--- /dev/null
+++ b/sniffio.spec
@@ -0,0 +1,64 @@
+%global pypi_name sniffio
+
+Name: python-%{pypi_name}
+Version: 1.3.1
+Release: 1%{?dist}
+Summary: Sniff out which async library your code is running under
+License: MIT OR Apache-2.0
+URL: https://github.com/python-trio/sniffio
+Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python3-devel
+BuildRequires: python3-pip
+BuildRequires: python3-setuptools
+BuildRequires: python3-wheel
+BuildRequires: python3-setuptools_scm
+
+%description
+sniffio is a tiny package whose only purpose is to let you detect which
+async library your code is running under (Trio, asyncio, etc.).
+
+%package -n python3-%{pypi_name}
+Summary: Sniff out which async library your code is running under
+Provides: python-%{pypi_name}
+Provides: python3dist(%{pypi_name}) = %{version}
+
+%description -n python3-%{pypi_name}
+sniffio is a tiny package whose only purpose is to let you detect which
+async library your code is running under (Trio, asyncio, etc.).
+
+%package help
+Summary: Development documents and examples for %{pypi_name}
+Provides: python3-%{pypi_name}-doc
+Requires: python3-%{pypi_name}
+
+%description help
+Development documents and examples for %{pypi_name}.
+
+%prep
+%autosetup -n %{name}-%{version} -p1
+
+%build
+export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
+pip3 wheel --no-build-isolation --no-deps --wheel-dir %{_builddir}/wheels .
+
+%install
+export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
+pip3 install --no-build-isolation --no-index \
+ --find-links %{_builddir}/wheels \
+ --root %{buildroot} --prefix /usr \
+ %{pypi_name}==%{version}
+
+%files -n python3-%{pypi_name}
+%license LICENSE LICENSE.APACHE2 LICENSE.MIT
+%{python3_sitelib}/%{pypi_name}/
+%{python3_sitelib}/%{pypi_name}-%{version}*.dist-info/
+
+%files help
+%license LICENSE LICENSE.APACHE2 LICENSE.MIT
+%doc README.rst
+
+%changelog
+* Mon Sep 14 2026 Python_Bot <Python_Bot@openeuler.org> - 1.3.1-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..4144000
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5741990e80d1ee05d638c5adb5578c5d python-sniffio-1.3.1.tar.gz