[packages/flake8] - up to 7.2.0
baggins
baggins at pld-linux.org
Sun Apr 6 03:29:58 CEST 2025
commit da06396b3abd0163f85640df0f4b83f82efc0e72
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Apr 6 02:43:41 2025 +0200
- up to 7.2.0
flake8.spec | 45 +++++++--------------------------------------
1 file changed, 7 insertions(+), 38 deletions(-)
---
diff --git a/flake8.spec b/flake8.spec
index eaf9c08..431d8a4 100644
--- a/flake8.spec
+++ b/flake8.spec
@@ -1,22 +1,20 @@
#
# Conditional build:
-%bcond_without python2 # CPython 2.x module
+%bcond_with python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
%bcond_with tests # pytest tests
-%bcond_without doc # Sphinx documentation
Summary: The modular source code checker: pycodestyle, pyflakes and co.
Summary(pl.UTF-8): Modularne narzędzie do sprawdzania kodu źródłowego: pycodestyle, pyflakes itp.
Name: flake8
# before updating to 4.x fork python-flake8.spec with last 3.x version
-Version: 3.9.2
-Release: 5
+Version: 7.2.0
+Release: 1
License: MIT
Group: Development/Tools
#Source0Download: https://pypi.org/simple/flake8/
Source0: https://files.pythonhosted.org/packages/source/f/flake8/%{name}-%{version}.tar.gz
-# Source0-md5: 5c102972d3d0f35255c56a20613fcec5
-Patch0: %{name}-duplicate.patch
+# Source0-md5: 5b0c69330b5cbdf639a33c91b896f7b1
URL: https://gitlab.com/pycqa/flake8
BuildRequires: rpmbuild(macros) >= 1.714
BuildRequires: rpm-pythonprov
@@ -56,15 +54,12 @@ BuildRequires: python3-pytest
BuildRequires: sed >= 4.0
%endif
%endif
-%if %{with doc}
-BuildRequires: python3-sphinx-prompt
-BuildRequires: sphinx-pdg-3 >= 1.3
-%endif
%if %{with python3}
Requires: python3-flake8 = %{version}-%{release}
%else
Requires: python-flake8 = %{version}-%{release}
%endif
+Obsoletes: python-flake8-apidocs < 7.2.0
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -131,20 +126,9 @@ dla narzędzi:
- pycodestyle
- skrypt McCabe autorstwa Neda Batcheldera
-%package -n python-flake8-apidocs
-Summary: API documentation for Python flake8 module
-Summary(pl.UTF-8): Dokumentacja API modułu Pythona flake8
-Group: Documentation
-
-%description -n python-flake8-apidocs
-API documentation for Python flake8 module.
-
-%description -n python-flake8-apidocs -l pl.UTF-8
-Dokumentacja API modułu Pythona flake8.
%prep
%setup -q
-%patch -P 0 -p1
%build
%if %{with python2}
@@ -158,9 +142,6 @@ PYTHONPATH=$(pwd)/src \
%endif
%if %{with python3}
-# don't require standalone mock
-%{__sed} -i -e 's/import mock/from unittest import mock/' $(grep 'import mock' tests/ -rl)
-
%py3_build
%if %{with tests}
@@ -170,12 +151,6 @@ PYTHONPATH=$(pwd)/src \
%endif
%endif
-%if %{with doc}
-cd docs/source
-PYTHONPATH=$(pwd)/../../src \
-sphinx-build-3 -b html . _build/html
-%endif
-
%install
rm -rf $RPM_BUILD_ROOT
@@ -202,7 +177,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%files -n python-flake8
%defattr(644,root,root,755)
-%doc CONTRIBUTORS.txt LICENSE README.rst
+%doc LICENSE README.rst
%attr(755,root,root) %{_bindir}/flake8-2
%{py_sitescriptdir}/flake8
%{py_sitescriptdir}/flake8-%{version}-py*.egg-info
@@ -211,14 +186,8 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python3}
%files -n python3-flake8
%defattr(644,root,root,755)
-%doc CONTRIBUTORS.txt LICENSE README.rst
+%doc LICENSE README.rst
%attr(755,root,root) %{_bindir}/flake8-3
%{py3_sitescriptdir}/flake8
%{py3_sitescriptdir}/flake8-%{version}-py*.egg-info
%endif
-
-%if %{with doc}
-%files -n python-flake8-apidocs
-%defattr(644,root,root,755)
-%doc docs/source/_build/html/{_modules,_static,internal,plugin-development,release-notes,user,*.html,*.js}
-%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/flake8.git/commitdiff/da06396b3abd0163f85640df0f4b83f82efc0e72
More information about the pld-cvs-commit
mailing list