12
0

77 Commits

Author SHA256 Message Date
c2b9d3c5a7 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
a1354970e2 - 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
cbefebef18 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
e2b5a71db0 - 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
d9199dfe94 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
955952485e - 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/package/show/devel:languages:python/python-bitarray?expand=0&rev=70
2025-07-03 12:30:22 +00:00
e10f4a5cb4 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
0ec2f77b62 - 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
db4926b8df 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
9a64816d18 - 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/package/show/devel:languages:python/python-bitarray?expand=0&rev=66
2025-05-30 08:23:00 +00:00
ee0767129e 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
99805b79f9 - 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/package/show/devel:languages:python/python-bitarray?expand=0&rev=64
2025-05-19 07:49:03 +00:00
9d11ad39e6 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
80822caf47 - 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/package/show/devel:languages:python/python-bitarray?expand=0&rev=62
2025-05-14 10:17:20 +00:00
4ce36c7473 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
137bc87d17 - 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/package/show/devel:languages:python/python-bitarray?expand=0&rev=60
2025-05-05 09:12:31 +00:00
9a634f45ef 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
3d35867c0e - 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
50f2894b1b 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
83983118f1 - 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/package/show/devel:languages:python/python-bitarray?expand=0&rev=56
2025-03-25 15:04:06 +00:00
7c1666c044 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
47b4d4db80 - 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
f402fddac8 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
6384fb15f2 package is required for SUSE AI project
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
afbafa38d1 Accepting request 1137632 from devel:languages:python
- update to 2.9.2:
  * optimize initialization from strings by not constantly
    resizing buffer
  * optimize util.hex2ba() and util.base2ba() by avoiding
    unnecessary copies
  * optimize util.base2ba() and util.ba2base() for n=16
    (hexadecimal)

OBS-URL: https://build.opensuse.org/request/show/1137632
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=26
2024-01-09 19:49:35 +00:00
16ca85d60a - update to 2.9.2:
* optimize initialization from strings by not constantly
    resizing buffer
  * optimize util.hex2ba() and util.base2ba() by avoiding
    unnecessary copies
  * optimize util.base2ba() and util.ba2base() for n=16
    (hexadecimal)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=50
2024-01-08 20:42:48 +00:00
f91cad9310 Accepting request 1135240 from devel:languages:python
- update to 2.9.1:
  * avoid buffer being unnecessarily initialized with 0s in
    several functions of the ``bitarray.util`` module
  * fix ``.count()`` type hint in pyi-file
  * improve testing
  * deprecate support for Python 2 - Python 2.7 support will be
    removed in bitarray version 3.0
  * ``bitarray(n)`` for integer initializer ``n`` will always
    return a bitarray of length ``n`` with all items initialized
    to ``0``
  * allow sub-bitarray in ``.count()``, `#212
  * add ``util.ones()`` ``.find()`` and ``.index()``:
    add keyword argument ``right`` for rightmost index
  * ``.itersearch()``: add start and stop argument, and keyword
  * argument ``right``
  * deprecate ``util.rindex()`` (will be removed in 3.0 release),
  * use ``.index(..., right=True)`` instead
  * deprecate ``util.make_endian()`` (will be removed in 3.0
    release),
  * use ``bitarray(..., endian=...)`` instead

OBS-URL: https://build.opensuse.org/request/show/1135240
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=25
2023-12-28 22:01:04 +00:00
06e752e37d - update to 2.9.1:
* avoid buffer being unnecessarily initialized with 0s in
    several functions of the ``bitarray.util`` module
  * fix ``.count()`` type hint in pyi-file
  * improve testing
  * deprecate support for Python 2 - Python 2.7 support will be
    removed in bitarray version 3.0
  * ``bitarray(n)`` for integer initializer ``n`` will always
    return a bitarray of length ``n`` with all items initialized
    to ``0``
  * allow sub-bitarray in ``.count()``, `#212
  * add ``util.ones()`` ``.find()`` and ``.index()``:
    add keyword argument ``right`` for rightmost index
  * ``.itersearch()``: add start and stop argument, and keyword
  * argument ``right``
  * deprecate ``util.rindex()`` (will be removed in 3.0 release),
  * use ``.index(..., right=True)`` instead
  * deprecate ``util.make_endian()`` (will be removed in 3.0
    release),
  * use ``bitarray(..., endian=...)`` instead

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=48
2023-12-27 09:31:03 +00:00
98a78b2bf3 Accepting request 1133923 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1133923
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=24
2023-12-19 22:15:52 +00:00
cc0ffcd814 - update to 2.8.5:
* speedup unaligned copies by always using word shifts (in
    combination with builtin byte swap 64 when available) when
    bit-endianness and machine byte-order are opposite
  * add ``HAVE_BUILTIN_BSWAP64`` to header
  * avoid misaligned pointers when casting to ``(uint64_t *)``
  * add tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=46
2023-12-11 22:14:33 +00:00
bf67d8c9ec Accepting request 1131186 from devel:languages:python
- update to 2.8.4:
  * simplify ``copy_n()`` (remove special cases)
  * add `word shift example C program
  * and simplify ``shift_r8()``
  * improve documentation and testing

OBS-URL: https://build.opensuse.org/request/show/1131186
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=23
2023-12-06 22:47:57 +00:00
e775533eaa - update to 2.8.4:
* simplify ``copy_n()`` (remove special cases)
  * add `word shift example C program
  * and simplify ``shift_r8()``
  * improve documentation and testing

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=44
2023-12-05 17:42:37 +00:00
160662bd7c Accepting request 1125860 from devel:languages:python
- update to 2.8.3:
  * ensure readonly attribute is set correctly when creating new
    objects
  * optimize sparse bitarray compression for raw block type
  * improve hash functions in Bloom filter example

OBS-URL: https://build.opensuse.org/request/show/1125860
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=22
2023-11-14 20:43:32 +00:00
8065822b6e - update to 2.8.3:
* ensure readonly attribute is set correctly when creating new
    objects
  * optimize sparse bitarray compression for raw block type
  * improve hash functions in Bloom filter example

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=42
2023-11-14 12:07:11 +00:00
a578ced37b Accepting request 1115784 from devel:languages:python
- update to 2.8.2:
  * improve error messages for masked assignment
  * simplify test collection
  * added ``pytest.ini`` to allow running pytest with no
    additional arguments
  * ``util.sc_encode()``: avoid writing empty blocks at end of
    compressed stream, ie. skip encoding when total population
    count is reached

  * optimize `richcompare()`
  * `.bytereverse()` no longer sets unused pad bits to zero
  * fix `sys.getsizeof(bitarray)` by adding `.__sizeof__()`, see issue #100
- Update to 1.5.2:

OBS-URL: https://build.opensuse.org/request/show/1115784
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=21
2023-10-05 18:04:57 +00:00
6b6ced3745 - update to 2.8.2:
* improve error messages for masked assignment
  * simplify test collection
  * added ``pytest.ini`` to allow running pytest with no
    additional arguments
  * ``util.sc_encode()``: avoid writing empty blocks at end of
    compressed stream, ie. skip encoding when total population
    count is reached
  * optimize `richcompare()`
  * `.bytereverse()` no longer sets unused pad bits to zero
  * fix `sys.getsizeof(bitarray)` by adding `.__sizeof__()`, see issue #100
- Update to 1.5.2:

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=40
2023-10-05 09:34:21 +00:00
035f41eb07 Accepting request 1103087 from devel:languages:python
- update to 2.8.1:
  * use reconstructor function for pickling
  * simplify implementation of ``.reverse()``
  * allow `integer sequence indexing <indexing.rst>`__ by list of
    indices,
  * add `masked indexing <indexing.rst>`__ by bitarray masks,
  * improve ``.bytereverse()`` docstring, see issue

OBS-URL: https://build.opensuse.org/request/show/1103087
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=20
2023-08-09 15:26:10 +00:00
a977a5170d - update to 2.8.1:
* use reconstructor function for pickling
  * simplify implementation of ``.reverse()``
  * allow `integer sequence indexing <indexing.rst>`__ by list of
    indices,
  * add `masked indexing <indexing.rst>`__ by bitarray masks,
  * improve ``.bytereverse()`` docstring, see issue

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=38
2023-08-09 07:50:09 +00:00
f8d5260ccd Accepting request 1095233 from devel:languages:python
- update to 2.7.6:
  * remove caching hash value

OBS-URL: https://build.opensuse.org/request/show/1095233
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=19
2023-06-26 16:15:40 +00:00
bce10caed1 - update to 2.7.6:
* remove caching hash value

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=36
2023-06-25 19:02:34 +00:00
637964b490 Accepting request 1092275 from devel:languages:python
- update to 2.7.5:
  * fix for pypy3.9-v7.3.11
  * register ``bitarray`` as ``abc.MutableSequence``
  * improve documentation regarding type when indexing single
  * bitarray items

OBS-URL: https://build.opensuse.org/request/show/1092275
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=18
2023-06-12 13:25:58 +00:00
f9df6892e4 - update to 2.7.5:
* fix for pypy3.9-v7.3.11
  * register ``bitarray`` as ``abc.MutableSequence``
  * improve documentation regarding type when indexing single
  * bitarray items

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=34
2023-06-11 11:52:35 +00:00
73d43db263 Accepting request 1069754 from devel:languages:python
- update to 2.7.3:
  * allow running ``python setup.py test``
  * add official Python 3.12 support
  * simplify count functionality in util module
  * retire ``bitcount_lookup[256]`` table
  * improve ``util.count_n()`` error messages
  * avoid ``util`` module tests from being run more than once in
    each call to ``bitarray.test()`` when called multiple times in
    the same Python process
  * improve testing

OBS-URL: https://build.opensuse.org/request/show/1069754
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=17
2023-03-07 15:50:06 +00:00
fa04ab8807 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=32 2023-03-06 21:25:06 +00:00
accc2f61a0 - update to 2.7.3:
* fix popcount64 name conflict on NetBSD
  * even though PyPy is not actively supported, allow running
    tests for PyPy 3.7 and 3.8
  * allow running ``python setup.py test``
  * add official Python 3.12 support
  * simplify count functionality in util module
  * retire ``bitcount_lookup[256]`` table
  * improve ``util.count_n()`` error messages
  * avoid ``util`` module tests from being run more than once in
    each call to ``bitarray.test()`` when called multiple times in
    the same Python process
  * improve testing

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=31
2023-03-06 21:24:53 +00:00
a54c9748d1 Accepting request 1065971 from devel:languages:python
- update to 2.7.2:
  * speedup all count functionality by using
    ``__builtin_popcountll`` when available
  * add ``popcount64()`` to ``bitarray.h`` - we assume now that
    ``uint64_t`` is always available
  * improve testing

OBS-URL: https://build.opensuse.org/request/show/1065971
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=16
2023-02-16 15:55:44 +00:00
4c63298d18 - update to 2.7.2:
* speedup all count functionality by using
    ``__builtin_popcountll`` when available
  * add ``popcount64()`` to ``bitarray.h`` - we assume now that
    ``uint64_t`` is always available
  * improve testing

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=29
2023-02-15 14:00:02 +00:00
20d497f6e5 Accepting request 1064329 from devel:languages:python
- update to 2.7.1:
  * optimize ``util.sc_encode()``

OBS-URL: https://build.opensuse.org/request/show/1064329
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=15
2023-02-11 20:57:12 +00:00
3f7ecea352 - update to 2.7.1:
* optimize ``util.sc_encode()``

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=27
2023-02-10 17:42:46 +00:00
2b61a521bd Accepting request 1064212 from devel:languages:python
- update to 2.7.0:
  * add util.sc_encode() and util.sc_decode() for
    compression of sparse bitarrays
  * add util.any_and()
  * add util.intervals()
  * move functionality of the following utility functions
    entirely to C:
    hex2ba(), base2ba(), deserialize(), vl_decode(), zeros()
  * improve error checking for unpickling
  * add distance metrics

OBS-URL: https://build.opensuse.org/request/show/1064212
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=14
2023-02-10 13:36:03 +00:00