[packages/python-assertpy] - new

qboosh qboosh at pld-linux.org
Wed Dec 10 05:41:16 CET 2025


commit 09703f56ad9cda0feb4417f1662c71121977429c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Dec 10 05:41:21 2025 +0100

    - new

 python-assertpy.spec | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 95 insertions(+)
---
diff --git a/python-assertpy.spec b/python-assertpy.spec
new file mode 100644
index 0000000..10ae22e
--- /dev/null
+++ b/python-assertpy.spec
@@ -0,0 +1,95 @@
+#
+# Conditional build:
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	Simple assertion library for unit testing in python with a fluent API
+Summary(pl.UTF-8):	Prosta biblioteka zapewnień do testów jednostkowych w Pythonie z płynnym API
+Name:		python-assertpy
+Version:	1.1
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/assertpy/
+Source0:	https://files.pythonhosted.org/packages/source/a/assertpy/assertpy-%{version}.tar.gz
+# Source0-md5:	f9bd832653d6372159640a093e2b3220
+URL:		https://pypi.org/project/assertpy/
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.7
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.4
+# distutils
+BuildRequires:	python3-setuptools
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Simple assertions library for unit testing in Python with a nice
+fluent API. Supports both Python 2 and 3.
+
+%description -l pl.UTF-8
+Prosta biblioteka zapewnień do testów jednostkowych w Pythonie z
+ładnym, płynnym API. Obsługuje Pythona 2 i 3.
+
+%package -n python3-assertpy
+Summary:	Simple assertion library for unit testing in python with a fluent API
+Summary(pl.UTF-8):	Prosta biblioteka zapewnień do testów jednostkowych w Pythonie z płynnym API
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.4
+
+%description -n python3-assertpy
+Simple assertions library for unit testing in Python with a nice
+fluent API. Supports both Python 2 and 3.
+
+%description -n python3-assertpy -l pl.UTF-8
+Prosta biblioteka zapewnień do testów jednostkowych w Pythonie z
+ładnym, płynnym API. Obsługuje Pythona 2 i 3.
+
+%prep
+%setup -q -n assertpy-%{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 LICENSE
+%{py_sitescriptdir}/assertpy
+%{py_sitescriptdir}/assertpy-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-assertpy
+%defattr(644,root,root,755)
+%doc LICENSE
+%{py3_sitescriptdir}/assertpy
+%{py3_sitescriptdir}/assertpy-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-assertpy.git/commitdiff/09703f56ad9cda0feb4417f1662c71121977429c



More information about the pld-cvs-commit mailing list