Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-bitarray for openSUSE:Factory checked in at 2021-07-20 15:39:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-bitarray (Old) and /work/SRC/openSUSE:Factory/.python-bitarray.new.2632 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-bitarray" Tue Jul 20 15:39:31 2021 rev:9 rq:907194 version:2.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-bitarray/python-bitarray.changes 2021-06-12 20:10:35.453193903 +0200 +++ /work/SRC/openSUSE:Factory/.python-bitarray.new.2632/python-bitarray.changes 2021-07-20 15:40:15.921558365 +0200 @@ -1,0 +2,8 @@ +Sat Jul 17 08:25:28 UTC 2021 - Martin Hauke <mar...@gmx.de> + +- Update to 2.2.2 + * support type hinting for all Python 3 versions (that bitarray + supports, 3.5 and higher currently). + * add explicit endianness to two tests. + +------------------------------------------------------------------- Old: ---- bitarray-2.1.1.tar.gz New: ---- bitarray-2.1.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-bitarray.spec ++++++ --- /var/tmp/diff_new_pack.3isIX4/_old 2021-07-20 15:40:16.453559316 +0200 +++ /var/tmp/diff_new_pack.3isIX4/_new 2021-07-20 15:40:16.457559323 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-bitarray -Version: 2.1.1 +Version: 2.1.2 Release: 0 Summary: Efficient Arrays of Booleans License: Python-2.0 ++++++ bitarray-2.1.1.tar.gz -> bitarray-2.1.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitarray-2.1.1/CHANGE_LOG new/bitarray-2.1.2/CHANGE_LOG --- old/bitarray-2.1.1/CHANGE_LOG 2021-06-11 23:28:10.000000000 +0200 +++ new/bitarray-2.1.2/CHANGE_LOG 2021-06-14 02:02:50.000000000 +0200 @@ -1,3 +1,10 @@ +2021-06-13 2.1.2: +------------------- + * support type hinting for all Python 3 versions (that bitarray supports, + 3.5 and higher currently), fixed #128 + * add explicit endianness to two tests, fixes #127 + + 2021-06-11 2.1.1: ------------------- * add type hinting (see PEP 484, 561) using stub (`.pyi`) files diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitarray-2.1.1/Makefile new/bitarray-2.1.2/Makefile --- old/bitarray-2.1.1/Makefile 2021-06-11 23:28:10.000000000 +0200 +++ new/bitarray-2.1.2/Makefile 2021-06-14 02:02:50.000000000 +0200 @@ -19,6 +19,10 @@ twine check dist/* +mypy: + mypy examples/*.py examples/huffman/*.py + + clean: rm -rf build dist rm -f bitarray/*.o bitarray/*.so diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitarray-2.1.1/README.rst new/bitarray-2.1.2/README.rst --- old/bitarray-2.1.1/README.rst 2021-06-11 23:28:10.000000000 +0200 +++ new/bitarray-2.1.2/README.rst 2021-06-14 02:02:50.000000000 +0200 @@ -62,7 +62,7 @@ $ python -c 'import bitarray; bitarray.test()' bitarray is installed in: /Users/ilan/bitarray/bitarray - bitarray version: 2.1.1 + bitarray version: 2.1.2 sys.version: 2.7.15 (default, Mar 5 2020, 14:58:04) [GCC Clang 9.0.1] sys.prefix: /Users/ilan/Mini3/envs/py27 pointer size: 64 bit @@ -401,7 +401,7 @@ Reference ========= -bitarray version: 2.1.1 -- `change log <https://github.com/ilanschnell/bitarray/blob/master/doc/changelog.rst>`__ +bitarray version: 2.1.2 -- `change log <https://github.com/ilanschnell/bitarray/blob/master/doc/changelog.rst>`__ In the following, ``item`` and ``value`` are usually a single bit - an integer 0 or 1. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitarray-2.1.1/bitarray/__init__.pyi new/bitarray-2.1.2/bitarray/__init__.pyi --- old/bitarray-2.1.1/bitarray/__init__.pyi 2021-06-11 23:28:10.000000000 +0200 +++ new/bitarray-2.1.2/bitarray/__init__.pyi 2021-06-14 02:02:50.000000000 +0200 @@ -1,18 +1,18 @@ """ -This stub, as well as util.pyi, have been tested with -Python 3.9 and mypy 0.901 +This stub, as well as util.pyi, have been tested with all Python 3 versions +that bitarray supports and mypy 0.902. """ from collections.abc import Iterable, Iterator from unittest.runner import TextTestResult -from typing import BinaryIO, Hashable, Union, overload +from typing import Any, BinaryIO, Dict, Union, overload -Codedict = dict[Hashable, bitarray] +Codedict = Dict[Any, bitarray] class decodetree: - def __init__(self, code: Codedict, /) -> None: ... + def __init__(self, code: Codedict) -> None: ... def nodes(self) -> int: ... def todict(self) -> Codedict: ... @@ -20,11 +20,11 @@ class bitarray: def __init__(self, initializer: Union[int, str, Iterable[int], None] = ..., - endian: str = ..., /) -> None: ... + endian: str = ...) -> None: ... def all(self) -> bool: ... def any(self) -> bool: ... - def append(self, value: int, /) -> None: ... + def append(self, value: int) -> None: ... def buffer_info(self) -> tuple[int, int, str, int, int]: ... def bytereverse(self) -> None: ... def clear(self) -> None: ... @@ -32,43 +32,43 @@ def count(self, value: int = ..., start: int = ..., - stop: int = ..., /) -> int: ... + stop: int = ...) -> int: ... - def decode(self, code: Union[Codedict, decodetree], /) -> list: ... - def encode(self, code: Codedict, x: Iterable, /) -> None: ... + def decode(self, code: Union[Codedict, decodetree]) -> list: ... + def encode(self, code: Codedict, x: Iterable) -> None: ... def endian(self) -> str: ... - def extend(self, x: Iterable[int], /) -> None: ... + def extend(self, x: Iterable[int]) -> None: ... def fill(self) -> int: ... def find(self, a: Union[bitarray, int], start: int = ..., - stop: int = ..., /) -> int: ... + stop: int = ...) -> int: ... - def frombytes(self, a: bytes, /) -> None: ... - def fromfile(self, f: BinaryIO, n: int = ..., /) -> None: ... + def frombytes(self, a: bytes) -> None: ... + def fromfile(self, f: BinaryIO, n: int = ...) -> None: ... def index(self, a: Union[bitarray, int], start: int = ..., - stop: int = ..., /) -> int: ... + stop: int = ...) -> int: ... - def insert(self, i: int, value: int, /) -> None: ... + def insert(self, i: int, value: int) -> None: ... def invert(self, i: int = ...) -> None: ... def iterdecode(self, - code: Union[Codedict, decodetree], /) -> Iterator: ... + code: Union[Codedict, decodetree]) -> Iterator: ... - def itersearch(self, a: Union[bitarray, int], /) -> Iterator[int]: ... - def pack(self, b: bytes, /) -> None: ... - def pop(self, i: int = ..., /) -> int: ... - def remove(self, value: int, /) -> None: ... + def itersearch(self, a: Union[bitarray, int]) -> Iterator[int]: ... + def pack(self, b: bytes) -> None: ... + def pop(self, i: int = ...) -> int: ... + def remove(self, value: int) -> None: ... def reverse(self) -> None: ... def search(self, a: Union[bitarray, int], limit: int = ...) -> list[int]: ... - def setall(self, value: int, /) -> None: ... + def setall(self, value: int) -> None: ... def sort(self, reverse: int) -> None: ... def to01(self) -> str: ... def tobytes(self) -> bytes: ... - def tofile(self, f: BinaryIO, /) -> None: ... + def tofile(self, f: BinaryIO) -> None: ... def tolist(self) -> list[int]: ... def unpack(self, zero: bytes = ..., @@ -115,7 +115,7 @@ __version__: str -def bits2bytes(n: int, /) -> int: ... +def bits2bytes(n: int) -> int: ... def get_default_endian() -> str: ... def test(verbosity: int = ..., repeat: int = ...) -> TextTestResult: ... def _set_default_endian(endian: str) -> None: ... diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitarray-2.1.1/bitarray/bitarray.h new/bitarray-2.1.2/bitarray/bitarray.h --- old/bitarray-2.1.1/bitarray/bitarray.h 2021-06-11 23:28:10.000000000 +0200 +++ new/bitarray-2.1.2/bitarray/bitarray.h 2021-06-14 02:02:50.000000000 +0200 @@ -4,7 +4,7 @@ Author: Ilan Schnell */ -#define BITARRAY_VERSION "2.1.1" +#define BITARRAY_VERSION "2.1.2" #if PY_MAJOR_VERSION >= 3 #define IS_PY3K diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitarray-2.1.1/bitarray/test_bitarray.py new/bitarray-2.1.2/bitarray/test_bitarray.py --- old/bitarray-2.1.1/bitarray/test_bitarray.py 2021-06-11 23:28:10.000000000 +0200 +++ new/bitarray-2.1.2/bitarray/test_bitarray.py 2021-06-14 02:02:50.000000000 +0200 @@ -25,8 +25,8 @@ if is_py3k: from io import BytesIO else: - from cStringIO import StringIO as BytesIO - range = xrange + from cStringIO import StringIO as BytesIO # type: ignore + range = xrange # type: ignore from bitarray import (bitarray, frozenbitarray, bits2bytes, decodetree, @@ -40,7 +40,7 @@ a.setall(0) return a -tests = [] +tests = [] # type: list class Util(object): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitarray-2.1.1/bitarray/test_util.py new/bitarray-2.1.2/bitarray/test_util.py --- old/bitarray-2.1.1/bitarray/test_util.py 2021-06-11 23:28:10.000000000 +0200 +++ new/bitarray-2.1.2/bitarray/test_util.py 2021-06-14 02:02:50.000000000 +0200 @@ -30,7 +30,7 @@ else: from io import BytesIO as StringIO -tests = [] +tests = [] # type: list # --------------------------------------------------------------------------- @@ -1103,7 +1103,7 @@ n = randint(0, len(a)) if a.endian() == 'big': self.assertEqual(ba2int(a >> n), i >> n) - c = zeros(len(a)) + a + c = zeros(len(a), 'big') + a self.assertEqual(ba2int(c << n), i << n) self.assertEQUAL(a, aa) @@ -1131,7 +1131,7 @@ c = a.copy() c >>= n self.assertEqual(ba2int(c), i >> n) - c = zeros(len(a)) + a + c = zeros(len(a), 'big') + a c <<= n self.assertEqual(ba2int(c), i << n) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitarray-2.1.1/bitarray/util.pyi new/bitarray-2.1.2/bitarray/util.pyi --- old/bitarray-2.1.1/bitarray/util.pyi 2021-06-11 23:28:10.000000000 +0200 +++ new/bitarray-2.1.2/bitarray/util.pyi 2021-06-14 02:02:50.000000000 +0200 @@ -1,4 +1,4 @@ -from typing import Any, AnyStr, BinaryIO, Hashable, Optional, Union +from typing import Any, AnyStr, BinaryIO, Optional, Union from bitarray import bitarray @@ -14,30 +14,27 @@ def rindex(a: bitarray, Value: int) -> int: ... def strip(a: bitarray, mode: str = ...) -> bitarray: ... -def count_n(a: bitarray, n: int, /) -> int: ... -def parity(a: bitarray, /) -> int: ... -def count_and(a: bitarray, b: bitarray, /) -> int: ... -def count_or(a: bitarray, b: bitarray, /) -> int: ... -def count_xor(a: bitarray, b: bitarray, /) -> int: ... -def subset(a: bitarray, b: bitarray, /) -> bool: ... - -def ba2hex(a: bitarray, /) -> str: ... -def hex2ba(s: AnyStr, /, - endian: Optional[str] = ...) -> bitarray: ... - -def ba2base(n: int, a: bitarray, /) -> str: ... +def count_n(a: bitarray, n: int) -> int: ... +def parity(a: bitarray) -> int: ... +def count_and(a: bitarray, b: bitarray) -> int: ... +def count_or(a: bitarray, b: bitarray) -> int: ... +def count_xor(a: bitarray, b: bitarray) -> int: ... +def subset(a: bitarray, b: bitarray) -> bool: ... + +def ba2hex(a: bitarray) -> str: ... +def hex2ba(s: AnyStr, endian: Optional[str] = ...) -> bitarray: ... +def ba2base(n: int, a: bitarray) -> str: ... def base2ba(n: int, - s: AnyStr, /, + s: AnyStr, endian: Optional[str] = ...) -> bitarray: ... def ba2int(a: bitarray, signed: int = ...) -> int: ... -def int2ba(i: int, /, +def int2ba(i: int, length: int = ..., endian: str = ..., signed: int = ...) -> bitarray: ... -def serialize(a: bitarray, /) -> bytes: ... -def deserialize(b: bytes, /) -> bitarray: ... -def huffman_code(freq_map: dict[Hashable, Union[int, float]], - endian: Optional[str] = ... - ) -> dict[Hashable, bitarray]: ... +def serialize(a: bitarray) -> bytes: ... +def deserialize(b: bytes) -> bitarray: ... +def huffman_code(freq_map: dict[Any, Union[int, float]], + endian: Optional[str] = ...) -> dict[Any, bitarray]: ... diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitarray-2.1.1/doc/changelog.rst new/bitarray-2.1.2/doc/changelog.rst --- old/bitarray-2.1.1/doc/changelog.rst 2021-06-11 23:28:10.000000000 +0200 +++ new/bitarray-2.1.2/doc/changelog.rst 2021-06-14 02:02:50.000000000 +0200 @@ -1,6 +1,13 @@ Change log ========== +**2.1.2** (2021-06-13): + +* support type hinting for all Python 3 versions (that bitarray supports, + 3.5 and higher currently), fixed `#128 <https://github.com/ilanschnell/bitarray/issues/128>`__ +* add explicit endianness to two tests, fixes `#127 <https://github.com/ilanschnell/bitarray/issues/127>`__ + + **2.1.1** (2021-06-11): * add type hinting (see PEP 484, 561) using stub (``.pyi``) files diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitarray-2.1.1/doc/reference.rst new/bitarray-2.1.2/doc/reference.rst --- old/bitarray-2.1.1/doc/reference.rst 2021-06-11 23:28:10.000000000 +0200 +++ new/bitarray-2.1.2/doc/reference.rst 2021-06-14 02:02:50.000000000 +0200 @@ -1,7 +1,7 @@ Reference ========= -bitarray version: 2.1.1 -- `change log <https://github.com/ilanschnell/bitarray/blob/master/doc/changelog.rst>`__ +bitarray version: 2.1.2 -- `change log <https://github.com/ilanschnell/bitarray/blob/master/doc/changelog.rst>`__ In the following, ``item`` and ``value`` are usually a single bit - an integer 0 or 1. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitarray-2.1.1/examples/hexadecimal.py new/bitarray-2.1.2/examples/hexadecimal.py --- old/bitarray-2.1.1/examples/hexadecimal.py 2021-06-11 23:28:10.000000000 +0200 +++ new/bitarray-2.1.2/examples/hexadecimal.py 2021-06-14 02:02:50.000000000 +0200 @@ -16,8 +16,8 @@ 'c': bitarray('1100'), 'd': bitarray('1101'), 'e': bitarray('1110'), 'f': bitarray('1111'), }} -for k, v in CODEDICT['big'].items(): - CODEDICT['little'][k] = v[::-1] +for k, v in CODEDICT['big'].items(): # type: ignore + CODEDICT['little'][k] = v[::-1] # type: ignore def prefix_ba2hex(a): return ''.join(a.iterdecode(CODEDICT[a.endian()])) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitarray-2.1.1/examples/mandel.py new/bitarray-2.1.2/examples/mandel.py --- old/bitarray-2.1.1/examples/mandel.py 2021-06-11 23:28:10.000000000 +0200 +++ new/bitarray-2.1.2/examples/mandel.py 2021-06-14 02:02:50.000000000 +0200 @@ -1,6 +1,6 @@ import sys from bitarray import bitarray -from numba import jit +from numba import jit # type: ignore width, height = 4000, 3000 maxdepth = 500 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitarray-2.1.1/examples/ndarray.py new/bitarray-2.1.2/examples/ndarray.py --- old/bitarray-2.1.1/examples/ndarray.py 2021-06-11 23:28:10.000000000 +0200 +++ new/bitarray-2.1.2/examples/ndarray.py 2021-06-14 02:02:50.000000000 +0200 @@ -5,7 +5,7 @@ from __future__ import print_function import bitarray -import numpy +import numpy # type: ignore a = bitarray.bitarray('100011001001') print(a)