17
0

26 Commits

Author SHA256 Message Date
1f3801caa1 Accepting request 1300103 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1300103
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=39
2025-08-19 14:44:00 +00:00
d09acb2517 Accepting request 1298866 from home:glaubitz:branches:devel:languages:python
- Update to 3.6.0
  * add `util.random_k()`, see #237
  * add `util.sum_indices()`
  * optimize `util.xor_indices()`
  * move development files from `examples/` to `devel/`
- Adjust file paths for removing .gitignore files from source

OBS-URL: https://build.opensuse.org/request/show/1298866
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=76
2025-08-11 21:28:20 +00:00
520fe0b7f9 Accepting request 1296292 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1296292
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=38
2025-07-30 09:45:06 +00:00
34a86f1e48 - update to 3.5.2:
* optimize util.random_p() by also using bitwise AND in final
    step
  * fix DeprecationWarning regarding u type code
  * add verification tests for internals of util.random_p()
  * optimize util.random_p() for n < 100
  * add Random Bitarrays documentation
  * add statistical tests for random functions

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=74
2025-07-22 09:53:24 +00:00
9fe94a3d3b Accepting request 1292327 from devel:languages:python
- update to 3.5.0:
  * add util.random_p()
  * improve sparse compression testing

OBS-URL: https://build.opensuse.org/request/show/1292327
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=37
2025-07-14 08:51:13 +00:00
4b5b222291 - update to 3.5.0:
* add util.random_p()
  * improve sparse compression testing

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=72
2025-07-12 11:38:45 +00:00
083ae7aa16 Accepting request 1290225 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1290225
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=36
2025-07-06 15:07:44 +00:00
d504055601 Accepting request 1290181 from home:glaubitz:branches:devel:languages:python
- Update to 3.4.3
  * minor updates to documentation
  * C-level:
    - simplify and speedup `extend_unicode01()`
    - customize `resize_lite()` - avoid unused code
    - use `PyTypeObject` for bitarray type object in `_util.c` to
      be consistent with `_bitarray.c`
    - add and improve comments to implementation of sparse bitarray
      compression
    - simplify `sc_count()`

OBS-URL: https://build.opensuse.org/request/show/1290181
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=70
2025-07-03 12:30:22 +00:00
bb4be5aea4 Accepting request 1283506 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1283506
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=35
2025-06-06 20:43:30 +00:00
ceba5c988a - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=68
2025-06-06 05:39:39 +00:00
df26ef146a Accepting request 1281296 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1281296
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=34
2025-05-30 12:39:22 +00:00
80ee3a42fd Accepting request 1281265 from home:glaubitz:branches:devel:languages:python
- Update to 3.4.2
  * extend documentation of
    [compression of sparse bitarrays](sparse_compression.rst)
  * `util.sc_decode()` and `util.vl_decode()` now raise `StopIteration`
    instead of `ValueError` when unexpected end of stream is encountered
  * add debug mode tests for `read_n()`, `write_n()` and `count_from_word()`

OBS-URL: https://build.opensuse.org/request/show/1281265
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=66
2025-05-30 08:23:00 +00:00
81c253793b Accepting request 1278335 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1278335
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=33
2025-05-20 07:38:14 +00:00
32f326fa96 Accepting request 1278168 from home:mnhauke
- Update to version 3.4.1
  * add `pyproject.toml`, see #233
  * implement `bits2bytes()` in C.
  * optimize `delslice()` when `step` is larger than about 5.
  * consistently name `*_span()` and `*_range()` in C for
    invert, set and count.
  * organize and add tests.

OBS-URL: https://build.opensuse.org/request/show/1278168
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=64
2025-05-19 07:49:03 +00:00
2d5d75a77c Accepting request 1277385 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1277385
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=32
2025-05-14 15:02:00 +00:00
b77152449b Accepting request 1277371 from home:glaubitz:branches:devel:languages:python
- Update to 3.4.0
  * remove `.endian()` method in favor of data descriptor `.endian`
  * allow bitarray initializer `bytes` or `bytearray` to set buffer directly
  * allow calling `.extend()` with `bytes` object (although the only
    valid bytes are 0x00 and 0x01)
  * add `util.byteswap()`
  * add `util.correspond_all()`
  * fix `.reverse()` for imported buffer
  * drop Python 3.5 support
  * add tests

OBS-URL: https://build.opensuse.org/request/show/1277371
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=62
2025-05-14 10:17:20 +00:00
88a321bc50 Accepting request 1274384 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1274384
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=31
2025-05-05 20:28:37 +00:00
fb023de6b2 Accepting request 1274347 from home:glaubitz:branches:devel:languages:python
- Update to 3.3.2
  * fix off-by-one-error in check for length of count argument
    in `util.canonical_decode()`
  * simplify `util.int2ba()`
  * add tests
  * add [masked indexing example](../examples/masked.py)
  * add [tricks example](../examples/tricks.py)

OBS-URL: https://build.opensuse.org/request/show/1274347
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=60
2025-05-05 09:12:31 +00:00
d13ebcb288 Accepting request 1272311 from devel:languages:python
- update to 3.3.1:
  * remove License classifier in favor of a SPDX license
    expression, #231
  * reorganize and cleanup many tests
  * add optional group and sep arguments' to .to01(), #230 - as
    well as util.ba2hex() and util.ba2base()
  * ignore whitespace in util.base2ba() and util.hex2ba()
  * check for embedded nul characters when extending (and
    initializing) bitarray from string
  * improve testing
  * add double precision floating point number example

OBS-URL: https://build.opensuse.org/request/show/1272311
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=30
2025-04-24 15:26:00 +00:00
5ad837e716 - update to 3.3.1:
* remove License classifier in favor of a SPDX license
    expression, #231
  * reorganize and cleanup many tests
  * add optional group and sep arguments' to .to01(), #230 - as
    well as util.ba2hex() and util.ba2base()
  * ignore whitespace in util.base2ba() and util.hex2ba()
  * check for embedded nul characters when extending (and
    initializing) bitarray from string
  * improve testing
  * add double precision floating point number example

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=58
2025-04-24 06:53:08 +00:00
e6be0ea6d8 Accepting request 1255999 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1255999
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=29
2025-03-25 21:13:05 +00:00
3e704944c6 Accepting request 1255980 from home:nkrapp:branches:devel:languages:python
- Update to 3.2.0
  * add `util.xor_indices()`, #229
  * add Hamming code example
- Update to 3.1.1
  * updated `pythoncapi_compat.h` for pypy3.11 support, see #227
  * use `__builtin_parityll()` when available in `util.parity()`
  * add `parity_64()` to header
  * simplify some tests
  * add LFSR example
- Update to 3.1.0
  * allow mask assignment to bitarrays, see #225
  * add missing masked operations to pyi-file
  * refactor `resize()` and avoid overallocation when downsizing buffer
  * update `build_wheels.yml`
  * fix some typos
  * minor simplifications
  * rename `growth/` example to `resize/` and add tests for `resize()`
  * update gene example
  * add comments

OBS-URL: https://build.opensuse.org/request/show/1255980
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=56
2025-03-25 15:04:06 +00:00
3c1a69459f Accepting request 1218794 from devel:languages:python
- update to 3.0.0:
  * see Bitarray 3 transition
  * remove Python 2.7 support
  * .decode() now returns iterator (equivalent to past
    .iterdecode())
  * .search() now returns iterator (equivalent to past
    .itersearch())
  * remove .iterdecode() and .itersearch()
  * remove util.rindex(), use .index(..., right=1) instead,
    deprecated since 2.9
  * remove util.make_endian(), use bitarray(..., endian=...)
    instead, deprecated since 2.9
  * remove hackish support for bitarray() handling unpickling,
    see detailed explaination in #207 - closes #206
  * add official Python 3.13 support
  * update cibuildwheel to 2.21.3
  * minor simplifications
  * fix some typos

OBS-URL: https://build.opensuse.org/request/show/1218794
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=28
2024-10-28 14:23:05 +00:00
a5ac190990 - update to 3.0.0:
* see Bitarray 3 transition
  * remove Python 2.7 support
  * .decode() now returns iterator (equivalent to past
    .iterdecode())
  * .search() now returns iterator (equivalent to past
    .itersearch())
  * remove .iterdecode() and .itersearch()
  * remove util.rindex(), use .index(..., right=1) instead,
    deprecated since 2.9
  * remove util.make_endian(), use bitarray(..., endian=...)
    instead, deprecated since 2.9
  * remove hackish support for bitarray() handling unpickling,
    see detailed explaination in #207 - closes #206
  * add official Python 3.13 support
  * update cibuildwheel to 2.21.3
  * minor simplifications
  * fix some typos

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=54
2024-10-28 11:36:24 +00:00
c531551b0a Accepting request 1217238 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1217238
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=27
2024-10-23 19:11:02 +00:00
b23c5c368b Accepting request 1217120 from home:yeey:OpenWebUI
package is required for SUSE AI project

OBS-URL: https://build.opensuse.org/request/show/1217120
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=52
2024-10-23 08:16:01 +00:00
4 changed files with 172 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:33c5ff01fa0241d34dcea34efc7bbb86ebcb3ad28946e23fc4970642f4554ac5
size 182432

3
bitarray-3.6.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a386dda16a306f986a752f091ac8a52156b26ee1d799a7cbce75eb83dc2516b7
size 220412

View File

@@ -1,3 +1,162 @@
-------------------------------------------------------------------
Mon Aug 11 14:06:41 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.6.0
* add `util.random_k()`, see #237
* add `util.sum_indices()`
* optimize `util.xor_indices()`
* move development files from `examples/` to `devel/`
- Adjust file paths for removing .gitignore files from source
-------------------------------------------------------------------
Tue Jul 22 09:53:19 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 3.5.2:
* optimize util.random_p() by also using bitwise AND in final
step
* fix DeprecationWarning regarding u type code
* add verification tests for internals of util.random_p()
* optimize util.random_p() for n < 100
* add Random Bitarrays documentation
* add statistical tests for random functions
-------------------------------------------------------------------
Sat Jul 12 11:38:34 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 3.5.0:
* add util.random_p()
* improve sparse compression testing
-------------------------------------------------------------------
Thu Jul 3 09:59:29 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.4.3
* minor updates to documentation
* C-level:
- simplify and speedup `extend_unicode01()`
- customize `resize_lite()` - avoid unused code
- use `PyTypeObject` for bitarray type object in `_util.c` to
be consistent with `_bitarray.c`
- add and improve comments to implementation of sparse bitarray
compression
- simplify `sc_count()`
-------------------------------------------------------------------
Fri Jun 6 05:30:55 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Fri May 30 06:40:23 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.4.2
* extend documentation of
[compression of sparse bitarrays](sparse_compression.rst)
* `util.sc_decode()` and `util.vl_decode()` now raise `StopIteration`
instead of `ValueError` when unexpected end of stream is encountered
* add debug mode tests for `read_n()`, `write_n()` and `count_from_word()`
-------------------------------------------------------------------
Sat May 17 18:02:05 UTC 2025 - Martin Hauke <mardnh@gmx.de>
- Update to version 3.4.1
* add `pyproject.toml`, see #233
* implement `bits2bytes()` in C.
* optimize `delslice()` when `step` is larger than about 5.
* consistently name `*_span()` and `*_range()` in C for
invert, set and count.
* organize and add tests.
-------------------------------------------------------------------
Wed May 14 09:31:52 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.4.0
* remove `.endian()` method in favor of data descriptor `.endian`
* allow bitarray initializer `bytes` or `bytearray` to set buffer directly
* allow calling `.extend()` with `bytes` object (although the only
valid bytes are 0x00 and 0x01)
* add `util.byteswap()`
* add `util.correspond_all()`
* fix `.reverse()` for imported buffer
* drop Python 3.5 support
* add tests
-------------------------------------------------------------------
Mon May 5 06:46:24 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.3.2
* fix off-by-one-error in check for length of count argument
in `util.canonical_decode()`
* simplify `util.int2ba()`
* add tests
* add [masked indexing example](../examples/masked.py)
* add [tricks example](../examples/tricks.py)
-------------------------------------------------------------------
Thu Apr 24 06:52:44 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 3.3.1:
* remove License classifier in favor of a SPDX license
expression, #231
* reorganize and cleanup many tests
* add optional group and sep arguments' to .to01(), #230 - as
well as util.ba2hex() and util.ba2base()
* ignore whitespace in util.base2ba() and util.hex2ba()
* check for embedded nul characters when extending (and
initializing) bitarray from string
* improve testing
* add double precision floating point number example
-------------------------------------------------------------------
Tue Mar 25 12:35:45 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Update to 3.2.0
* add `util.xor_indices()`, #229
* add Hamming code example
- Update to 3.1.1
* updated `pythoncapi_compat.h` for pypy3.11 support, see #227
* use `__builtin_parityll()` when available in `util.parity()`
* add `parity_64()` to header
* simplify some tests
* add LFSR example
- Update to 3.1.0
* allow mask assignment to bitarrays, see #225
* add missing masked operations to pyi-file
* refactor `resize()` and avoid overallocation when downsizing buffer
* update `build_wheels.yml`
* fix some typos
* minor simplifications
* rename `growth/` example to `resize/` and add tests for `resize()`
* update gene example
* add comments
-------------------------------------------------------------------
Mon Oct 28 11:36:18 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.0.0:
* see Bitarray 3 transition
* remove Python 2.7 support
* .decode() now returns iterator (equivalent to past
.iterdecode())
* .search() now returns iterator (equivalent to past
.itersearch())
* remove .iterdecode() and .itersearch()
* remove util.rindex(), use .index(..., right=1) instead,
deprecated since 2.9
* remove util.make_endian(), use bitarray(..., endian=...)
instead, deprecated since 2.9
* remove hackish support for bitarray() handling unpickling,
see detailed explaination in #207 - closes #206
* add official Python 3.13 support
* update cibuildwheel to 2.21.3
* minor simplifications
* fix some typos
-------------------------------------------------------------------
Mon Sep 30 19:41:46 UTC 2024 - Guang Yee <gyee@suse.com>
- Enable sle15_python_module_pythons.
-------------------------------------------------------------------
Mon Jan 8 20:42:40 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-bitarray
#
# Copyright (c) 2024 SUSE LLC
# 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
@@ -16,16 +16,18 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-bitarray
Version: 2.9.2
Version: 3.6.0
Release: 0
Summary: Efficient Arrays of Booleans
License: Python-2.0
URL: https://github.com/ilanschnell/bitarray
Source: https://github.com/ilanschnell/bitarray/archive/%{version}.tar.gz#/bitarray-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
# SECTION test requirements
BuildRequires: %{python_module dbm}
BuildRequires: %{python_module pytest}
@@ -52,12 +54,12 @@ length encoding, you may find this module useful.
%build
export CFLAGS="%{optflags}"
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
rm examples/growth/.gitignore
rm devel/resize/.gitignore examples/puff/.gitignore
%check
# tests don't run from within the source directory
@@ -66,6 +68,7 @@ rm examples/growth/.gitignore
%files %{python_files}
%license LICENSE
%doc examples CHANGE_LOG README.rst
%{python_sitearch}/bitarray*
%{python_sitearch}/bitarray
%{python_sitearch}/bitarray-%{version}.dist-info
%changelog