From e5384499df579068031d04b0f549cc8a01bd0852b3b5bbd4f1913c2e91738917 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:31:00 +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-py-ubjson?expand=0&rev=13 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + py-ubjson-0.16.1.tar.gz | 3 ++ python-py-ubjson.changes | 48 ++++++++++++++++++++++++++++++++ python-py-ubjson.spec | 59 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 134 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 py-ubjson-0.16.1.tar.gz create mode 100644 python-py-ubjson.changes create mode 100644 python-py-ubjson.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/py-ubjson-0.16.1.tar.gz b/py-ubjson-0.16.1.tar.gz new file mode 100644 index 0000000..92b315e --- /dev/null +++ b/py-ubjson-0.16.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9bfb8695a1c7e3632e800fb83c943bf67ed45ddd87cd0344851610c69a5a482 +size 50316 diff --git a/python-py-ubjson.changes b/python-py-ubjson.changes new file mode 100644 index 0000000..27141b1 --- /dev/null +++ b/python-py-ubjson.changes @@ -0,0 +1,48 @@ +------------------------------------------------------------------- +Wed Jun 11 05:57:23 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Thu Apr 22 20:14:34 UTC 2021 - Dirk Müller + +- update to 0.16.1: + - Make recursion unit test work in PyPy also + - Don't use C extension under PyPy. (JIT-optimized pure-Python version is + considerably faster.) + +------------------------------------------------------------------- +Tue Mar 24 07:26:32 UTC 2020 - pgajdos@suse.com + +- version update to 0.15.0 + * Fix decimal encoding bug/assert (reported by mgorny) + +------------------------------------------------------------------- +Tue Jul 23 10:52:11 UTC 2019 - Tomáš Chvátal + +- Update to 0.14.0: + - Fix DecoderException not including offset when C-extension in use, expose + property for it. + - Fix decoding via C extension reading too much data from file-like objects + - Test suite exercises both pure & extension modules when extension enabled + - Expand test suite to increase C extension (line) coverage + - Remove need for pypandoc/rst (use original README.md) + - Fix spelling errors in cli util (hoenn) + +------------------------------------------------------------------- +Fri Jun 7 08:28:55 UTC 2019 - pgajdos@suse.com + +- enable unit tests + +------------------------------------------------------------------- +Tue Apr 9 14:48:11 UTC 2019 - Bernhard Wiedemann + +- Update to 0.13.0 + * Make package build reproducible (boo#1041090) + * Fix _ubjson_decode_value case statement fallthrough + +------------------------------------------------------------------- +Mon Mar 25 15:09:44 UTC 2019 - Matěj Cepl + +- Initial packaging effort of 0.12.0 diff --git a/python-py-ubjson.spec b/python-py-ubjson.spec new file mode 100644 index 0000000..9456962 --- /dev/null +++ b/python-py-ubjson.spec @@ -0,0 +1,59 @@ +# +# spec file for package python-py-ubjson +# +# 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/ +# + + +%define modname py-ubjson +Name: python-py-ubjson +Version: 0.16.1 +Release: 0 +Summary: Universal Binary JSON encoder/decoder +License: Apache-2.0 +URL: https://github.com/Iotic-Labs/py-ubjson +Source: https://files.pythonhosted.org/packages/source/p/py-ubjson/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%python_subpackages + +%description +This is a Python v3.2+ (and 2.7+) `Universal Binary JSON` +encoder/decoder based on the `draft-12` specification. + +%prep +%setup -q -n %{modname}-%{version} + +%build +%pyproject_wheel + +%check +touch test/__init__.py +%pytest test/test.py + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%files %{python_files} +%{python_sitearch}/ubjson +%{python_sitearch}/_ubjson.cpython-*-linux-gnu.so +%{python_sitearch}/py_ubjson-%{version}.dist-info + +%changelog