| 1 |
Release Notes |
| 2 |
============= |
| 3 |
|
| 4 |
bpack v1.3.0 (06/01/2025) |
| 5 |
------------------------- |
| 6 |
|
| 7 |
* Support for annotations saved in string form (see also `PEP-563`_). |
| 8 |
Is some circumstances Python typing annotations are stored |
| 9 |
as strings. E.g. this happens when people uses:: |
| 10 |
|
| 11 |
from __future__ import annotations |
| 12 |
|
| 13 |
Starting from v1.3.0, `bpack` is compatible with this way of storing |
| 14 |
annotations. |
| 15 |
Please note, anyway, that `bpack` still need to evaluate the annotations |
| 16 |
at compile time so the "Postponed Evaluation of Annotations" described in |
| 17 |
`PEP-563`_ is not really supported. |
| 18 |
|
| 19 |
.. _`PEP-563`: https://peps.python.org/pep-0563 |
| 20 |
|
| 21 |
|
| 22 |
bpack v1.2.0 (26/11/2024) |
| 23 |
------------------------- |
| 24 |
|
| 25 |
* Drop support to Python 3.7 and 3.8. Now `bpack` requires Python >= 3.9. |
| 26 |
* Add support to Python 3.13. |
| 27 |
* The internal :func:`bpack.utils.create_fn` function has been removed |
| 28 |
and replaced by the new :func:`bpack.utils.add_function_to_class` |
| 29 |
internal function. |
| 30 |
Since the change is on utility functions that are considered internal and |
| 31 |
not part of the public package API, this is not considered a backward |
| 32 |
incompatible change. |
| 33 |
* New 'full' installation option added to `pyproject.toml`. |
| 34 |
* No longer use deprecated syntax in sphinx configuration. |
| 35 |
* Improved documentation and fixed typos. |
| 36 |
* flake8_ configuration moved to a dedicated file. |
| 37 |
* Do not test the :mod:`bpack.ba` backend in PyPy3_. |
| 38 |
* New functions: |
| 39 |
- :func:`bpack.typing.type_params_to_str` |
| 40 |
- :func:`bpack.descriptors.flat_fields_iterator` |
| 41 |
* New :mod:`bpack.tools.codegen` module. It includes tool to generate flat |
| 42 |
binary record descriptors starting from nested ones |
| 43 |
(requires Python >= 3.10). |
| 44 |
|
| 45 |
.. _flake8: https://github.com/pycqa/flake8 |
| 46 |
.. _PyPy3: https://pypy.org |
| 47 |
|
| 48 |
|
| 49 |
bpack v1.1.0 (15/04/2023) |
| 50 |
------------------------- |
| 51 |
|
| 52 |
* Added support for signed integers to :func:`bpack.np.unpackbits`. |
| 53 |
Both standard signed integers and integers encoded with sign and module |
| 54 |
are now supported. |
| 55 |
* Use uppercase enums in `s1isp.py` example. |
| 56 |
* Improved docstrings in :mod:`bpack.np`. |
| 57 |
* Fixed several typos. |
| 58 |
|
| 59 |
|
| 60 |
bpack v1.0.0 (05/02/2023) |
| 61 |
------------------------- |
| 62 |
|
| 63 |
* Fix compatibility with Python v3.11. |
| 64 |
* Move setup configuration from `setup.cfg` to `pyproject.toml`. |
| 65 |
|
| 66 |
|
| 67 |
bpack v0.8.2 (20/03/2022) |
| 68 |
------------------------- |
| 69 |
|
| 70 |
* Fallback to standard bitstruct if the bitstruct.c extension |
| 71 |
does not support the format string |
| 72 |
|
| 73 |
|
| 74 |
bpack v0.8.1 (30/11/2021) |
| 75 |
------------------------- |
| 76 |
|
| 77 |
* Drop ``setup.py``, no longer needed. |
| 78 |
* Improve compatibility with `typing-extensions`_ v4.0 |
| 79 |
(closes :issue:`1`). |
| 80 |
* Use the compiled extension of `bitstruct`_ when available |
| 81 |
(and compatible with the specified format string). |
| 82 |
* Use `cbitsturct`_ when available (preferred over the |
| 83 |
compiled extension of `bitstruct`_). |
| 84 |
|
| 85 |
.. _`typing-extensions`: https://pypi.org/project/typing-extensions |
| 86 |
.. _bitstruct: https://github.com/eerimoq/bitstruct |
| 87 |
.. _cbitsturct: https://github.com/qchateau/cbitstruct |
| 88 |
|
| 89 |
|
| 90 |
bpack v0.8.0 (03/06/2021) |
| 91 |
------------------------- |
| 92 |
|
| 93 |
* New "encoding" feature. Records can be now encoded into binary strings |
| 94 |
using the :mod:`bpack.st` and :mod:`bpack.bs` backends. |
| 95 |
Previously only "decoding" was supported. |
| 96 |
The :mod:`bpack.np` only implements a partial support to encoding currently. |
| 97 |
|
| 98 |
|
| 99 |
bpack v0.7.1 (08/03/2021) |
| 100 |
------------------------- |
| 101 |
|
| 102 |
* Improved User Guide |
| 103 |
* :func:`bpack.np.unpackbits` has been generalized and optimized. |
| 104 |
* New example for packet decoding. |
| 105 |
* Improved support for nested records. |
| 106 |
|
| 107 |
|
| 108 |
bpack v0.7.0 (21/01/2021) |
| 109 |
------------------------- |
| 110 |
|
| 111 |
* New *packbit*/*unpackbit* functions (provisional API). |
| 112 |
* Fixed a bug in decoding of nested records. |
| 113 |
* Added example program for Sentinel-1 space packets decoding |
| 114 |
|
| 115 |
|
| 116 |
bpack v0.6.0 (15/01/2021) |
| 117 |
------------------------- |
| 118 |
|
| 119 |
* New numpy_ based backend. |
| 120 |
* New :meth:`bpack.enums.EByteOrder.get_native` method. |
| 121 |
* Now data types in descriptor definition can also be specified by means of |
| 122 |
special type annotation type (:class:`bpack.typing.T`) that accepts |
| 123 |
numpy-like format strings. |
| 124 |
* Now it is no longer necessary to use the :func:`dataclasses.dataclass` |
| 125 |
decorator to define a descriptor. |
| 126 |
That way to define descriptors is **depercated**. |
| 127 |
All parameters previously specified via :func:`dataclasses.dataclass` |
| 128 |
(like e.g. *frozen*) shall now be passed directly to the |
| 129 |
:func:`bpack.descriptors.descriptor` decorator. |
| 130 |
With this change the use of :mod:`dataclasses` becomes an |
| 131 |
implementation detail. |
| 132 |
* The ``size`` parameter of the :func:`bpack.descriptors.field` factory |
| 133 |
function is now optional. |
| 134 |
* General improvements and code refactoring. |
| 135 |
* Improved CI testing. |
| 136 |
* Added automatic spell checking of documentation in CI. |
| 137 |
* Backward incompatible changes: |
| 138 |
|
| 139 |
- :class:`bpack.enums.EBaseUnits`, :class:`bpack.enums.EByteOrder` and |
| 140 |
:class:`bpack.enums.EBitOrder` enums moved to the new :mod:`bpack.enums` |
| 141 |
module (the recommended way to access enums is directly from |
| 142 |
:mod:`bpack`, e.g. ``bpack.EByteOrder``) |
| 143 |
- :data:`bpack.enums.EByteOrder.BIG` and |
| 144 |
:data:`bpack.enums.EByteOrder.LITTLE` enumerates have been renamed into |
| 145 |
:data:`bpack.enums.EByteOrder.BE` and :data:`bpack.enums.EByteOrder.LE` |
| 146 |
respectively |
| 147 |
- classes decorated with the :func:`bpack.descriptors.descriptor` |
| 148 |
decorator no longer have the ``__len__`` method automatically added; |
| 149 |
the recommended way to compute the size of a descriptors (class or |
| 150 |
instance) is to use the :func:`bpack.descriptros.calcsize` function |
| 151 |
- the default behavior of the :func:`bpack.decorators.calcsize` has been |
| 152 |
changed to return the size of the input *descriptor* in the same |
| 153 |
*base units* of the descriptor itself; previously the default behavior |
| 154 |
was to return the size in bytes |
| 155 |
|
| 156 |
|
| 157 |
.. _numpy: https://numpy.org |
| 158 |
|
| 159 |
|
| 160 |
bpack v0.5.0 (31/12/2020) |
| 161 |
------------------------- |
| 162 |
|
| 163 |
* Initial release. |
| 164 |
|
| 165 |
The package implements all core functionalities but |
| 166 |
|
| 167 |
- the API is still not stable |
| 168 |
- the documentation is incomplete |
| 169 |
- some advanced feature is still missing |