From nobody Thu Nov 21 21:10:15 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XvW8l6Y3qz5dbNG; Thu, 21 Nov 2024 21:10:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XvW8l5wDGz43FZ; Thu, 21 Nov 2024 21:10:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732223415; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aTpsCr4xvfEGqvX5+OZnXlpQEWNZjJkuqlRou0TjZKE=; b=VY2rzbm1x/PIPVUM4A8v2Zq4hvztHm6eD6LIYea6EW21/F4UcGvr/4bVK9rqoQxE0o67cm oMBzI5vRtFn1aHEhY+my3bwh9fz0c1Xx6HH4QOR7OsuVHCoWbW8hRdwn60/e4ssloBbHzY 24kNcUSCCjwzbq2OV7bTVaMYQfjM8fElB5GDlgnLpSv1GC1a6cI28GWdPV4IawgbRS9TXv mmTGQ9vR6csanwm9S8mp/dpxZaiJ3GihE5XLHHWEZzO9C9M4z2TGFc6mwyWK84Spl9vbTH ADLK3+67jgjlnA/VR5imqTCLCQeIi6SUiydfFdUcYFy/BOssXp13cHUWG2KrqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732223415; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aTpsCr4xvfEGqvX5+OZnXlpQEWNZjJkuqlRou0TjZKE=; b=Kj6voQ92HUTeAsj8fV/LFfqxWo14NwNrSz/PUp8YVEKqQ4taYVJTBOVtNrVL47QHmNK8XW EM38p+nJH6QVgSflWJOEw0dOS9V+2mbWi618Exj893bqfNdaH5HxzJt1Q6r34OotQqaMXH TctbuaR5AWgaJsNWOp1VtL/WZxMbPCVtXoz3BZoaMdg6mNp5/9RwjfEX9kHJSGFPbHu81d 7iENlAtPzBf23at8VmhtyB5xJmmm0b3MoiYE3CgwY4xRSosHtY+sjPmf1iJ/Cm93Ku6keM XouEE8jzlhrH+QI52uLiQEmGWAUHc1w1Obp3tCfbZYTPVdlvZj1NqCHhaBrlZg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732223415; a=rsa-sha256; cv=none; b=WemWENbgxQMGNLmGvA9jhUUqKqZ+VR8QgN3eiqxnwPF1+8OQTZz4pZPsjUR1F8/KIs1SUY gt8JsitWJL61VUKfVi0YhvAp3YV8zXQUKr0ArUbb6LAjY7KrQG6wnKm17SD1J5isbn1ICV 3MhAhGH+VXs3BMegtmTxOvw253RPqMfyocIsjFl3m5VQ1clHMVWtbj1UEl7ycJAyKEyxfz rt/oCOE00+S0e+WSGXCmZRoPuFtQKUbQZAOLLEnBvQjYO1utbcqtO1D7JC2SP5ccHFNa/3 2AqwUwbVRwplJ5frytxogvYiqXUwl6/CtnROZAxDqrw0gvtYlrDCjOyygm94xw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XvW8l5PWFzw5m; Thu, 21 Nov 2024 21:10:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4ALLAFkp069517; Thu, 21 Nov 2024 21:10:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4ALLAFJA069509; Thu, 21 Nov 2024 21:10:15 GMT (envelope-from git) Date: Thu, 21 Nov 2024 21:10:15 GMT Message-Id: <202411212110.4ALLAFJA069509@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dries Michiels Subject: git: 4dc6aaea9449 - main - archivers/py-pyzstd: add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: driesm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4dc6aaea9449e0a3dfa720df75f78749436b3682 Auto-Submitted: auto-generated The branch main has been updated by driesm: URL: https://cgit.FreeBSD.org/ports/commit/?id=4dc6aaea9449e0a3dfa720df75f78749436b3682 commit 4dc6aaea9449e0a3dfa720df75f78749436b3682 Author: Matthew Wener AuthorDate: 2024-11-21 21:07:40 +0000 Commit: Dries Michiels CommitDate: 2024-11-21 21:07:40 +0000 archivers/py-pyzstd: add new port Python bindings to Zstandard (zstd) compression library PR: 282881 --- archivers/Makefile | 1 + archivers/py-pyzstd/Makefile | 29 ++++++++++++++++++++++++++ archivers/py-pyzstd/distinfo | 3 +++ archivers/py-pyzstd/files/patch-pyproject.toml | 10 +++++++++ archivers/py-pyzstd/pkg-descr | 3 +++ 5 files changed, 46 insertions(+) diff --git a/archivers/Makefile b/archivers/Makefile index def6c8192efd..72f206ed39ca 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -212,6 +212,7 @@ SUBDIR += py-python-rpm-packaging SUBDIR += py-python-snappy SUBDIR += py-pyunpack + SUBDIR += py-pyzstd SUBDIR += py-rarfile SUBDIR += py-rcssmin SUBDIR += py-rjsmin diff --git a/archivers/py-pyzstd/Makefile b/archivers/py-pyzstd/Makefile new file mode 100644 index 000000000000..20792ebfa5fc --- /dev/null +++ b/archivers/py-pyzstd/Makefile @@ -0,0 +1,29 @@ +PORTNAME= pyzstd +PORTVERSION= 0.16.2 +CATEGORIES= archivers python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= matthew@wener.org +COMMENT= Python bindings to Zstandard (zstd) compression library +WWW= https://github.com/Rogdham/pyzstd + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist pep517 pytest + +TEST_ENV= ${MAKE_ENV} \ + PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyzstd/c/_zstd.cpython-311.so + +do-test: + @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v + +.include diff --git a/archivers/py-pyzstd/distinfo b/archivers/py-pyzstd/distinfo new file mode 100644 index 000000000000..56c96ea2000a --- /dev/null +++ b/archivers/py-pyzstd/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724809518 +SHA256 (pyzstd-0.16.2.tar.gz) = 179c1a2ea1565abf09c5f2fd72f9ce7c54b2764cf7369e05c0bfd8f1f67f63d2 +SIZE (pyzstd-0.16.2.tar.gz) = 789505 diff --git a/archivers/py-pyzstd/files/patch-pyproject.toml b/archivers/py-pyzstd/files/patch-pyproject.toml new file mode 100644 index 000000000000..45c1f872d55f --- /dev/null +++ b/archivers/py-pyzstd/files/patch-pyproject.toml @@ -0,0 +1,10 @@ +--- pyproject.toml.orig 2024-11-21 04:16:04 UTC ++++ pyproject.toml +@@ -1,6 +1,6 @@ + [build-system] + # setuptools 64+ support --build-option + # setuptools 74+ drops distutils.msvc9compiler required for Python 3.9 under Windows +-requires = ["setuptools>=64,<74"] ++requires = ["setuptools"] + backend-path = ["build_script"] + build-backend = "pyzstd_pep517" diff --git a/archivers/py-pyzstd/pkg-descr b/archivers/py-pyzstd/pkg-descr new file mode 100644 index 000000000000..180da2d48c4a --- /dev/null +++ b/archivers/py-pyzstd/pkg-descr @@ -0,0 +1,3 @@ +Pyzstd module provides classes and functions for compressing +and decompressing data, using Facebook's Zstandard (or zstd +as short name) algorithm.