From nobody Sat Apr 29 15:45:11 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q7v1h3BSSz47tsX; Sat, 29 Apr 2023 15:45:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q7v1h0g38z4Q95; Sat, 29 Apr 2023 15:45:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682783112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JrHjbH7UWjKd0UsEkmFJ0D8knuEk+KLcIgKGgyxvbQI=; b=LgVhc5KcA2qDmifygGSQyuB8zBVrVMHNYEjfLEgCv+ucwhXMuxST/l108DTEIin1UP2BBn YHl/N1eawU0C0WXRvJotonmUgR8JolqWCzPhv19tRjvhfCugdvL3zHTNtM5kSCccVIXB1t OBz/g9m4RS1KPiLUUgj2V+pC5D1+fGVEM9H5jAiejTdrfySHsLY7dVUddyxTJQJh2nQl/u 99aHXOczQn+ALF/5goGK78r6AocZ/G0ihHI+OpoCQ1CkVYB18l1HRXCUiJ+GB0/xToXq3t wr6YJ3ejXmPnlc/HhUCpNuakepG+G85r7XxvPmzkBt5JPbHLDE4fdZdrH3YAyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682783112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JrHjbH7UWjKd0UsEkmFJ0D8knuEk+KLcIgKGgyxvbQI=; b=o/n9kUK4YD14PgsVk0t19hWOOrFyMPruLFq6JcV1hPR3w18gk+97/blAa8Cq/9ZTQ9ByEq /B0zDEiKZUtAH8oGgUoxuzSiqFPA9Mb8rS/JkDZMcCMTPS2KMfzollbwT2fkzLpW205VJq x+gV5W2b7RB0RD2bbgKrs6YbAOULYbIT4DQ7l6Azh+ueXrsByHvYLaz+gc3onhxXiXjaJw /jlBPVDv8CXxNY1APr5Q4ZoU93EZOUt0cVkr9Hss7g4fdIpVGVr7/Y/RUl5jyhBxiA2ssW 0k2WH6ZjLWskRcQEc6ckob17cJYOFSkK+A3MoMt2gdk5T5RuVQsjdODgVIsrWQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682783112; a=rsa-sha256; cv=none; b=J63GpGTxGptBgV9cdXR9VRLyZ22K6K9fLEWzd8vacVfIGPRoqetvBMrhQun4d8IIHquNPV ajMjEuhr7VQeddv52x3subwlOhhwjDiZNSTHw3jgTRXIz+sYjKpd5d32xhArHTUl3omVsu 4AzkNosMlJ8CEXcXdD2hjkJ1zwEIdvmYp+R3nB4wJLLlCR5Md+tk77dOjvkjnIezOk37oH E6iVKzYpqmAq7O/MHKs/Zih88V3QvdORk6wu4UhH9uG5SokCs7tRiilTI4PXxS/hp79XxE VTVhxQ46Q7psve8gPUnx9Lid+C518qTn/niWPJPmoGPA1tzOUKSUt/kJWjPUqg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q7v1g6l0Qzmg7; Sat, 29 Apr 2023 15:45:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33TFjBOA070478; Sat, 29 Apr 2023 15:45:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33TFjBor070477; Sat, 29 Apr 2023 15:45:11 GMT (envelope-from git) Date: Sat, 29 Apr 2023 15:45:11 GMT Message-Id: <202304291545.33TFjBor070477@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dan Langille Subject: git: a8df729773f0 - main - devel/py-versioningit: New port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dvl X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a8df729773f0f5e378ce05d0e1acf08b1fb05fa6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dvl: URL: https://cgit.FreeBSD.org/ports/commit/?id=a8df729773f0f5e378ce05d0e1acf08b1fb05fa6 commit a8df729773f0f5e378ce05d0e1acf08b1fb05fa6 Author: Dan Langille AuthorDate: 2023-04-29 15:38:17 +0000 Commit: Dan Langille 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 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}"