Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Nov 2021 13:47:00 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 487c0229d53f - main - textproc/py-hashids: Update version in setup.py automatically
Message-ID:  <202111011347.1A1Dl0fc050921@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=487c0229d53fb0dab711d131cffc70bea5ae6f27

commit 487c0229d53fb0dab711d131cffc70bea5ae6f27
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-11-01 13:27:22 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-11-01 13:41:51 +0000

    textproc/py-hashids: Update version in setup.py automatically
---
 textproc/py-hashids/Makefile       | 2 +-
 textproc/py-hashids/files/setup.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/textproc/py-hashids/Makefile b/textproc/py-hashids/Makefile
index 38aa8c65a293..84070edac10d 100644
--- a/textproc/py-hashids/Makefile
+++ b/textproc/py-hashids/Makefile
@@ -20,7 +20,7 @@ USE_PYTHON=	autoplist concurrent distutils
 NO_ARCH=	yes
 
 post-patch:
-	@${CP} ${FILESDIR}/setup.py ${WRKSRC}/
+	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
 
 do-test:
 	cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
diff --git a/textproc/py-hashids/files/setup.py b/textproc/py-hashids/files/setup.py
index f8b9328f2033..ede9026d3886 100644
--- a/textproc/py-hashids/files/setup.py
+++ b/textproc/py-hashids/files/setup.py
@@ -7,7 +7,7 @@ extras_require = \
 {'test': ['pytest >=2.1.0']}
 
 setup(name='hashids',
-      version='1.3.1',
+      version='%%PORTVERSION%%',
       description='Implements the hashids algorithm in python. For more information, visit http://hashids.org/',
       author='David Aurelio',
       author_email='dev@david-aurelio.com',



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111011347.1A1Dl0fc050921>