File python-pytest-watch.spec of Package python-pytest-watch

#
# spec file for package python-pytest-watch
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           python-pytest-watch
Version:        4.2.0
Release:        0
Summary:        Local continuous test runner with pytest and watchdog
License:        MIT
URL:            http://github.com/joeyespo/pytest-watch
Source:         pytest-watch-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
BuildRequires:  fdupes
Requires:       python-colorama >= 0.3.3
Requires:       python-docopt >= 0.4.0
Requires:       python-pytest >= 2.6.4
Requires:       python-watchdog >= 0.6.0
Requires(post):   update-alternatives
Requires(postun): update-alternatives
BuildArch:      noarch
%python_subpackages

%description
Local continuous test runner with pytest and watchdog.

%prep
%autosetup -p1 -n pytest-watch-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pytest-watch
%python_clone -a %{buildroot}%{_bindir}/ptw
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_expand %fdupes %{buildroot}%{_bindir}

%post
%python_install_alternative pytest-watch ptw

%postun
%python_uninstall_alternative pytest-watch

%files %{python_files}
%doc AUTHORS.md CHANGES.md README.md README.rst
%python_alternative %{_bindir}/pytest-watch
%python_alternative %{_bindir}/ptw
%{python_sitelib}/pytest_watch
%{python_sitelib}/pytest_watch-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by