git: a02b73e321dc - main - converters/py-rencode: Sync with main, restore build with cython
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 01 Feb 2024 13:51:51 UTC
The branch main has been updated by wen: URL: https://cgit.FreeBSD.org/ports/commit/?id=a02b73e321dc3fcb2c29b83af532452a13c19409 commit a02b73e321dc3fcb2c29b83af532452a13c19409 Author: Wen Heping <wen@FreeBSD.org> AuthorDate: 2024-02-01 13:49:22 +0000 Commit: Wen Heping <wen@FreeBSD.org> 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', )