From a7b97e0bd02a934ac2fb7774c4ab8f0528062006d98ce62c7cc61592c698c236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 13 May 2025 15:11:21 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-altgraph?expand=0&rev=25 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + altgraph-0.17.4.tar.gz | 3 ++ python-altgraph.changes | 71 ++++++++++++++++++++++++++++++++++++++ python-altgraph.spec | 75 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 173 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 altgraph-0.17.4.tar.gz create mode 100644 python-altgraph.changes create mode 100644 python-altgraph.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/altgraph-0.17.4.tar.gz b/altgraph-0.17.4.tar.gz new file mode 100644 index 0000000..cd1ee6d --- /dev/null +++ b/altgraph-0.17.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b5afbb98f6c4dcadb2e2ae6ab9fa994bbb8c1d75f4fa96d340f9437ae454406 +size 48418 diff --git a/python-altgraph.changes b/python-altgraph.changes new file mode 100644 index 0000000..a3f721b --- /dev/null +++ b/python-altgraph.changes @@ -0,0 +1,71 @@ +------------------------------------------------------------------- +Tue May 13 13:08:39 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Wed Oct 4 09:51:15 UTC 2023 - Dirk Müller + +- update to 0.17.4: + * python 3.12 support + +------------------------------------------------------------------- +Sat Jun 10 10:01:58 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Wed Oct 12 02:39:57 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 0.17.3 + * Update classifiers for Python 3.11 + +------------------------------------------------------------------- +Mon May 2 21:21:32 UTC 2022 - Ferdinand Thiessen + +- Update to 0.17.2 + * Remove deprecated U prefix, fixes Python 3.9 + * Explicitly mark python 3.10 as supported + +------------------------------------------------------------------- +Mon May 17 07:12:19 UTC 2021 - pgajdos@suse.com + +- use %pytest macro + +------------------------------------------------------------------- +Fri Apr 17 11:15:05 UTC 2020 - Marketa Calabkova + +- Update to 0.17 + * Explicitly mark Python 3.8 as supported in wheel metadata. + * Migrate from Bitbucket to GitHub + * Run black on the entire repository + +------------------------------------------------------------------- +Thu Nov 7 16:15:07 UTC 2019 - Matej Cepl + +- Run through spec-cleaner + +------------------------------------------------------------------- +Tue Dec 4 12:45:31 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Fri Nov 16 19:05:40 UTC 2018 - Todd R + +- Update to version 0.16.1 + * Explicitly mark Python 3.7 as supported in wheel metadata. +- Update to version 0.16 + * Add LICENSE file + +------------------------------------------------------------------- +Thu May 24 17:26:43 UTC 2018 - toddrme2178@gmail.com + +- Update to version 0.15 + * ObjectGraph.get_edges, ObjectGraph.getEdgeData and ObjectGraph.updateEdgeData accept None as the node to get and treat this as an alias for self (as other methods already did). +- Spec file cleanups + +------------------------------------------------------------------- +Thu Oct 19 00:54:53 UTC 2017 - toddrme2178@gmail.com + +- Initial version diff --git a/python-altgraph.spec b/python-altgraph.spec new file mode 100644 index 0000000..3ee468d --- /dev/null +++ b/python-altgraph.spec @@ -0,0 +1,75 @@ +# +# spec file for package python-altgraph +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-altgraph +Version: 0.17.4 +Release: 0 +Summary: Python graph (network) package +License: MIT +URL: https://github.com/ronaldoussoren/altgraph/ +Source: https://files.pythonhosted.org/packages/source/a/altgraph/altgraph-%{version}.tar.gz +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +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 -n %{name}-doc +Summary: Documentation for %{name} +Provides: %{python_module altgraph-doc = %{version}} + +%description -n %{name}-doc +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. + +%prep +%setup -q -n altgraph-%{version} + +%build +%pyproject_wheel +cd doc && make html + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/altgraph +%{python_sitelib}/altgraph-%{version}*-info + +%files -n %{name}-doc +%doc doc/_build/html/ +%license LICENSE + +%changelog