From nobody Thu Nov 21 13:41:59 2024 X-Original-To: dev-commits-ports-main@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 4XvKCY0cXTz5d3ZT; Thu, 21 Nov 2024 13:42:01 +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 4XvKCX0Zr5z4NJh; Thu, 21 Nov 2024 13:42:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732196520; 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=X9ynkxvHHeNYxNS2MEfR8vQ2I4KLHEyHXH62mAfkGtQ=; b=KHp/mqv88mFSY0p3sawrjEES5IcI8IVwnhVcMbcAMRJZdKy3Liwe/M9Nrk2W9/ZDHxTxK/ ZRlaZGy+jZ+CNEtg68QlkSqIxvRe02iEQWMVDrEGIq37YVw1eebqH3rtKzfwrDEar8jL94 oorYHdqYJKTjLZmShscMKN3sLh2fkxRIjK/gG20598y32qJal4RaknmmNV/r36WFSQ7x7e Z7d2dtPBTv0EBQbj4khY9R2VCn/dSGFuIEYXsZXf8zFUEHv1WFBeymHFwELvZFjwn5LxRH YRjhkpHPvO10/1M2TDQmeVcQ3aK9c/xWSQBMIcyFOdvsXGH2w+pWD5rBoLQ+3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732196520; 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=X9ynkxvHHeNYxNS2MEfR8vQ2I4KLHEyHXH62mAfkGtQ=; b=P3YTmZ5nfM1zpcjTbqKD87r1Qw3dACGG/KIjTkvFSYMwQNkOTUQFMpjh/oMD9hRYNb30w2 POnUTAKVODoyM/AOAotSMUQhwrvp6trps2hUikRDwK5BveCHkw2OhrOiHaEnUT70T3AzzZ iw3wYyLnPpPFeLZHcbmPBMOO/jmiO0UiIJ5rqdSOk8jMPpbUcVZqMeZaDO8TIivkB5MOn8 9HrQHZOdE2kq7GKf3wq9ub2vmRnaOh0Jer0CqKHR56P+9hk5l7oO+IdmOfK3CStqMcIKaw 8m7Ka7ijeyHQHp04LuM5taGFMi0jfcq/R055jDCRaZokDHLoFEZeuyBsLzcTTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732196520; a=rsa-sha256; cv=none; b=SrKYpnZVQroJXm+EeQkXocCtWgB20YxQa604pivYb7T3GPoetu9er1zbRLxN9cwnnJk4nj +RlFGlNGA81vXxUQkJMiy31YI8yU5lyxvmOXY0gMkwB5h4/aWO2ZxG1AsrBPTWtaCj//Im uCy7S+TgxLb24B8gPvESJmJ77NqahOZeshSuQXKEDNIvjW7DHQq7nT/NSl6z7AdC7uXZdJ d1q1TpTbeMTDtjYWCrGiBeOnRAw0D2JQL1ELdXC7srPhq/aggNAscp8fKIKCe03TsGudJm yPQJ0E2R2YgJ0dpJoRMiQWmZM7V3tSY1svmEq+ZGvIsDMADscKy0TllllCffaw== 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 4XvKCX07ydzhxw; Thu, 21 Nov 2024 13:42:00 +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 4ALDfx9G014591; Thu, 21 Nov 2024 13:41:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4ALDfxLv014588; Thu, 21 Nov 2024 13:41:59 GMT (envelope-from git) Date: Thu, 21 Nov 2024 13:41:59 GMT Message-Id: <202411211341.4ALDfxLv014588@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 37c141a8e4c4 - main - devel/py-dulwich: Clean up List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 37c141a8e4c462c902e8914f0e5cfdef1318a19a Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=37c141a8e4c462c902e8914f0e5cfdef1318a19a commit 37c141a8e4c462c902e8914f0e5cfdef1318a19a Author: Po-Chuan Hsieh AuthorDate: 2024-11-21 13:21:12 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-11-21 13:38:07 +0000 devel/py-dulwich: Clean up - Update WWW - Use USES=shebangfix - Convert to USE_PYTHON=unittest - Convert PORTDOCS and PORTEXAMPLES to PLIST entries - Remove TEST option - Update pkg-descr - Bump PORTREVISION for package change --- devel/py-dulwich/Makefile | 58 +++++++++++++++++----------------------------- devel/py-dulwich/pkg-descr | 12 +++++----- devel/py-dulwich/pkg-plist | 17 ++++++++++++++ 3 files changed, 44 insertions(+), 43 deletions(-) diff --git a/devel/py-dulwich/Makefile b/devel/py-dulwich/Makefile index 74489f4fed48..eb14b83fb150 100644 --- a/devel/py-dulwich/Makefile +++ b/devel/py-dulwich/Makefile @@ -1,12 +1,14 @@ PORTNAME= dulwich -DISTVERSION= 0.21.7 +PORTVERSION= 0.21.7 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org -COMMENT= Python implementation of the Git file formats and protocols -WWW= https://www.dulwich.io/ +COMMENT= Python Git Library +WWW= https://www.dulwich.io/ \ + https://github.com/jelmer/dulwich LICENSE= APACHE20 GPLv2+ LICENSE_COMB= dual @@ -15,52 +17,34 @@ LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}urllib3>=1.25:net/py-urllib3@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fastimport>=0:devel/py-fastimport@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}gevent>=0:devel/py-gevent@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}geventhttpclient>=0:devel/py-geventhttpclient@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=17.1:devel/py-setuptools@${PY_FLAVOR} -USES= cpe python -CPE_VENDOR= dulwich_project -USE_PYTHON= autoplist concurrent pep517 +USES= cpe python shebangfix +USE_PYTHON= autoplist concurrent pep517 unittest -PORTDOCS= AUTHORS NEWS README.rst TODO conclusion.txt encoding.txt \ - file-format.txt index.txt introduction.txt object-store.txt \ - performance.txt porcelain.txt protocol.txt remote.txt repo.txt tag.txt -PORTEXAMPLES= clone.py config.py diff.py latest_change.py +CPE_VENDOR= dulwich_project -OPTIONS_DEFINE= DOCS EXAMPLES FASTIMPORT PARAMIKO TEST -OPTIONS_DEFAULT=TEST +SHEBANG_FILES= examples/*.py -FASTIMPORT_DESC= Enable fastimport support -PARAMIKO_DESC= Enable paramiko SSH2 protocol support +OPTIONS_DEFINE= DOCS EXAMPLES FASTIMPORT PARAMIKO +FASTIMPORT_DESC=Git fastimport support +PARAMIKO_DESC= SSH2 support FASTIMPORT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fastimport>=0:devel/py-fastimport@${PY_FLAVOR} PARAMIKO_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}paramiko>=0:security/py-paramiko@${PY_FLAVOR} -.include - -post-patch: - ${REINPLACE_CMD} -e 's|PYTHON = python|PYTHON = ${PYTHON_CMD}|g' \ - ${WRKSRC}/Makefile - ${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|g' \ - ${WRKSRC}/setup.py ${WRKSRC}/examples/*.py - -post-patch-TEST-off: - ${REINPLACE_CMD} -e '/tests/d' \ - ${WRKSRC}/dulwich.egg-info/SOURCES.txt \ - ${WRKSRC}/MANIFEST.in - ${REINPLACE_CMD} -e "/packages=/s|'dulwich\.tests[^']*',||g" \ - ${WRKSRC}/setup.py - post-install: - @${STRIP_CMD} ${STAGEDIR}/${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/*.so + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + post-install-DOCS-on: - ${CP} ${WRKSRC}/docs/*.txt ${WRKSRC}/docs/tutorial/*.txt ${WRKSRC}/ - @${MKDIR} ${STAGEDIR}${DOCSDIR} - (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/) + ${MKDIR} ${STAGEDIR}${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/docs/tutorial/*.txt ${STAGEDIR}${DOCSDIR}/ post-install-EXAMPLES-on: - ${CP} ${WRKSRC}/examples/*.py ${WRKSRC}/ - @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - (cd ${WRKSRC} && ${INSTALL_SCRIPT} ${PORTEXAMPLES} \ - ${STAGEDIR}${EXAMPLESDIR}/) + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ + ${INSTALL_DATA} ${WRKSRC}/examples/*.py ${STAGEDIR}${EXAMPLESDIR}/ .include diff --git a/devel/py-dulwich/pkg-descr b/devel/py-dulwich/pkg-descr index 9296911f5f59..5fa083545588 100644 --- a/devel/py-dulwich/pkg-descr +++ b/devel/py-dulwich/pkg-descr @@ -1,7 +1,7 @@ -Dulwich is a Python implementation of the Git file formats and protocols, -without the need to have Git installed. +Dulwich project aims to provide an interface to git repos (both local and +remote) that doesn't call out to git directly but instead uses pure Python. -It aims to provide an interface to Git repos (both local and remote) that -does not call out to Git directly but instead uses pure Python. All -functionality is available in pure Python. Optional C extensions can be -built for improved performance. +By default, Dulwich' setup.py will attempt to build and install the optional C +extensions. The reason for this is that they significantly improve the +performance since some low-level operations that are executed often are much +slower in CPython. diff --git a/devel/py-dulwich/pkg-plist b/devel/py-dulwich/pkg-plist new file mode 100644 index 000000000000..9d6f4e86ad83 --- /dev/null +++ b/devel/py-dulwich/pkg-plist @@ -0,0 +1,17 @@ +%%PORTDOCS%%%%DOCSDIR%%/conclusion.txt +%%PORTDOCS%%%%DOCSDIR%%/encoding.txt +%%PORTDOCS%%%%DOCSDIR%%/file-format.txt +%%PORTDOCS%%%%DOCSDIR%%/index.txt +%%PORTDOCS%%%%DOCSDIR%%/introduction.txt +%%PORTDOCS%%%%DOCSDIR%%/object-store.txt +%%PORTDOCS%%%%DOCSDIR%%/porcelain.txt +%%PORTDOCS%%%%DOCSDIR%%/remote.txt +%%PORTDOCS%%%%DOCSDIR%%/repo.txt +%%PORTDOCS%%%%DOCSDIR%%/tag.txt +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/clone.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/config.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/diff.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gcs.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/latest_change.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/memoryrepo.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rename-branch.py