[packages/python-pycotap] new
atler
atler at pld-linux.org
Wed Aug 27 21:25:41 CEST 2025
commit 3d276741ca8fb62d9af8587990b8a7d3c8da5583
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Aug 27 21:25:06 2025 +0200
new
python-pycotap.spec | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 90 insertions(+)
---
diff --git a/python-pycotap.spec b/python-pycotap.spec
new file mode 100644
index 0000000..c25e9bb
--- /dev/null
+++ b/python-pycotap.spec
@@ -0,0 +1,90 @@
+#
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: Tiny test runner that outputs TAP results to standard output
+Name: python-pycotap
+Version: 1.3.1
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/pycotap/
+Source0: https://files.pythonhosted.org/packages/source/p/pycotap/pycotap-%{version}.tar.gz
+# Source0-md5: ed5c3d9700ddf986aaddab66c9f92a58
+URL: https://pypi.org/project/pycotap/
+%if %{with python2}
+BuildRequires: python
+BuildRequires: python-modules
+BuildRequires: python-setuptools
+%endif
+%if %{with python3}
+BuildRequires: python3
+BuildRequires: python3-modules
+BuildRequires: python3-setuptools
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python-modules
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pycotap is a simple Python test runner for unittest that outputs Test
+Anything Protocol results directly to standard output.
+
+%package -n python3-pycotap
+Summary: Tiny test runner that outputs TAP results to standard output
+Group: Libraries/Python
+Requires: python3-modules
+
+%description -n python3-pycotap
+pycotap is a simple Python test runner for unittest that outputs Test
+Anything Protocol results directly to standard output.
+
+%prep
+%setup -q -n pycotap-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%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 COPYING README.md
+%dir %{py_sitescriptdir}/pycotap
+%{py_sitescriptdir}/pycotap/*.py[co]
+%{py_sitescriptdir}/pycotap-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-pycotap
+%defattr(644,root,root,755)
+%doc COPYING README.md
+%dir %{py3_sitescriptdir}/pycotap
+%{py3_sitescriptdir}/pycotap/*.py
+%{py3_sitescriptdir}/pycotap/__pycache__
+%{py3_sitescriptdir}/pycotap-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pycotap.git/commitdiff/3d276741ca8fb62d9af8587990b8a7d3c8da5583
More information about the pld-cvs-commit
mailing list