[packages/python3-icecream] - python-icecream.spec updated to 2.1.8 for python 3.8+
qboosh
qboosh at pld-linux.org
Sat Dec 6 18:14:53 CET 2025
commit 94d6a34e3fbe510ef75917c6e9c76fb9b3512d62
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Dec 6 18:15:06 2025 +0100
- python-icecream.spec updated to 2.1.8 for python 3.8+
python-icecream.spec | 121 --------------------------------------------------
python3-icecream.spec | 62 ++++++++++++++++++++++++++
2 files changed, 62 insertions(+), 121 deletions(-)
---
diff --git a/python-icecream.spec b/python-icecream.spec
deleted file mode 100644
index 78f9646..0000000
--- a/python-icecream.spec
+++ /dev/null
@@ -1,121 +0,0 @@
-#
-# Conditional build:
-%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_with python3 # CPython 3.x module (built from python3-icecream.spec)
-
-Summary: IceCream - never use print() to debug again
-Summary(pl.UTF-8): IceCream - nigdy już nie używaj print() do debugowania
-Name: python-icecream
-# keep 2.1.3 here for python2 support
-Version: 2.1.3
-Release: 1
-License: MIT
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/icecream/
-Source0: https://files.pythonhosted.org/packages/source/i/icecream/icecream-%{version}.tar.gz
-# Source0-md5: acc49d1303b886314577ff059d66a0e3
-URL: https://pypi.org/project/icecream/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-asttokens >= 2.0.1
-BuildRequires: python-colorama >= 0.3.9
-BuildRequires: python-executing >= 0.3.1
-BuildRequires: python-pygments >= 2.2.0
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.5
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-asttokens >= 2.0.1
-BuildRequires: python3-colorama >= 0.3.9
-BuildRequires: python3-executing >= 0.3.1
-BuildRequires: python3-pygments >= 2.2.0
-%endif
-%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
-Do you ever use "print()" or "log()" to debug your code? Of course you
-do. IceCream, or "ic" for short, makes print debugging a little
-sweeter.
-
-%description -l pl.UTF-8
-Czy kiedykolwiek używałeś "print()" lub "log()" przy szukaniu błędów w
-kodzie? Na pewno. IceCream, w skrócie "ic" czyni poszukiwanie błędów
-przez wypisywanie nieco przyjemniejszym.
-
-%package -n python3-icecream
-Summary: IceCream - never use print() to debug again
-Summary(pl.UTF-8): IceCream - nigdy już nie używaj print() do debugowania
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.5
-
-%description -n python3-icecream
-Do you ever use "print()" or "log()" to debug your code? Of course you
-do. IceCream, or "ic" for short, makes print debugging a little
-sweeter.
-
-%description -n python3-icecream -l pl.UTF-8
-Czy kiedykolwiek używałeś "print()" lub "log()" przy szukaniu błędów w
-kodzie? Na pewno. IceCream, w skrócie "ic" czyni poszukiwanie błędów
-przez wypisywanie nieco przyjemniejszym.
-
-%prep
-%setup -q -n icecream-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__python} -m unittest discover -s tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-%{__python3} -m unittest discover -s 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.txt README.md
-%{py_sitescriptdir}/icecream
-%{py_sitescriptdir}/icecream-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-icecream
-%defattr(644,root,root,755)
-%doc LICENSE.txt README.md
-%{py3_sitescriptdir}/icecream
-%{py3_sitescriptdir}/icecream-%{version}-py*.egg-info
-%endif
diff --git a/python3-icecream.spec b/python3-icecream.spec
new file mode 100644
index 0000000..60c2b8c
--- /dev/null
+++ b/python3-icecream.spec
@@ -0,0 +1,62 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: IceCream - never use print() to debug again
+Summary(pl.UTF-8): IceCream - nigdy już nie używaj print() do debugowania
+Name: python3-icecream
+Version: 2.1.8
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/icecream/
+Source0: https://files.pythonhosted.org/packages/source/i/icecream/icecream-%{version}.tar.gz
+# Source0-md5: 4ab353df19ef0e5fc2e03e2b24f945bf
+URL: https://pypi.org/project/icecream/
+BuildRequires: python3-modules >= 1:3.8
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-asttokens >= 2.0.1
+BuildRequires: python3-colorama >= 0.3.9
+BuildRequires: python3-executing >= 2.1.0
+BuildRequires: python3-pygments >= 2.2.0
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.8
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Do you ever use "print()" or "log()" to debug your code? Of course you
+do. IceCream, or "ic" for short, makes print debugging a little
+sweeter.
+
+%description -l pl.UTF-8
+Czy kiedykolwiek używałeś "print()" lub "log()" przy szukaniu błędów w
+kodzie? Na pewno. IceCream, w skrócie "ic" czyni poszukiwanie błędów
+przez wypisywanie nieco przyjemniejszym.
+
+%prep
+%setup -q -n icecream-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+%{__python3} -m unittest discover -s .
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.txt README.md
+%{py3_sitescriptdir}/icecream
+%{py3_sitescriptdir}/icecream-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-icecream.git/commitdiff/94d6a34e3fbe510ef75917c6e9c76fb9b3512d62
More information about the pld-cvs-commit
mailing list