forked from pool/python-watchdog
Accepting request 1285274 from devel:languages:python
- Switch to pyproject macros. OBS-URL: https://build.opensuse.org/request/show/1285274 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-watchdog?expand=0&rev=24
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 13 02:42:43 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 7 09:57:40 UTC 2025 - Adrian Schröter <adrian@suse.de>
|
Tue Jan 7 09:57:40 UTC 2025 - Adrian Schröter <adrian@suse.de>
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,9 @@ License: Apache-2.0
|
|||||||
URL: https://github.com/gorakhargosh/watchdog
|
URL: https://github.com/gorakhargosh/watchdog
|
||||||
Source: https://files.pythonhosted.org/packages/source/w/watchdog/watchdog-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/w/watchdog/watchdog-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module flaky}
|
BuildRequires: %{python_module flaky}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
@@ -64,13 +66,13 @@ find src -name "*.py" | xargs sed -i -e '/^#!\//, 1d'
|
|||||||
sed -i '/^[[:space:]]\+--cov/d' pyproject.toml
|
sed -i '/^[[:space:]]\+--cov/d' pyproject.toml
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
%if 0%{?suse_version} > 1500
|
%if 0%{?suse_version} > 1500
|
||||||
cd docs && make html && rm -r build/html/.buildinfo build/html/objects.inv # Build HTML docs
|
cd docs && make html && rm -r build/html/.buildinfo build/html/objects.inv # Build HTML docs
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/watchmedo
|
%python_clone -a %{buildroot}%{_bindir}/watchmedo
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
@@ -93,7 +95,7 @@ export LANG=en_US.UTF-8
|
|||||||
%doc AUTHORS changelog.rst MANIFEST.in README.rst
|
%doc AUTHORS changelog.rst MANIFEST.in README.rst
|
||||||
%python_alternative %{_bindir}/watchmedo
|
%python_alternative %{_bindir}/watchmedo
|
||||||
%{python_sitelib}/watchdog
|
%{python_sitelib}/watchdog
|
||||||
%{python_sitelib}/watchdog-%{version}-py%{python_version}.egg-info
|
%{python_sitelib}/watchdog-%{version}.dist-info
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1500
|
%if 0%{?suse_version} > 1500
|
||||||
%files %{python_files doc}
|
%files %{python_files doc}
|
||||||
|
|||||||
Reference in New Issue
Block a user