pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-bitstring
Module Name: pkgsrc
Committed By: adam
Date: Wed May 8 12:00:21 UTC 2024
Modified Files:
pkgsrc/devel/py-bitstring: Makefile PLIST distinfo
Log Message:
py-bitstring: updated to 4.2.1
April 2024: version 4.2.1
-------------------------
Fixing a few regressions introduced in 4.2.0.
* Module crashes on import with 32-bit Python.
* Lists of integers not converted to bytes when using the bytes constructor.
* Empty comma separated tokens not handled correctly.
* Crash on import when docstrings not present due to optimize flag.
April 2024: version 4.2.0
-------------------------
This release contains a fairly large refactor of how different types are managed. This
shouldn't affect the end user, and the main noticeable change should be the new Dtype
class, which is optional to use.
Support for 8-bit and smaller floats has been reworked and expanded. These are still
a 'beta' feature.
Backwardly incompatible changes:
* Dropped support for Python 3.7. Minimum version is now 3.8.
* For tokens that use a non-numeric length, a ':' is now compulsory rather than
recommended. For example use 'uint:foo' instead of 'uintfoo'.
* The previous e4m3float and e5m2float formats have become the slightly modified
p4binary8 and p3binary8 formats.
* Some parameters are now enforced as positional only, such as `auto` in constructors.
Other changes:
* The Array class is no longer 'beta'.
* A new Dtype class can be optionally used to specify types.
* The bitstring.options object is now the preferred method for changing module options.
The `bitstring.lsb0` and `bitstring.bytealigned` variables are now deprecated, use
`bitstring.options.lsb0` and `bitstring.options.bytealigned` instead.
* New fromstring method as another way to create bitstrings from formatted strings.
Instead of relying on the `auto` parameter you can now optionally use `fromstring`.
>>> s1 = BitArray('u24=1000') # This is still fine
>>> s2 = BitArray.fromstring('u24=1000') # This may be clearer and more efficient.
* More types can now be pretty printed. For example integer and float formats can be used.
>>> s.pp('u15, bin')
* Pretty printing is now prettier - optional terminal colours added.
* A range of 8-bit, 6-bit and even 4-bit float formats added (beta):
p3binary8: IEEE 8-bit floating point with 3 bit precision.
p4binary8: IEEE 8-bit floating point with 4 bit precision.
e5m2mxfp: OCP 8-bit floating point with 3 bit precision.
e4m3mxfp: OCP 8-bit floating point with 4 bit precision.
e2m3mxfp: OCP 6-bit floating point with 4 bit precision.
e3m2mxfp: OCP 6-bit floating point with 3 bit precision.
e2m1mxfp: OCP 4-bit floating point with 2 bit precision.
e8m0mxfp: OCP 8-bit unsigned floating point designed to scale the other formats.
mxint: OCP 8-bit floating point that is a scaled integer representation.
* Performance improvements.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/py-bitstring/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/py-bitstring/PLIST
cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/py-bitstring/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-bitstring/Makefile
diff -u pkgsrc/devel/py-bitstring/Makefile:1.6 pkgsrc/devel/py-bitstring/Makefile:1.7
--- pkgsrc/devel/py-bitstring/Makefile:1.6 Thu Dec 7 12:37:38 2023
+++ pkgsrc/devel/py-bitstring/Makefile Wed May 8 12:00:21 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2023/12/07 12:37:38 adam Exp $
+# $NetBSD: Makefile,v 1.7 2024/05/08 12:00:21 adam Exp $
-DISTNAME= bitstring-4.1.4
+DISTNAME= bitstring-4.2.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=b/bitstring/}
@@ -10,9 +10,9 @@ HOMEPAGE= https://github.com/scott-griff
COMMENT= Simple construction, analysis and modification of binary data
LICENSE= mit
-TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=61:../../devel/py-setuptools
TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
-DEPENDS+= ${PYPKGPREFIX}-bitarray>=2.8.0:../../devel/py-bitarray
+DEPENDS+= ${PYPKGPREFIX}-bitarray>=2.9.0:../../devel/py-bitarray
USE_LANGUAGES= # none
Index: pkgsrc/devel/py-bitstring/PLIST
diff -u pkgsrc/devel/py-bitstring/PLIST:1.4 pkgsrc/devel/py-bitstring/PLIST:1.5
--- pkgsrc/devel/py-bitstring/PLIST:1.4 Thu Nov 23 08:56:51 2023
+++ pkgsrc/devel/py-bitstring/PLIST Wed May 8 12:00:21 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2023/11/23 08:56:51 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2024/05/08 12:00:21 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -13,9 +13,9 @@ ${PYSITELIB}/bitstring/__main__.pyo
${PYSITELIB}/bitstring/array_.py
${PYSITELIB}/bitstring/array_.pyc
${PYSITELIB}/bitstring/array_.pyo
-${PYSITELIB}/bitstring/bitarray.py
-${PYSITELIB}/bitstring/bitarray.pyc
-${PYSITELIB}/bitstring/bitarray.pyo
+${PYSITELIB}/bitstring/bitarray_.py
+${PYSITELIB}/bitstring/bitarray_.pyc
+${PYSITELIB}/bitstring/bitarray_.pyo
${PYSITELIB}/bitstring/bits.py
${PYSITELIB}/bitstring/bits.pyc
${PYSITELIB}/bitstring/bits.pyo
@@ -28,6 +28,9 @@ ${PYSITELIB}/bitstring/bitstore_helpers.
${PYSITELIB}/bitstring/bitstream.py
${PYSITELIB}/bitstring/bitstream.pyc
${PYSITELIB}/bitstring/bitstream.pyo
+${PYSITELIB}/bitstring/bitstring_options.py
+${PYSITELIB}/bitstring/bitstring_options.pyc
+${PYSITELIB}/bitstring/bitstring_options.pyo
${PYSITELIB}/bitstring/dtypes.py
${PYSITELIB}/bitstring/dtypes.pyc
${PYSITELIB}/bitstring/dtypes.pyo
@@ -37,12 +40,15 @@ ${PYSITELIB}/bitstring/exceptions.pyo
${PYSITELIB}/bitstring/fp8.py
${PYSITELIB}/bitstring/fp8.pyc
${PYSITELIB}/bitstring/fp8.pyo
+${PYSITELIB}/bitstring/luts.py
+${PYSITELIB}/bitstring/luts.pyc
+${PYSITELIB}/bitstring/luts.pyo
${PYSITELIB}/bitstring/methods.py
${PYSITELIB}/bitstring/methods.pyc
${PYSITELIB}/bitstring/methods.pyo
-${PYSITELIB}/bitstring/options.py
-${PYSITELIB}/bitstring/options.pyc
-${PYSITELIB}/bitstring/options.pyo
+${PYSITELIB}/bitstring/mxfp.py
+${PYSITELIB}/bitstring/mxfp.pyc
+${PYSITELIB}/bitstring/mxfp.pyo
${PYSITELIB}/bitstring/py.typed
${PYSITELIB}/bitstring/utils.py
${PYSITELIB}/bitstring/utils.pyc
Index: pkgsrc/devel/py-bitstring/distinfo
diff -u pkgsrc/devel/py-bitstring/distinfo:1.7 pkgsrc/devel/py-bitstring/distinfo:1.8
--- pkgsrc/devel/py-bitstring/distinfo:1.7 Thu Dec 7 12:37:38 2023
+++ pkgsrc/devel/py-bitstring/distinfo Wed May 8 12:00:21 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.7 2023/12/07 12:37:38 adam Exp $
+$NetBSD: distinfo,v 1.8 2024/05/08 12:00:21 adam Exp $
-BLAKE2s (bitstring-4.1.4.tar.gz) = 444a80e2dba937343b648b522aa1e6eb3a9814e718210e7837f8187788f92501
-SHA512 (bitstring-4.1.4.tar.gz) = e05d983ac340565b193c4b4d5f7f5fceea3ba68f04c348ab42cd1d783ac64e1b1adb0ce9bcaac20335137f103d51df198421c7cfee1e5c1ad9f3c9b89b77b679
-Size (bitstring-4.1.4.tar.gz) = 232014 bytes
+BLAKE2s (bitstring-4.2.1.tar.gz) = dfba29ece3cda0c55a144d367168d3c8dbddb2045c22a603bc376f241aa1c63a
+SHA512 (bitstring-4.2.1.tar.gz) = e54f5941b357d783e2951da8673cf38f6498d4e51949ab3200a05ce590208ca35ab7a300075013b6b2d6dfe6422cd81aa2d29b55c6a8088d9417d8c7a58f4716
+Size (bitstring-4.2.1.tar.gz) = 249982 bytes
Home |
Main Index |
Thread Index |
Old Index