From nobody Thu Feb 01 13:51:51 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 4TQgLb5yhCz58hHs; Thu, 1 Feb 2024 13:51:51 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TQgLb5XStz4cpT; Thu, 1 Feb 2024 13:51:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706795511; 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=UKvfZSndA3EQvNlTNBGYz2vNc6eGybSYmloKsuOmiIM=; b=O/yRPO2LIc8oO2qrnU1q5O4/WgW2LJTztE3tJfwA1DYQMPxEKbOu7qXi3nHparjfKc+3ds mFkTthPmKWk7WjojBPJsK8QzlXzamzkbYI15qOnQxj855YJJ+wDUDdhAEoERGDKfIquGWp QxdGciRaYxM8zvQKizNQzK/dEBVYlObptK46saBkbSQNubPelAYgq8qFR3kLCH420Ui19g /ahH2UGsHnOKC+TJAszvI//3rzVLLaKBZdLFBUb6HIIhThZI+WdSbJSos7jrCnTdbzQ425 d7oHqiOT0lsTiyr0L36MmP3OHy//t4tNHEohkljABEOoeyxRcE3iZPB6b8eWVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706795511; 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=UKvfZSndA3EQvNlTNBGYz2vNc6eGybSYmloKsuOmiIM=; b=UWJj9cezTNVqskEMOA1K/zc6aLo+eIc6w+/NEzP7PpaXcb0IoWqJXMsA71azDefkChUK8f dUS8eEeKzdIysB1pFSnQjs0xqF0Zj0GAv25r9ofMuNZG1LOY3CK8Uly41sxkHHQTVHdT22 NLIq6ycoRzIz2oAvk7kFSd06KT5HFI5DL2Be8aVGwdvW/u+EWYz2zbh2nkCdjiauDZTtcI ZLkSC6eH8SrNHoLO31BQyE6Ob6IfXzfkNrp9XFStgRv2+UU+Qb3JYjHyuXuHFqyDbRrNWX PDBU+aXLEYY5lmAyHyxjZRFISfKCNHMvcg0/CHbsFteiid//6iKkzsAigWpfLw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706795511; a=rsa-sha256; cv=none; b=InnRvEaif54iR0ERp9cVCgRY+UHFbCmKyD6Prq3CAZ27nbSTC3ViG3oSaX0+jNyWArorM2 9HZJFIM3IAoz/XSRSPMtz8+qVISFXeqJtXqigSIkVufhATdWMJAmOzFKXag4F8lemViG9N MfvT0CbXGXeArWF6+Kahm4uCf5h1Dzb9NUtRHlzJDGFu/AIuaL233BHy5eQ3XZG+v2LEEA c2TCRXPI3YCVKQbm3HkiRklmnWvkXF0fmYdnKBfaMdzK4iBF+8UgfLRwX9MHef0cuniU4U no+Rz1b8ox6/zw3tXhHehUIF4s0vRU4UJvnXckJ4iIHap5ZpMwVPD6BkIulEDw== 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 4TQgLb4LjVz14Y4; Thu, 1 Feb 2024 13:51:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 411DppnU008576; Thu, 1 Feb 2024 13:51:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 411Dpp33008573; Thu, 1 Feb 2024 13:51:51 GMT (envelope-from git) Date: Thu, 1 Feb 2024 13:51:51 GMT Message-Id: <202402011351.411Dpp33008573@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Wen Heping Subject: git: a02b73e321dc - main - converters/py-rencode: Sync with main, restore build with cython 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wen X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a02b73e321dc3fcb2c29b83af532452a13c19409 Auto-Submitted: auto-generated The branch main has been updated by wen: URL: https://cgit.FreeBSD.org/ports/commit/?id=a02b73e321dc3fcb2c29b83af532452a13c19409 commit a02b73e321dc3fcb2c29b83af532452a13c19409 Author: Wen Heping AuthorDate: 2024-02-01 13:49:22 +0000 Commit: Wen Heping CommitDate: 2024-02-01 13:51:15 +0000 converters/py-rencode: Sync with main, restore build with cython PR: 276744 Reported by: agh@riseup.net --- converters/py-rencode/Makefile | 13 ++++++++--- converters/py-rencode/distinfo | 6 ++--- converters/py-rencode/files/patch-setup.py | 37 ++++++++---------------------- 3 files changed, 23 insertions(+), 33 deletions(-) diff --git a/converters/py-rencode/Makefile b/converters/py-rencode/Makefile index e83f61cebf21..06b157739c4f 100644 --- a/converters/py-rencode/Makefile +++ b/converters/py-rencode/Makefile @@ -1,8 +1,7 @@ PORTNAME= rencode PORTVERSION= 1.0.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= converters devel python -MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= python@FreeBSD.org @@ -12,9 +11,17 @@ WWW= https://github.com/aresch/rencode LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cython3>0:lang/cython3@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + USES= cpe python CPE_VENDOR= ${PORTNAME}_project -USE_PYTHON= autoplist distutils +USE_PYTHON= autoplist pep517 + +USE_GITHUB= yes +GH_ACCOUNT= aresch +GH_TAGNAME= 572ff74586d9b1daab904c6f7f7009ce0143bb75 # Make setup.py test target work with setup.py:test_suite # See: files/patch-setup.py diff --git a/converters/py-rencode/distinfo b/converters/py-rencode/distinfo index 2ee64ffef795..d0a6f8b5248d 100644 --- a/converters/py-rencode/distinfo +++ b/converters/py-rencode/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1540227451 -SHA256 (rencode-1.0.6.tar.gz) = 2586435c4ea7d45f74e26765ad33d75309de7cf47c4d762e8efabd39905c0718 -SIZE (rencode-1.0.6.tar.gz) = 74660 +TIMESTAMP = 1706773577 +SHA256 (aresch-rencode-1.0.6-572ff74586d9b1daab904c6f7f7009ce0143bb75_GH0.tar.gz) = af3c1193a54713ac036c35fe516a6bea391c38442d81ff9721e06bf777335f7c +SIZE (aresch-rencode-1.0.6-572ff74586d9b1daab904c6f7f7009ce0143bb75_GH0.tar.gz) = 25887 diff --git a/converters/py-rencode/files/patch-setup.py b/converters/py-rencode/files/patch-setup.py index b335642023de..a3bc8f1f39db 100644 --- a/converters/py-rencode/files/patch-setup.py +++ b/converters/py-rencode/files/patch-setup.py @@ -1,37 +1,20 @@ -# 1) converters/py-rencode: Fails to configure if cython is installed -# 2) make setup.py test command work via test_suite directive -# 3) Honour/respect user CFLAGS +# 1) make setup.py test command work via test_suite directive +# 2) Honour/respect user CFLAGS # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233561 ---- setup.py.orig 2018-10-21 17:41:35 UTC +--- setup.py.orig 2024-01-31 07:33:33 UTC +++ setup.py -@@ -29,19 +29,14 @@ from distutils.errors import CCompilerError, Distutils - from setuptools import setup - from setuptools.extension import Extension - --try: -- from Cython.Build import build_ext -- from Cython.Build import cythonize --except ImportError as ex: -- from setuptools.command.build_ext import build_ext -- cythonize = False -+from setuptools.command.build_ext import build_ext -+cythonize = False - - source_ext = ".pyx" if cythonize else ".c" - +@@ -42,7 +42,6 @@ ext_modules = [ ext_modules = [ Extension( "rencode._rencode", - extra_compile_args=["-O3"], - sources=["rencode/rencode" + source_ext], + sources=["rencode/_rencode" + source_ext], ), ] -@@ -92,5 +87,6 @@ setup( - url="https://github.com/aresch/rencode", - cmdclass={'build_ext': optional_build_ext}, - ext_modules=ext_modules, -- setup_requires=['setuptools', 'wheel'], -+ setup_requires=['setuptools'], -+ test_suite='tests', +@@ -97,4 +96,5 @@ setup( + cmdclass={"build_ext": optional_build_ext}, + ext_modules=ext_modules, + setup_requires=["setuptools"], ++ test_suite='tests', )