From nobody Thu Oct 05 02:01:04 2023 X-Original-To: dev-commits-ports-main@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 4S1FCN5PQ1z4vnrP; Thu, 5 Oct 2023 02:01:04 +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 4S1FCN50Vsz3CV8; Thu, 5 Oct 2023 02:01:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696471264; 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=RcIXycTwPkpXX46tJBasooEVM6aoDYrIjhZesItXUuU=; b=hcESqA58hbtTwbFKzQ3T35Eht/GxsbSD/1lYCs8/ZzxS6guYS4QzdgALahX8wdLqM1K8kh 9OiqPtTaPKEgcAiGlfbJAt7bDOYhiy5+xQKcwGn2BoXXRUPA/ENfalX/NJetXU6MDliAcB Q7xTZLoRd8QnTXHKRj0Hf0OqfhssjP7l6OpAJ091emcC7fV2RdOVnnfePcBzy1pwuuS5tr zQAC19cNefLO1Qr2uZdL0Lle6zaWHIiKMQNXpiyNWMDGqMb/ue74kwC3SA24PPWLGchsuo Mc0pFjssmqhuLAoqlveKv3jgLrZ9VXKzBQrPZYbu1T8tpk4Xr6bdUFBuvXPRQA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696471264; a=rsa-sha256; cv=none; b=hidfi0UpgAWsHQRldURGfXyQKjhiAaX+Jb8HEHypewVLAfE4VfBJn8oe2RD1IP102fWkWU Xf3cl9uTmtk3HfNGPoK6JGdkCtNUs/YxxBm1xgwnpP5bz2GgPFIgZiYz2j6DZJUZK3/ahF FUfoU4sOs/CbkPdinoAdrjz0Fexs/gnBZ/WYMGQAj+lZNjepxLe0h2eOJ0rqHK1XvkViIk FrN4pK/4XWhx4v/dYemCld15Ltdxoi6s+hjyYyU0WbiBqGWYZZmNLD9IioU2XLTCCqtJDM bOlrSJhx5ETi2JQ6qjXb6zQ3LmmtLV0tc77ap37Dw1RENcrospcG1AdWxrqbnQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696471264; 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=RcIXycTwPkpXX46tJBasooEVM6aoDYrIjhZesItXUuU=; b=Ji/KYVS9Pw18O7ZeMM9e86dD6qaW7D+mSeHWXjfDwcZ+QhzkLlR0rAyBXlflwgD6B/j+NW XzKkahCFs24zwW9cmJMHjmIdb331OnipS7Y1qU07U14nGSpD+cwoiEbHXpluTJd9SiLzeQ lzKJH+Og7HnI2qzze7bU63X44urmlIq7eamEhaYVJATrh5crXmD0b7lmMzIPctuWgYZDFr B63jd9gadHZpDxYPJMNxgnVDL4OggJeDhIGSCmor2De2D2Tcmols4KAljAIEFQz/+D51V/ JCHoYPulQpF9pmRM3Aq6qcyz2tzgiDc0Fa6PeQFGsJStYtEnsVDrq7+7W6WqNQ== 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 4S1FCN4593z11mS; Thu, 5 Oct 2023 02:01:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 395214KA053405; Thu, 5 Oct 2023 02:01:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 395214TQ053389; Thu, 5 Oct 2023 02:01:04 GMT (envelope-from git) Date: Thu, 5 Oct 2023 02:01:04 GMT Message-Id: <202310050201.395214TQ053389@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 1860118328b2 - main - devel/py-setuptools-git-versioning: Add py-setuptools-git-versioning 1.13.5 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1860118328b25ff01d71c5995c8dc44248f4afe3 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=1860118328b25ff01d71c5995c8dc44248f4afe3 commit 1860118328b25ff01d71c5995c8dc44248f4afe3 Author: Po-Chuan Hsieh AuthorDate: 2023-10-05 01:53:29 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-10-05 01:53:29 +0000 devel/py-setuptools-git-versioning: Add py-setuptools-git-versioning 1.13.5 Use git repo data (latest tag, current commit hash, etc) for building a version number according PEP 440. Features: - Can be installed & configured through both setup.py and PEP 518's pyproject.toml - Does not require to change source code of the project - Tag-, file-, and callback-based versioning schemas are supported - Templates for tag, dev and dirty versions are separated - Templates support a lot of substitutions including git and environment information - Well-documented --- devel/Makefile | 1 + devel/py-setuptools-git-versioning/Makefile | 32 ++++++++++++++++++++++++++++ devel/py-setuptools-git-versioning/distinfo | 3 +++ devel/py-setuptools-git-versioning/pkg-descr | 12 +++++++++++ 4 files changed, 48 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 9e23a283cbd1..f85b0ed93bc6 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5578,6 +5578,7 @@ SUBDIR += py-setuptools-declarative-requirements SUBDIR += py-setuptools-gettext SUBDIR += py-setuptools-git + SUBDIR += py-setuptools-git-versioning SUBDIR += py-setuptools-pkg SUBDIR += py-setuptools-rust SUBDIR += py-setuptools44 diff --git a/devel/py-setuptools-git-versioning/Makefile b/devel/py-setuptools-git-versioning/Makefile new file mode 100644 index 000000000000..c545f6f3049b --- /dev/null +++ b/devel/py-setuptools-git-versioning/Makefile @@ -0,0 +1,32 @@ +PORTNAME= setuptools-git-versioning +PORTVERSION= 1.13.5 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Use git repo data for building a version number according PEP-440 +WWW= https://setuptools-git-versioning.readthedocs.io/en/stable/ \ + https://github.com/dolfinus/setuptools-git-versioning + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include + +.if ${PYTHON_REL} < 31100 +BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}toml>=0.10.2:textproc/py-toml@${PY_FLAVOR} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}toml>=0.10.2:textproc/py-toml@${PY_FLAVOR} +.endif + +.include diff --git a/devel/py-setuptools-git-versioning/distinfo b/devel/py-setuptools-git-versioning/distinfo new file mode 100644 index 000000000000..f8616eabbf77 --- /dev/null +++ b/devel/py-setuptools-git-versioning/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1696432866 +SHA256 (setuptools-git-versioning-1.13.5.tar.gz) = af9ad1e8103b5abb5b128c2db4fef99407328ac9c12f65d3ff9550c4bb39ad1c +SIZE (setuptools-git-versioning-1.13.5.tar.gz) = 10767 diff --git a/devel/py-setuptools-git-versioning/pkg-descr b/devel/py-setuptools-git-versioning/pkg-descr new file mode 100644 index 000000000000..25e3b88dd7b6 --- /dev/null +++ b/devel/py-setuptools-git-versioning/pkg-descr @@ -0,0 +1,12 @@ +Use git repo data (latest tag, current commit hash, etc) for building a version +number according PEP 440. + +Features: +- Can be installed & configured through both setup.py and PEP 518's + pyproject.toml +- Does not require to change source code of the project +- Tag-, file-, and callback-based versioning schemas are supported +- Templates for tag, dev and dirty versions are separated +- Templates support a lot of substitutions including git and environment + information +- Well-documented