[New] archivers/py-lz4

2020-09-12 Thread Kurt Mosiejczuk
This package provides python bindings for the LZ4 compression library.
The bindings provided in this package cover the frame format, the
block format, and the streaming format specifications. The frame
format bindings are the recommended ones to use, as this guarantees
interoperability with other implementations and language bindings.

All but one of some almost 30k tests pass. The one that fails tries to
allocate a massive amount of memory.

While I had this pending (trying to figure out which port I needed this
for) I was reviewing ports and saw that thfr had a version of this for
his py-unitypy port. I integrated his patch to eliminate -O3 and the
call for py-pkgconfig, but kept my cleaned up version. (His used
MODPY_DEFAULT_VERSION_3 and missed a BUILD_DEPENDS on py-setuptools_scm).

ok to import?

--Kurt


py-lz4.tgz
Description: application/tar-gz


Re: [NEW] archivers/py-lz4

2020-09-02 Thread Bjorn Ketelaars
On Wed 02/09/2020 13:09, Remi Pointel wrote:
> Hi,
> 
> this is the port to have python bindings for lz4.
> 
> This is needed by the plaso's update.
> 
> Ok?
> 
> Cheers,
> 
> Remi.

Initial port does not build for me.

With the diff below I'm able to build and test. Instead of using the
bundled version of lz4 I propose to use the one that we have in ports.


diff --git Makefile Makefile
index 21fd619dd7f..995172fa6f6 100644
--- Makefile
+++ Makefile
@@ -12,15 +12,22 @@ CATEGORIES =archivers
 # BSD
 PERMIT_PACKAGE =   Yes
 
+WANTLIB =  lz4 pthread
+
 MODULES =  lang/python
 
 MODPY_PI = Yes
 MODPY_SETUPTOOLS = Yes
+MODPY_PYTEST = Yes
+
+BUILD_DEPENDS =devel/py-pkgconfig${MODPY_FLAVOR} \
+   devel/py-setuptools_scm${MODPY_FLAVOR}
+
+LIB_DEPENDS =  archivers/lz4
 
-MODPY_VERSION =${MODPY_DEFAULT_VERSION_3}
+TEST_DEPENDS = sysutils/py-psutil${MODPY_FLAVOR}
 
-TEST_DEPENDS +=devel/py-tox${MODPY_FLAVOR} \
-   devel/py-test${MODPY_FLAVOR} \
-   devel/py-test-cov${MODPY_FLAVOR}
+FLAVORS =  python3
+FLAVOR =   python3
 
 .include 



[NEW] archivers/py-lz4

2020-09-02 Thread Remi Pointel

Hi,

this is the port to have python bindings for lz4.

This is needed by the plaso's update.

Ok?

Cheers,

Remi.


py-lz4.tar.gz
Description: application/gzip