From d188796f69c0d4fba9b926938fb808992a82ad34 Mon Sep 17 00:00:00 2001 From: Carl George Date: Sep 13 2018 12:52:43 +0000 Subject: Initial import (#1628320) --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..39909c5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +sniffio-*.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index af17c4c..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-sniffio - -The python-sniffio package \ No newline at end of file diff --git a/python-sniffio.spec b/python-sniffio.spec new file mode 100644 index 0000000..716cf81 --- /dev/null +++ b/python-sniffio.spec @@ -0,0 +1,68 @@ +# what it's called on pypi +%global srcname sniffio +# what it's imported as +%global libname sniffio +# name of egg info directory +%global eggname sniffio +# package name fragment +%global pkgname sniffio + +%global _description \ +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. + + +Name: python-%{pkgname} +Version: 1.0.0 +Release: 1%{?dist} +Summary: Sniff out which async library your code is running under +License: MIT or ASL 2.0 +URL: https://github.com/python-trio/sniffio +Source0: %pypi_source +BuildArch: noarch + + +%description %{_description} + + +%package -n python%{python3_pkgversion}-%{pkgname} +Summary: %{summary} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-pytest +%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}} + + +%description -n python%{python3_pkgversion}-%{pkgname} %{_description} + + +%prep +%autosetup -n %{srcname}-%{version} +rm -rf %{eggname}.egg-info + + +%build +%py3_build + + +%install +%py3_install + + +%check +py.test-%{python3_version} --verbose + + +%files -n python%{python3_pkgversion}-%{pkgname} +%license LICENSE LICENSE.MIT LICENSE.APACHE2 +%doc README.rst +%{python3_sitelib}/%{libname} +%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info + + +%changelog +* Wed Sep 12 2018 Carl George - 1.0.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..afddba8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sniffio-1.0.0.tar.gz) = 2ae655b7a7107cd21f75a53e5b6d1696aa98a0b5231066f52d673487833eb7d79941ffba59650f5704c20cee500ed08630ab5b18872ade68720140a7a997b483