git: 476801550b92 - main - textproc/py-tomli: Update version in setup.py automatically
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 01 Nov 2021 13:47:08 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=476801550b92a0ae5e552157fd1e6de28a4e3fad
commit 476801550b92a0ae5e552157fd1e6de28a4e3fad
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-11-01 13:27:56 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-11-01 13:41:53 +0000
textproc/py-tomli: Update version in setup.py automatically
---
textproc/py-tomli/Makefile | 2 +-
textproc/py-tomli/files/setup.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/textproc/py-tomli/Makefile b/textproc/py-tomli/Makefile
index c556a3990479..07a8154bc2cd 100644
--- a/textproc/py-tomli/Makefile
+++ b/textproc/py-tomli/Makefile
@@ -18,6 +18,6 @@ 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
.include <bsd.port.mk>
diff --git a/textproc/py-tomli/files/setup.py b/textproc/py-tomli/files/setup.py
index 49d46c56224a..0a76d4154c5a 100644
--- a/textproc/py-tomli/files/setup.py
+++ b/textproc/py-tomli/files/setup.py
@@ -10,7 +10,7 @@ package_data = \
{'': ['*']}
setup(name='tomli',
- version='1.2.1',
+ version='%%PORTVERSION%%',
description="A lil' TOML parser",
author=None,
author_email='Taneli Hukkinen <hukkin@users.noreply.github.com>',