From d183d1ef55082f238b51aa4a15742c0e05404e30526ce6940a51efe4e5fef457 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 5 May 2025 04:09:58 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Dumper?expand=0&rev=7 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + Dumper.py-1.2.0.tar.gz | 3 +++ python-Dumper.changes | 20 +++++++++++++++ python-Dumper.spec | 57 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 104 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Dumper.py-1.2.0.tar.gz create mode 100644 python-Dumper.changes create mode 100644 python-Dumper.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/Dumper.py-1.2.0.tar.gz b/Dumper.py-1.2.0.tar.gz new file mode 100644 index 0000000..af6a9dc --- /dev/null +++ b/Dumper.py-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af492edfd7afe76c7b8a120204520ee1a3b66883842760d1b3fe4204f488bd85 +size 11909 diff --git a/python-Dumper.changes b/python-Dumper.changes new file mode 100644 index 0000000..c632edf --- /dev/null +++ b/python-Dumper.changes @@ -0,0 +1,20 @@ +------------------------------------------------------------------- +Mon May 5 04:09:44 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + +------------------------------------------------------------------- +Tue Mar 22 07:39:54 UTC 2022 - Matej Cepl + +- Switch to the upstream tarball, when the repository is now + finally tagged (gh#jric/Dumper.py#2). + +------------------------------------------------------------------- +Sat Jan 8 08:03:17 UTC 2022 - Matej Cepl + +- Add test.py and run tests. + +------------------------------------------------------------------- +Wed Sep 15 09:57:07 UTC 2021 - Jens K. + +- Initial packaging of Dumper 1.2.0 (boo#1190410). diff --git a/python-Dumper.spec b/python-Dumper.spec new file mode 100644 index 0000000..e8ec754 --- /dev/null +++ b/python-Dumper.spec @@ -0,0 +1,57 @@ +# +# spec file for package python-Dumper +# +# 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/ +# + + +Name: python-Dumper +Version: 1.2.0 +Release: 0 +Summary: Tool to conveniently describe any Python datastructure +License: MIT +URL: https://github.com/jric/Dumper.py +Source: https://github.com/jric/Dumper.py/archive/refs/tags/%{version}.tar.gz#/Dumper.py-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +Tool to conveniently describe any Python datastructure + +%prep +%setup -q -n Dumper.py-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +$python test.py +} + +%files %{python_files} +%doc README.md +%{python_sitelib}/dumper +%{python_sitelib}/[Dd]umper-%{version}.dist-info + +%changelog