[packages/python3-pytest-mysql] Initial

arekm arekm at pld-linux.org
Fri Apr 24 10:14:29 CEST 2026


commit 9cda5b896376ffaad7b1455be88e8393fa1208f5
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Apr 24 10:14:01 2026 +0200

    Initial

 python3-pytest-mysql.spec | 71 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 71 insertions(+)
---
diff --git a/python3-pytest-mysql.spec b/python3-pytest-mysql.spec
new file mode 100644
index 0000000..ce16f3e
--- /dev/null
+++ b/python3-pytest-mysql.spec
@@ -0,0 +1,71 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests (require running MySQL server)
+
+Summary:	MySQL process and client fixtures for pytest
+Summary(pl.UTF-8):	Wtyczka pytesta z wyposażeniami procesu i klienta MySQL-a
+Name:		python3-pytest-mysql
+Version:	4.0.0
+Release:	1
+License:	LGPL v3+
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/pytest-mysql/
+Source0:	https://files.pythonhosted.org/packages/source/p/pytest-mysql/pytest_mysql-%{version}.tar.gz
+# Source0-md5:	add278a4d9679057003f872735bceb7d
+URL:		https://pypi.org/project/pytest-mysql/
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.10
+BuildRequires:	python3-setuptools >= 1:61
+%if %{with tests}
+BuildRequires:	python3-PyMySQL >= 1.1.1
+BuildRequires:	python3-mirakuru >= 2.6.0
+BuildRequires:	python3-packaging >= 23
+BuildRequires:	python3-port-for >= 0.7.3
+BuildRequires:	python3-pytest >= 8.4
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+Requires:	python3-PyMySQL >= 1.1.1
+Requires:	python3-mirakuru >= 2.6.0
+Requires:	python3-modules >= 1:3.10
+Requires:	python3-packaging >= 23
+Requires:	python3-port-for >= 0.7.3
+Requires:	python3-pytest >= 8.4
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pytest-mysql is a pytest plugin that provides process and client
+fixtures for tests that rely on a running MySQL or MariaDB database.
+
+%description -l pl.UTF-8
+pytest-mysql to wtyczka pytesta dostarczająca wyposażenia procesu
+oraz klienta do testów wymagających działającej bazy MySQL lub
+MariaDB.
+
+%prep
+%setup -q -n pytest_mysql-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_mysql.plugin \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS.rst CHANGES.rst COPYING COPYING.lesser README.rst
+%{py3_sitescriptdir}/pytest_mysql
+%{py3_sitescriptdir}/pytest_mysql-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-mysql.git/commitdiff/9cda5b896376ffaad7b1455be88e8393fa1208f5



More information about the pld-cvs-commit mailing list