[packages/python3-pytest-black] Up to 0.6.0

arekm arekm at pld-linux.org
Sun May 4 02:57:14 CEST 2025


commit fd0a6c1f0eed2bcbf1755493081102ea68fe0a03
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun May 4 01:08:15 2025 +0200

    Up to 0.6.0

 ...test.patch => python3-pytest-black-pytest.patch |  0
 ...-pytest-black.spec => python3-pytest-black.spec | 69 ++--------------------
 2 files changed, 6 insertions(+), 63 deletions(-)
---
diff --git a/python-pytest-black.spec b/python3-pytest-black.spec
similarity index 50%
rename from python-pytest-black.spec
rename to python3-pytest-black.spec
index 0896837..46abdfd 100644
--- a/python-pytest-black.spec
+++ b/python3-pytest-black.spec
@@ -1,31 +1,19 @@
 #
 # Conditional build:
 %bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 Summary:	pytest plugin to enable format checking with black
 Summary(pl.UTF-8):	Wtyczka pytesta do sprawdzania formatowania przy użyciu modułu black
-Name:		python-pytest-black
-Version:	0.3.12
-Release:	6
+Name:		python3-pytest-black
+Version:	0.6.0
+Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/pytest-black/
-Source0:	https://files.pythonhosted.org/packages/source/p/pytest-black/pytest-black-%{version}.tar.gz
-# Source0-md5:	5c44840754f9edfb5c775768aa07990a
+Source0:	https://files.pythonhosted.org/packages/source/p/pytest-black/pytest_black-%{version}.tar.gz
+# Source0-md5:	7acfa0e0aaeed6f7bc164164f8594790
 Patch0:		%{name}-pytest.patch
 URL:		https://pypi.org/project/pytest-black/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-BuildRequires:	python-setuptools_scm
-%if %{with tests}
-BuildRequires:	python-pytest >= 3.5.0
-BuildRequires:	python-toml
-%endif
-%endif
-%if %{with python3}
 BuildRequires:	python3-modules >= 1:3.6
 BuildRequires:	python3-setuptools
 BuildRequires:	python3-setuptools_scm
@@ -34,7 +22,6 @@ BuildRequires:	python3-black >= 19.3b0
 BuildRequires:	python3-pytest >= 6
 BuildRequires:	python3-toml
 %endif
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 Requires:	python-modules >= 1:2.7
@@ -49,36 +36,11 @@ A pytest plugin to enable format checking with black
 Wtyczka pytesta do sprawdzania formatowania przy użyciu modułu black
 <https://github.com/ambv/black>.
 
-%package -n python3-pytest-black
-Summary:	pytest plugin to enable format checking with black
-Summary(pl.UTF-8):	Wtyczka pytesta do sprawdzania formatowania przy użyciu modułu black
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.6
-
-%description -n python3-pytest-black
-A pytest plugin to enable format checking with black
-<https://github.com/ambv/black>.
-
-%description -n python3-pytest-black -l pl.UTF-8
-Wtyczka pytesta do sprawdzania formatowania przy użyciu modułu black
-<https://github.com/ambv/black>.
-
 %prep
-%setup -q -n pytest-black-%{version}
+%setup -q -n pytest_black-%{version}
 %patch -P 0 -p1
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS="pytest_black" \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
@@ -86,37 +48,18 @@ PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTEST_PLUGINS="pytest_black" \
 %{__python3} -m pytest tests
 %endif
-%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
 %py3_install
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc LICENSE README.md
-%{py_sitescriptdir}/pytest_black.py[co]
-%{py_sitescriptdir}/pytest_black-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-pytest-black
-%defattr(644,root,root,755)
-%doc LICENSE README.md
 %{py3_sitescriptdir}/pytest_black.py
 %{py3_sitescriptdir}/__pycache__/pytest_black.cpython-*.py[co]
 %{py3_sitescriptdir}/pytest_black-%{version}-py*.egg-info
-%endif
diff --git a/python-pytest-black-pytest.patch b/python3-pytest-black-pytest.patch
similarity index 100%
rename from python-pytest-black-pytest.patch
rename to python3-pytest-black-pytest.patch
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-black.git/commitdiff/fd0a6c1f0eed2bcbf1755493081102ea68fe0a03



More information about the pld-cvs-commit mailing list