From 8605311e503cb2f5067c6a30462e49151598bb30 Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Sep 11 2021 11:00:42 +0000 Subject: Import python-watchgod-0.7-1.el9 in CloudSIG xena --- diff --git a/.python-watchgod.metadata b/.python-watchgod.metadata new file mode 100644 index 0000000..0d6be7d --- /dev/null +++ b/.python-watchgod.metadata @@ -0,0 +1 @@ +1d509f23c18700bd04bd025077902c5e78b0ee56 SOURCES/watchgod-0.7.tar.gz diff --git a/SPECS/python-watchgod.spec b/SPECS/python-watchgod.spec new file mode 100644 index 0000000..1ff94f4 --- /dev/null +++ b/SPECS/python-watchgod.spec @@ -0,0 +1,86 @@ +# what it's called on pypi +%global srcname watchgod +# what it's imported as +%global libname %{srcname} +# name of egg info directory +%global eggname %{srcname} +# package name fragment +%global pkgname %{srcname} + +%global common_description %{expand: +Simple, modern file watching and code reload in python. watchgod is inspired +by watchdog, hence the name, but tries to fix some of the frustrations found +with watchdog.} + + +%bcond_without tests + + +Name: python-%{pkgname} +Version: 0.7 +Release: 1%{?dist} +Summary: Simple, modern file watching and code reload +License: MIT +URL: https://github.com/samuelcolvin/watchgod +# PyPI tarball doesn't have tests +Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz +BuildArch: noarch + + +%description %{common_description} + + +%package -n python3-%{pkgname} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: %{py3_dist setuptools} +%if %{with tests} +BuildRequires: %{py3_dist pytest pytest-asyncio pytest-mock pytest-toolbox} +%endif +%{?python_provide:%python_provide python3-%{pkgname}} + + +%description -n python3-%{pkgname} %{common_description} + + +%prep +%autosetup -n %{srcname}-%{version} +rm -rf %{eggname}.egg-info + + +%build +%py3_build + + +%install +%py3_install + + +%if %{with tests} +%check +%pytest -v +%endif + + +%files -n python3-%{pkgname} +%license LICENSE +%doc README.md +%{_bindir}/watchgod +%{python3_sitelib}/%{libname} +%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info + + +%changelog +* Tue Mar 16 2021 Carl George - 0.7-1 +- Latest upstream +- Fixes: rhbz#1922631 +- Fixes: rhbz#1928080 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jun 05 2020 Carl George - 0.6-1 +- Initial package