[packages/python3-altgraph] Up to 0.17.4

baggins baggins at pld-linux.org
Sat Aug 16 10:16:23 CEST 2025


commit 215fda2c6a3bb04bae4480d5de91435d4fc25973
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Aug 16 12:16:03 2025 +0200

    Up to 0.17.4

 python3-altgraph.spec | 67 ++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 47 insertions(+), 20 deletions(-)
---
diff --git a/python3-altgraph.spec b/python3-altgraph.spec
index b693413..c6bbb4c 100644
--- a/python3-altgraph.spec
+++ b/python3-altgraph.spec
@@ -1,19 +1,29 @@
-# %bcond_without	tests	# do not perform "make test"
+#
+# Conditional build:
+%bcond_without	doc	# API documentation
+%bcond_without	tests	# unit tests
 
-%define 	module	altgraph
+%define		module	altgraph
 Summary:	Graph (network) package
 Name:		python-%{module}
-Version:	0.15
+Version:	0.17.4
 Release:	1
-License:	zlib/libpng
+License:	MIT
 Group:		Development/Languages/Python
-Source0:	http://pypi.debian.net/altgraph/altgraph-%{version}.tar.gz
-# Source0-md5:	e47d24b773a262ceb5e3cce79c4c991c
+Source0:	https://files.pythonhosted.org/packages/source/a/altgraph/%{module}-%{version}.tar.gz
+# Source0-md5:	6d84489cb25caed3f2033e53719c45c2
 URL:		http://pypi.python.org/pypi/altgraph
+BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-setuptools
+%if %{with tests}
+#BuildRequires:	python3-
+%endif
 BuildRequires:	rpm-pythonprov
-# if py_postclean is used
-BuildRequires:	rpmbuild(macros) >= 1.710
-Requires:	python-modules
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	sphinx-pdg-3
+%endif
+Requires:	python3-modules >= 1:3.2
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -22,28 +32,45 @@ altgraph is a fork of graphlib: a graph (network) package for
 constructing graphs, BFS and DFS traversals, topological sort,
 shortest paths, etc. with graphviz output.
 
+%package apidocs
+Summary:	API documentation for Python %{module} module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona %{module}
+Group:		Documentation
+
+%description apidocs
+API documentation for Python %{module} module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona %{module}.
+
 %prep
 %setup -q -n altgraph-%{version}
 
 %build
-%py_build
+%py3_build
+
+%if %{with tests}
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest altgraph_tests
+%endif
+
+%if %{with doc}
+%{__make} -C doc html \
+	SPHINXBUILD=sphinx-build-3
+rm -rf docs/_build/html/_sources
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%py_install
-
-%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
-%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
-%py_postclean
+%py3_install
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%dir %{py_sitescriptdir}/%{module}
-%{py_sitescriptdir}/%{module}/*.py[co]
-%if "%{py_ver}" > "2.4"
-%{py_sitescriptdir}/%{module}*.egg-info
-%endif
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-altgraph.git/commitdiff/215fda2c6a3bb04bae4480d5de91435d4fc25973



More information about the pld-cvs-commit mailing list