Blob Blame History Raw
# 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.6
Release:        2%{?dist}
Summary:        Simple, modern file watching and code reload
License:        MIT
# 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-mock pytest-toolbox}
%{?python_provide:%python_provide python3-%{pkgname}}

%description -n python3-%{pkgname} %{common_description}

%autosetup -n %{srcname}-%{version}
rm -rf %{eggname}.egg-info



%if %{with tests}
%pytest -v

%files -n python3-%{pkgname}
%license LICENSE

* Wed Jul 29 2020 Fedora Release Engineering <> - 0.6-2
- Rebuilt for

* Fri Jun 05 2020 Carl George <> - 0.6-1
- Initial package