Compare commits
26 Commits
Author | SHA256 | Date | |
---|---|---|---|
1f3801caa1 | |||
d09acb2517 | |||
520fe0b7f9 | |||
34a86f1e48 | |||
9fe94a3d3b | |||
4b5b222291 | |||
083ae7aa16 | |||
d504055601 | |||
bb4be5aea4 | |||
ceba5c988a | |||
df26ef146a | |||
80ee3a42fd | |||
81c253793b | |||
32f326fa96 | |||
2d5d75a77c | |||
b77152449b | |||
88a321bc50 | |||
fb023de6b2 | |||
d13ebcb288 | |||
5ad837e716 | |||
e6be0ea6d8 | |||
3e704944c6 | |||
3c1a69459f | |||
a5ac190990 | |||
c531551b0a | |||
b23c5c368b |
@@ -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
3
bitarray-3.6.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a386dda16a306f986a752f091ac8a52156b26ee1d799a7cbce75eb83dc2516b7
|
||||||
|
size 220412
|
@@ -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>
|
Mon Jan 8 20:42:40 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-bitarray
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
Name: python-bitarray
|
||||||
Version: 2.9.2
|
Version: 3.6.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Efficient Arrays of Booleans
|
Summary: Efficient Arrays of Booleans
|
||||||
License: Python-2.0
|
License: Python-2.0
|
||||||
URL: https://github.com/ilanschnell/bitarray
|
URL: https://github.com/ilanschnell/bitarray
|
||||||
Source: https://github.com/ilanschnell/bitarray/archive/%{version}.tar.gz#/bitarray-%{version}.tar.gz
|
Source: https://github.com/ilanschnell/bitarray/archive/%{version}.tar.gz#/bitarray-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module dbm}
|
BuildRequires: %{python_module dbm}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
@@ -52,12 +54,12 @@ length encoding, you may find this module useful.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
rm examples/growth/.gitignore
|
rm devel/resize/.gitignore examples/puff/.gitignore
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# tests don't run from within the source directory
|
# tests don't run from within the source directory
|
||||||
@@ -66,6 +68,7 @@ rm examples/growth/.gitignore
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc examples CHANGE_LOG README.rst
|
%doc examples CHANGE_LOG README.rst
|
||||||
%{python_sitearch}/bitarray*
|
%{python_sitearch}/bitarray
|
||||||
|
%{python_sitearch}/bitarray-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user