From 225ce0a55abc3d8115d0bea89354db4d3323a3db67fef29663f5f462c9fb4a58 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 2 May 2025 03:23:14 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tinyrecord?expand=0&rev=6 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + python-tinyrecord.changes | 22 ++++++++++++++ python-tinyrecord.spec | 61 +++++++++++++++++++++++++++++++++++++++ v0.2.0.tar.gz | 3 ++ 5 files changed, 110 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-tinyrecord.changes create mode 100644 python-tinyrecord.spec create mode 100644 v0.2.0.tar.gz 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/python-tinyrecord.changes b/python-tinyrecord.changes new file mode 100644 index 0000000..8be16be --- /dev/null +++ b/python-tinyrecord.changes @@ -0,0 +1,22 @@ +------------------------------------------------------------------- +Fri May 2 03:22:45 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Wed Nov 3 07:48:26 UTC 2021 - Steve Kowalik + +- Remove unneeded Build-Requires on pytest-runner. + +------------------------------------------------------------------- +Thu Oct 15 07:03:24 UTC 2020 - Dirk Mueller + +- update to 0.2.0: + * Fixes for TinyDB 4.x + * drop support for python 2.x + +------------------------------------------------------------------- +Thu May 9 11:03:35 AM UTC 2019 - John Vandenberg + +- Initial spec for v0.1.5 diff --git a/python-tinyrecord.spec b/python-tinyrecord.spec new file mode 100644 index 0000000..fb4a4e0 --- /dev/null +++ b/python-tinyrecord.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-tinyrecord +# +# 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/ +# + + +%global skip_python2 1 +Name: python-tinyrecord +Version: 0.2.0 +Release: 0 +Summary: Atomic transactions for TinyDB +License: MIT +URL: https://github.com/eugene-eeo/tinyrecord +Source: https://github.com/eugene-eeo/tinyrecord/archive/v%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module tinydb} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-tinydb +BuildArch: noarch + +%python_subpackages + +%description +Atomic transactions for TinyDB. + +%prep +%setup -q -n tinyrecord-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest tests.py + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/tinyrecord +%{python_sitelib}/tinyrecord-%{version}.dist-info + +%changelog diff --git a/v0.2.0.tar.gz b/v0.2.0.tar.gz new file mode 100644 index 0000000..a92cf45 --- /dev/null +++ b/v0.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a66bbac2a4e3e308cdee6dc7c24cfdd565522db60a6344a9f8333a06f4d55735 +size 5429