diff --git a/textproc/py-duecredit/Makefile b/textproc/py-duecredit/Makefile index 75df6cd5f7e3..c6910ca7d1d5 100644 --- a/textproc/py-duecredit/Makefile +++ b/textproc/py-duecredit/Makefile @@ -1,24 +1,27 @@ PORTNAME= duecredit -DISTVERSION= 0.9.3 +DISTVERSION= 0.10.2 CATEGORIES= textproc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Embed scientific publication or other references in the original code WWW= https://github.com/duecredit/duecredit LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}citeproc-py>=0.4:textproc/py-citeproc-py@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}looseversion>0:devel/py-looseversion@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} USES= python USE_PYTHON= distutils concurrent autoplist pytest TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} NO_ARCH= yes .include diff --git a/textproc/py-duecredit/distinfo b/textproc/py-duecredit/distinfo index a7f101f44762..9a4292a61be0 100644 --- a/textproc/py-duecredit/distinfo +++ b/textproc/py-duecredit/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1704179024 -SHA256 (duecredit-0.9.3.tar.gz) = f8378ea90d11f9752592e487c92163da80d9a9ff39993eb83c08bf2ed4eca372 -SIZE (duecredit-0.9.3.tar.gz) = 80753 +TIMESTAMP = 1722550397 +SHA256 (duecredit-0.10.2.tar.gz) = fe73a20e4fbb2d972ba01edf37dec1b0ba1e646efe5ef4ccaf0c6724ca287d42 +SIZE (duecredit-0.10.2.tar.gz) = 84265 diff --git a/textproc/py-duecredit/files/patch-setup.py b/textproc/py-duecredit/files/patch-setup.py index 82f19217f62e..761043a24790 100644 --- a/textproc/py-duecredit/files/patch-setup.py +++ b/textproc/py-duecredit/files/patch-setup.py @@ -1,11 +1,11 @@ ---- setup.py.orig 2018-05-14 00:01:07 UTC +--- setup.py.orig 2024-06-04 20:51:40 UTC +++ setup.py -@@ -39,7 +39,7 @@ try: - list(filter(lambda x: x.startswith(' -- '), lines))[0].rstrip()) +@@ -54,7 +54,7 @@ try: else: - print('Attempting to get version number from git...') -- git = Popen(['git', 'describe', '--abbrev=4', '--dirty'], -+ git = Popen(['false', 'describe', '--abbrev=4', '--dirty'], - stdout=PIPE, stderr=sys.stderr) + print("Attempting to get version number from git...") + git = Popen( +- ["git", "describe", "--abbrev=4", "--dirty"], stdout=PIPE, stderr=sys.stderr ++ ["false", "describe", "--abbrev=4", "--dirty"], stdout=PIPE, stderr=sys.stderr + ) if git.wait() != 0: raise OSError