14
0

28 Commits

Author SHA256 Message Date
d356455389 Accepting request 1303573 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1303573
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bitarray?expand=0&rev=40
2025-09-10 15:30:30 +00:00
a44986b8f4 - Update to 3.7.1
* fix type hinting for memoryviews, see #241
  * add [bit-endianness](endianness.rst) documentation
  * improve testing, including debug mode test for `digit_to_int()`
- from version 3.7.0
  * add `util.gen_primes()`, generate bitarrays in which active indices are
    prime numbers
  * improve `.buffer_info()` to return named tuple
  * add optional `mode` argument to `util.sum_indices()` to sum square of
    active indices
  * improve internal `_sysinfo()` to include `Py_DEBUG`
  * add [Dubner's conjecture](../examples/dubner.rst) (in memory of Harvey
    Dubner)
  * add [dynamically growing sieve](../examples/dyn_sieve.py)
- from version 3.6.1
  * add development files for statistical tests in `devel/random/`
  * optimize `util.sum_indices()`
  * fix RecursionError in `util.random_k()`, see #239
  * add `devel/test_sum_indices.py`

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitarray?expand=0&rev=78
2025-09-10 09:12:30 +00:00
0a695f4895 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
6bfe3a7f20 - 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/package/show/devel:languages:python/python-bitarray?expand=0&rev=76
2025-08-11 21:28:20 +00:00
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
4 changed files with 195 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.7.1.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,185 @@
-------------------------------------------------------------------
Wed Sep 10 06:04:56 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.7.1
* fix type hinting for memoryviews, see #241
* add [bit-endianness](endianness.rst) documentation
* improve testing, including debug mode test for `digit_to_int()`
- from version 3.7.0
* add `util.gen_primes()`, generate bitarrays in which active indices are
prime numbers
* improve `.buffer_info()` to return named tuple
* add optional `mode` argument to `util.sum_indices()` to sum square of
active indices
* improve internal `_sysinfo()` to include `Py_DEBUG`
* add [Dubner's conjecture](../examples/dubner.rst) (in memory of Harvey
Dubner)
* add [dynamically growing sieve](../examples/dyn_sieve.py)
- from version 3.6.1
* add development files for statistical tests in `devel/random/`
* optimize `util.sum_indices()`
* fix RecursionError in `util.random_k()`, see #239
* add `devel/test_sum_indices.py`
-------------------------------------------------------------------
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.7.1
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