diff --git a/python-pytest-watch.spec b/python-pytest-watch.spec new file mode 100644 index 0000000000000000000000000000000000000000..68abeb12b7e8b645dd5f34ed5ea03fe0f17c946b --- /dev/null +++ b/python-pytest-watch.spec @@ -0,0 +1,61 @@ +%global pypi_name pytest-watch +%global file_name pytest_watch +%global desc pytest-watch a zero-config CLI tool that runs pytest, \ +and re-runs it when a file in your project changes. \ +It beeps on failures and can run arbitrary commands \ +on each passing and failing test run. + +Name: python-%{pypi_name} +Version: 4.2.0 +Release: 1 +Summary: Local continuous test runner with pytest and watchdog + +License: MIT +URL: https://github.com/joeyespo/pytest-watch +Source0: https://github.com/joeyespo/pytest-watch/archive/refs/tags/v4.2.0.tar.gz +BuildArch: noarch + +%description +%{desc} + +%package -n python3-%{pypi_name} +Summary: %{summary} +BuildArch: noarch +BuildRequires: python3-devel +Requires: python3-colorama >= 0.3.3 +Requires: python3-docopt >= 0.6.2 +Requires: python3-pytest >= 2.6.4 +Requires: python3-watchdog >= 0.6.0 +Requires: python3-PyYAML +Requires: python3-argh +Requires: python3-pathtools +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%{desc} + +%prep +%setup -qn %{pypi_name}-%{version} + +%build +%py3_build + +%install +%py3_install +pushd %{buildroot}%{_bindir} +mv ptw ptw-%{python3_version} +ln -s ptw-%{python3_version} ptw-3 +mv pytest-watch pytest-watch-%{python3_version} +ln -s pytest-watch-%{python3_version} pytest-watch-3 +popd + +%files -n python3-%{pypi_name} +%doc README.md CHANGES.md AUTHORS.md +%{python3_sitelib}/%{file_name}-%{version}-py%{python3_version}.egg-info/ +%{python3_sitelib}/%{file_name}/ +%{_bindir}/ptw-3* +%{_bindir}/pytest-watch-3* + +%changelog +* Wed Jul 7 2021 Lianguo Wang - 4.2.0-1 +- Initial package for openEuler, version is 4.2.0 diff --git a/v4.2.0.tar.gz b/v4.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b01b6de09b15a64f71430363a17cbefaddc9b20f Binary files /dev/null and b/v4.2.0.tar.gz differ