Add zstd as a dependency

Fixes #1826 (add zstd as a dependency)
This commit is contained in:
Kovid Goyal 2023-04-05 16:39:47 +05:30
parent 88144eae48
commit 328d0b5758
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
4 changed files with 18 additions and 4 deletions

View File

@ -46,7 +46,7 @@ def binary_includes():
('usb-1.0 mtp expat sqlite3 ffi z lzma openjp2 poppler dbus-1 iconv xml2 xslt jpeg png16' ('usb-1.0 mtp expat sqlite3 ffi z lzma openjp2 poppler dbus-1 iconv xml2 xslt jpeg png16'
' webp webpmux webpdemux exslt ncursesw readline chm hunspell-1.7 hyphen' ' webp webpmux webpdemux exslt ncursesw readline chm hunspell-1.7 hyphen'
' icudata icui18n icuuc icuio stemmer gcrypt gpg-error uchardet graphite2' ' icudata icui18n icuuc icuio stemmer gcrypt gpg-error uchardet graphite2'
' brotlicommon brotlidec brotlienc' ' brotlicommon brotlidec brotlienc zstd'
' gobject-2.0 glib-2.0 gthread-2.0 gmodule-2.0 gio-2.0 dbus-glib-1').split() ' gobject-2.0 glib-2.0 gthread-2.0 gmodule-2.0 gio-2.0 dbus-glib-1').split()
)) + [ )) + [
# debian/ubuntu for for some typical stupid reason use libpcre.so.3 # debian/ubuntu for for some typical stupid reason use libpcre.so.3

View File

@ -529,7 +529,7 @@ class Freeze:
'usb-1.0.0', 'mtp.9', 'chm.0', 'sqlite3.0', 'hunspell-1.7.0', 'usb-1.0.0', 'mtp.9', 'chm.0', 'sqlite3.0', 'hunspell-1.7.0',
'icudata.70', 'icui18n.70', 'icuio.70', 'icuuc.70', 'hyphen.0', 'uchardet.0', 'icudata.70', 'icui18n.70', 'icuio.70', 'icuuc.70', 'hyphen.0', 'uchardet.0',
'stemmer.0', 'xslt.1', 'exslt.0', 'xml2.2', 'z.1', 'unrar', 'lzma.5', 'stemmer.0', 'xslt.1', 'exslt.0', 'xml2.2', 'z.1', 'unrar', 'lzma.5',
'brotlicommon.1', 'brotlidec.1', 'brotlienc.1', 'brotlicommon.1', 'brotlidec.1', 'brotlienc.1', 'zstd.1',
'crypto.1.1', 'ssl.1.1', 'iconv.2', # 'ltdl.7' 'crypto.1.1', 'ssl.1.1', 'iconv.2', # 'ltdl.7'
): ):
print('\nAdding', x) print('\nAdding', x)

View File

@ -106,6 +106,14 @@
} }
}, },
{
"name": "zstd",
"unix": {
"filename": "zstd-1.5.5.tar.gz",
"hash": "sha256:9c4396cc829cfae319a6e2615202e82aad41372073482fce286fac78646d3ee4",
"urls": ["https://github.com/facebook/zstd/releases/download/v1.5.5/{filename}"]
}
},
{ {
"name": "expat", "name": "expat",
@ -853,8 +861,8 @@
"name": "pyzstd", "name": "pyzstd",
"comment": "Needed by py7zr", "comment": "Needed by py7zr",
"unix": { "unix": {
"filename": "pyzstd-0.15.0.tar.gz", "filename": "pyzstd-0.15.6.tar.gz",
"hash": "sha256:bf15a39cb3c9b662775e22ffa8c4da09fdde6a15ece5e0ed710b6d3b4329cf36", "hash": "sha256:32a1b67d5340d8df381e718a788417455edd76bed7e8a4cbd259acdc30b5e17e",
"urls": ["pypi"] "urls": ["pypi"]
} }
}, },

View File

@ -96,6 +96,12 @@ class BuildTest(unittest.TestCase):
import lzma import lzma
lzma.open lzma.open
def test_zstd(self):
from pyzstd import compress, decompress
data = os.urandom(4096)
cdata = compress(data)
self.assertEqual(data, decompress(cdata))
def test_html5lib(self): def test_html5lib(self):
import html5lib.html5parser # noqa import html5lib.html5parser # noqa
from html5lib import parse # noqa from html5lib import parse # noqa