[packages/python3-pytest-mypy] - new
qboosh
qboosh at pld-linux.org
Sat Mar 14 21:19:42 CET 2026
commit 25d6047dc0f063a3a88c38630dad3d38d54b9558
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 14 21:19:45 2026 +0100
- new
python3-pytest-mypy.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
---
diff --git a/python3-pytest-mypy.spec b/python3-pytest-mypy.spec
new file mode 100644
index 0000000..c2705c7
--- /dev/null
+++ b/python3-pytest-mypy.spec
@@ -0,0 +1,64 @@
+#
+# Conditional build:
+%bcond_with tests # unit tests (failing)
+
+Summary: Pytest plugin for Mypy
+Summary(pl.UTF-8): Wtyczka pytesta do Mypy
+Name: python3-pytest-mypy
+Version: 1.0.1
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/pytest-mypy/
+Source0: https://files.pythonhosted.org/packages/source/p/pytest-mypy/pytest_mypy-%{version}.tar.gz
+# Source0-md5: f49078e300c3c9a542ec0881255cc844
+URL: https://pypi.org/project/pytest-mypy/
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.8
+BuildRequires: python3-setuptools >= 1:61.0
+BuildRequires: python3-setuptools_scm >= 7.1
+%if %{with tests}
+BuildRequires: python3-filelock >= 3.0
+BuildRequires: python3-mypy >= 1.0
+BuildRequires: python3-pytest >= 7.0
+BuildRequires: python3-pytest-xdist
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.8
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Mypy static type checker plugin for pytest.
+
+%description -l pl.UTF-8
+Wtyczka statycznego sprawdzania typów Mypy dla pytesta.
+
+%prep
+%setup -q -n pytest_mypy-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_mypy,xdist.plugin \
+PYTHONPATH=$(pwd)/src \
+%{__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 LICENSE README.rst changelog.md
+%{py3_sitescriptdir}/pytest_mypy
+%{py3_sitescriptdir}/pytest_mypy-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-mypy.git/commitdiff/25d6047dc0f063a3a88c38630dad3d38d54b9558
More information about the pld-cvs-commit
mailing list