Date: Sat, 29 Apr 2023 15:45:11 GMT From: Dan Langille <dvl@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: a8df729773f0 - main - devel/py-versioningit: New port Message-ID: <202304291545.33TFjBor070477@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by dvl: URL: https://cgit.FreeBSD.org/ports/commit/?id=a8df729773f0f5e378ce05d0e1acf08b1fb05fa6 commit a8df729773f0f5e378ce05d0e1acf08b1fb05fa6 Author: Dan Langille <dvl@FreeBSD.org> AuthorDate: 2023-04-29 15:38:17 +0000 Commit: Dan Langille <dvl@FreeBSD.org> CommitDate: 2023-04-29 15:45:07 +0000 devel/py-versioningit: New port setuptools plugin for automatically determining your package’s version Needed for sysutils/py-mqttwarn --- devel/Makefile | 1 + devel/py-versioningit/Makefile | 27 +++++++++++++++++++++++++++ devel/py-versioningit/distinfo | 3 +++ devel/py-versioningit/files/setup.py | 3 +++ devel/py-versioningit/pkg-descr | 14 ++++++++++++++ 5 files changed, 48 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index a5b2490692e7..6271a95f0ff0 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5653,6 +5653,7 @@ SUBDIR += py-venusian SUBDIR += py-verboselogs SUBDIR += py-versioneer + SUBDIR += py-versioningit SUBDIR += py-versiontools SUBDIR += py-verspec SUBDIR += py-vine diff --git a/devel/py-versioningit/Makefile b/devel/py-versioningit/Makefile new file mode 100644 index 000000000000..1ead6d5af1c6 --- /dev/null +++ b/devel/py-versioningit/Makefile @@ -0,0 +1,27 @@ +PORTNAME= versioningit +PORTVERSION= 2.2.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dvl@FreeBSD.org +COMMENT= Obtain package version from repo tags +WWW= https://github.com/jwodder/versioningit + +LICENSE= MIT + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tomli>0:textproc/py-tomli@${PY_FLAVOR} \ + git>0:devel/git + +USES= python:3.7+ +USE_PYTHON= autoplist pep517 + +post-patch: + @${CP} ${FILESDIR}/setup.py ${WRKSRC}/ + +.include <bsd.port.mk> diff --git a/devel/py-versioningit/distinfo b/devel/py-versioningit/distinfo new file mode 100644 index 000000000000..9a6a9deb4479 --- /dev/null +++ b/devel/py-versioningit/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1682769356 +SHA256 (versioningit-2.2.0.tar.gz) = 1e7d80cdeee2dbcebaf61d25205c9faac268a1926ff43fc5c7236f45639c3782 +SIZE (versioningit-2.2.0.tar.gz) = 594921 diff --git a/devel/py-versioningit/files/setup.py b/devel/py-versioningit/files/setup.py new file mode 100644 index 000000000000..606849326a40 --- /dev/null +++ b/devel/py-versioningit/files/setup.py @@ -0,0 +1,3 @@ +from setuptools import setup + +setup() diff --git a/devel/py-versioningit/pkg-descr b/devel/py-versioningit/pkg-descr new file mode 100644 index 000000000000..b094ebecae74 --- /dev/null +++ b/devel/py-versioningit/pkg-descr @@ -0,0 +1,14 @@ +versioningit replaces the need for (and will overwrite) the version keyword +to the setup() function, so you should remove any such keyword from your +setup.py/setup.cfg to reduce confusion. + +[tool.versioningit.format] + +# Format used when there have been commits since the most recent tag: +distance = "{base_version}.post{distance}+{vcs}{rev}" + +# Format used when there are uncommitted changes: +dirty = "{base_version}+d{build_date:%Y%m%d}" + +# Format used when there are both commits and uncommitted changes: +distance-dirty = "{base_version}.post{distance}+{vcs}{rev}.d{build_date:%Y%m%d}"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304291545.33TFjBor070477>