From 8f6556bdc2c09d833b548ec74d4975ed3c6d0a482c4bd957bb0cdf7220e31ab9 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 20 May 2025 10:00:43 +0000 Subject: [PATCH] - Update to 8.21.0 * Fix pyproject license deprecation warnings * Drop Python 3.8 * Use Python 3.11 for cibuildwheel * Build wheels for more architectures * Drop ppc64 architecture * Bump Python version since <3.9 is EOL OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitstruct?expand=0&rev=17 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + bitstruct-8.19.0.tar.gz | 3 ++ bitstruct-8.20.0.tar.gz | 3 ++ bitstruct-8.21.0.tar.gz | 3 ++ python-bitstruct.changes | 77 ++++++++++++++++++++++++++++++++++++++++ python-bitstruct.spec | 59 ++++++++++++++++++++++++++++++ 7 files changed, 169 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 bitstruct-8.19.0.tar.gz create mode 100644 bitstruct-8.20.0.tar.gz create mode 100644 bitstruct-8.21.0.tar.gz create mode 100644 python-bitstruct.changes create mode 100644 python-bitstruct.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/bitstruct-8.19.0.tar.gz b/bitstruct-8.19.0.tar.gz new file mode 100644 index 0000000..907c813 --- /dev/null +++ b/bitstruct-8.19.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d75ba9dded85c17e885a209a00eb8e248ee40762149f2f2a79360ca857467dac +size 35631 diff --git a/bitstruct-8.20.0.tar.gz b/bitstruct-8.20.0.tar.gz new file mode 100644 index 0000000..a16437c --- /dev/null +++ b/bitstruct-8.20.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6b16a93097313f2a6c146640c93e5f988a39c33364f8c20a4286ac1c5ed5dae +size 35637 diff --git a/bitstruct-8.21.0.tar.gz b/bitstruct-8.21.0.tar.gz new file mode 100644 index 0000000..1a3a3b8 --- /dev/null +++ b/bitstruct-8.21.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff0be4968a45caf8688e075f55cca7a3fe9212b069ba67e5b27b0926a11948ac +size 35597 diff --git a/python-bitstruct.changes b/python-bitstruct.changes new file mode 100644 index 0000000..530e1c5 --- /dev/null +++ b/python-bitstruct.changes @@ -0,0 +1,77 @@ +------------------------------------------------------------------- +Tue May 20 09:11:02 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 8.21.0 + * Fix pyproject license deprecation warnings + * Drop Python 3.8 + * Use Python 3.11 for cibuildwheel + * Build wheels for more architectures + * Drop ppc64 architecture + * Bump Python version since <3.9 is EOL + +------------------------------------------------------------------- +Mon Feb 24 08:14:55 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 8.20.0 + * Python 3.13 instead of 3.7. + * Bump CI artifact to v4. + * CI release stuff. + +------------------------------------------------------------------- +Wed Nov 29 12:21:43 UTC 2023 - Dirk Müller + +- update to 8.19.0: + * Python 3.12 support + * raise minimum python version to 3.7 because of setuptools + compatibility + * try to fix pytest command + * do not limit max. parallel CI jobs + * use pytest + * remove verbose output + +------------------------------------------------------------------- +Sun May 7 18:50:29 UTC 2023 - Dirk Müller + +- update to 8.17.0: + * Text encoding and error action to unpack operations + * Fix memory leak + * Fix Text encoding and Errors to compile + +------------------------------------------------------------------- +Fri Sep 9 19:22:57 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 8.15.1. + * support bytearray unpacking for CompiledFormats + +- Update to 8.15.0. + * support bytearray unpacking + +- Update to 8.14.1. + * c implementation: fix unpacking of truncated data in the presence of padding + +- Update to 8.14.0. + * fix segmentation faults on CI + * C implementation: allow partial decoding of truncated data + * python implementation: allow partial decoding of truncated data + * Test on more Python versions. + +- Update to 8.13.0. + * Use PyFloat_Pack2() on Python 3.11a7 + * Update bitstream library. + +------------------------------------------------------------------- +Fri May 21 09:39:29 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest_arch macro + +------------------------------------------------------------------- +Tue Jul 21 05:57:35 UTC 2020 - Steve Kowalik + +- Update to 8.11.0: + * Add support for copy and deepcopy inC extension. + * Only build C extension for CPython 3. + +------------------------------------------------------------------- +Fri Apr 3 15:07:22 UTC 2020 - Martin Hauke + +- Initial package, version 8.9.0 diff --git a/python-bitstruct.spec b/python-bitstruct.spec new file mode 100644 index 0000000..0a0cfa9 --- /dev/null +++ b/python-bitstruct.spec @@ -0,0 +1,59 @@ +# +# spec file for package python-bitstruct +# +# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2020, Martin Hauke +# +# 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-bitstruct +Version: 8.21.0 +Release: 0 +Summary: Interpret strings as packed binary data +License: MIT +URL: https://github.com/eerimoq/bitstruct +Source: https://files.pythonhosted.org/packages/source/b/bitstruct/bitstruct-%{version}.tar.gz +BuildRequires: %{python_module devel >= 3.7} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%python_subpackages + +%description +This module is intended to have a similar interface as the python struct +module, but working on bits instead of primitive data types (char, int, ...). + +%prep +%setup -q -n bitstruct-%{version} + +%build +export CFLAGS="%{optflags}" +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%pyunittest_arch discover -v tests + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitearch}/bitstruct* + +%changelog