[packages/python3-watchdog] - new

qboosh qboosh at pld-linux.org
Wed Oct 11 21:21:17 CEST 2023


commit 8dcdd81ebe6d259ce8f568ced35aa0449572330f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Oct 11 21:10:31 2023 +0200

    - new

 python3-watchdog.spec | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 97 insertions(+)
---
diff --git a/python3-watchdog.spec b/python3-watchdog.spec
new file mode 100644
index 0000000..15927b9
--- /dev/null
+++ b/python3-watchdog.spec
@@ -0,0 +1,97 @@
+#
+# Conditional build:
+%bcond_without	doc	# Sphinx documentation
+%bcond_without	tests	# unit tests
+%bcond_without	python2 # CPython 2.x module
+%bcond_with	python3 # CPython 3.x module
+
+Summary:	Python API and shell utilities to monitor file system events
+Summary(pl.UTF-8):	API pythonowe i narzędzia powłoki do monitorowania zdarzeń systemu plików
+Name:		python3-watchdog
+Version:	2.3.1
+Release:	1
+License:	Apache v2.0
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/watchdog/
+Source0:	https://files.pythonhosted.org/packages/source/w/watchdog/watchdog-%{version}.tar.gz
+# Source0-md5:	a1c410a91204340adfb231a4909f70d1
+URL:		https://pypi.org/project/watchdog/
+BuildRequires:	python3-modules >= 1:3.6
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-PyYAML >= 3.10
+BuildRequires:	python3-eventlet
+BuildRequires:	python3-pytest
+BuildRequires:	python3-pytest-cov
+BuildRequires:	python3-pytest-timeout
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	sphinx-pdg-3
+%endif
+Requires:	python3-modules >= 1:3.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python API and shell utilities to monitor file system events.
+
+%description -l pl.UTF-8
+API pythonowe i narzędzia powłoki do monitorowania zdarzeń systemu
+plików.
+
+%package apidocs
+Summary:	API documentation for Python watchdog module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona watchdog
+Group:		Documentation
+
+%description apidocs
+API documentation for Python watchdog module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona watchdog.
+
+%prep
+%setup -q -n watchdog-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_cov.plugin,pytest_timeout \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests -k 'not test_unmount_watched_directory_filesystem'
+# disabled test uses sudo for mount/umount
+%endif
+
+%if %{with doc}
+%{__make} -C docs html \
+	SPHINXBUILD=sphinx-build-3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/watchmedo{,-3}
+ln -sf watchmedo-3 $RPM_BUILD_ROOT%{_bindir}/watchmedo
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING README.rst
+%attr(755,root,root) %{_bindir}/watchmedo
+%attr(755,root,root) %{_bindir}/watchmedo-3
+%{py3_sitescriptdir}/watchdog
+%{py3_sitescriptdir}/watchdog-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/build/html/{_modules,_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-watchdog.git/commitdiff/8dcdd81ebe6d259ce8f568ced35aa0449572330f



More information about the pld-cvs-commit mailing list