[packages/python-yagot: 1/2] - new

qboosh qboosh at pld-linux.org
Sat Feb 14 10:41:59 CET 2026


commit 4ec6ab169f40ecc63cd98f9778e2b298f130d763
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Feb 14 10:41:33 2026 +0100

    - new

 python-yagot.spec | 155 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 155 insertions(+)
---
diff --git a/python-yagot.spec b/python-yagot.spec
new file mode 100644
index 0000000..af91862
--- /dev/null
+++ b/python-yagot.spec
@@ -0,0 +1,155 @@
+#
+# Conditional build:
+%bcond_with	doc	# Sphinx documentation (not in sdist)
+%bcond_with	tests	# unit tests (not in sdist)
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	Yet Another Garbage Object Tracker for Python
+Summary(pl.UTF-8):	Yet Another Garbage Object Tracker - kolejne narzędzie do śledzenia opuszczonych obiektów w Pythonie
+Name:		python-yagot
+Version:	0.5.0
+Release:	1
+License:	Apache 2.0
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/yagot/
+Source0:	https://files.pythonhosted.org/packages/source/y/yagot/yagot-%{version}.tar.gz
+# Source0-md5:	1e95a3d733b26c08a262a19238ee6d08
+URL:		https://pypi.org/project/yagot/
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.7
+BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-colorama >= 0.3.9
+BuildRequires:	python-pytest >= 4.3.1
+BuildRequires:	python-testfixtures >= 0.9.0
+BuildRequires:	python-six >= 1.10.0
+%endif
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.4
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-colorama >= 0.3.9
+BuildRequires:	python3-pytest >= 4.3.1
+BuildRequires:	python3-testfixtures >= 0.9.0
+BuildRequires:	python3-six >= 1.10.0
+%endif
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	python3-sphinx_git >= 10.1.1
+BuildRequires:	python3-sphinxcontrib-fulltoc >= 1.2.0
+BuildRequires:	sphinx-pdg-3 >= 1.7.6
+%endif
+Requires:	python-modules >= 1:2.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Yagot (Yet Another Garbage Object Tracker) is a tool for Python
+developers to help find issues with garbage collection and memory
+leaks.
+
+%description -l pl.UTF-8
+Yagot (Yet Another Garbage Object Tracker) to narzędzie pomagające
+programistom Pythona w znajdowaniu problemów z odśmiecaniem i
+wyciekami pamięci.
+
+%package -n python3-yagot
+Summary:	Yet Another Garbage Object Tracker for Python
+Summary(pl.UTF-8):	Yet Another Garbage Object Tracker - kolejne narzędzie do śledzenia opuszczonych obiektów w Pythonie
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.4
+
+%description -n python3-yagot
+Yagot (Yet Another Garbage Object Tracker) is a tool for Python
+developers to help find issues with garbage collection and memory
+leaks.
+
+%description -n python3-yagot -l pl.UTF-8
+Yagot (Yet Another Garbage Object Tracker) to narzędzie pomagające
+programistom Pythona w znajdowaniu problemów z odśmiecaniem i
+wyciekami pamięci.
+
+%package apidocs
+Summary:	API documentation for Python yagot module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona yagot
+Group:		Documentation
+
+%description apidocs
+API documentation for Python yagot module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona yagot.
+
+%prep
+%setup -q -n yagot-%{version}
+
+cp yagot.egg-info/requires.txt requirements.txt
+%{__rm} -r yagot.egg-info
+
+%build
+%if %{with python2}
+%py_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python} -m pytest tests
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests
+%endif
+%endif
+
+%if %{with doc}
+%{__make} -C docs html \
+	SPHINXBUILD=sphinx-build-3
+%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 README.rst
+%{py_sitescriptdir}/yagot
+%{py_sitescriptdir}/yagot_pytest
+%{py_sitescriptdir}/yagot-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-yagot
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/yagot
+%{py3_sitescriptdir}/yagot_pytest
+%{py3_sitescriptdir}/yagot-%{version}-py*.egg-info
+%endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-yagot.git/commitdiff/a3f950e983e7532db28759c6587a1039d7abf5d0



More information about the pld-cvs-commit mailing list