Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Apr 2023 10:01:49 GMT
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 94b3a73692ec - main - devel/py-setuptools_scm7: New port
Message-ID:  <202304221001.33MA1nbc077226@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=94b3a73692ec399524fedd2407a2a454bad0db00

commit 94b3a73692ec399524fedd2407a2a454bad0db00
Author:     Matthew Seaman <matthew@FreeBSD.org>
AuthorDate: 2023-04-22 09:34:38 +0000
Commit:     Matthew Seaman <matthew@FreeBSD.org>
CommitDate: 2023-04-22 10:01:36 +0000

    devel/py-setuptools_scm7: New port
    
    Copied from devel/py-setuptools_scm
---
 devel/Makefile                     |  1 +
 devel/py-setuptools_scm7/Makefile  | 61 ++++++++++++++++++++++++++++++++++++++
 devel/py-setuptools_scm7/distinfo  |  3 ++
 devel/py-setuptools_scm7/pkg-descr |  2 ++
 4 files changed, 67 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 46e636c8a1c0..00e994fbadc6 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5467,6 +5467,7 @@
     SUBDIR += py-setuptools_git_ls_files
     SUBDIR += py-setuptools_hg
     SUBDIR += py-setuptools_scm
+    SUBDIR += py-setuptools_scm7
     SUBDIR += py-setuptools_scm_git_archive
     SUBDIR += py-sexpdata
     SUBDIR += py-sgmllib3k
diff --git a/devel/py-setuptools_scm7/Makefile b/devel/py-setuptools_scm7/Makefile
new file mode 100644
index 000000000000..9cc28a3a09f7
--- /dev/null
+++ b/devel/py-setuptools_scm7/Makefile
@@ -0,0 +1,61 @@
+PORTNAME=	setuptools_scm
+PORTVERSION=	7.1.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX=	7
+
+MAINTAINER=	matthew@FreeBSD.org
+COMMENT=	Setuptools plugin to manage your versions by scm tags
+WWW=		https://pypi.org/project/setuptools-scm/ \
+		https://github.com/pypa/setuptools_scm
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}packaging>=20.0:devel/py-packaging@${PY_FLAVOR} \
+		${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}packaging>=20.0:devel/py-packaging@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
+
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}virtualenv>=0:devel/py-virtualenv@${PY_FLAVOR} \
+		git:devel/git \
+		${PY_MERCURIAL}	\
+		gpg:security/gnupg
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist pep517 pytest
+
+CONFLICTS_INSTALL=	${PYTHON_PKGNAMEPREFIX}-${PORTNAME}
+
+NO_ARCH=	yes
+
+TEST_ENV+=	PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
+
+# Optional tests that depend on `dir` (windows) and `hg_git` (no longer in ports) will be skipped
+
+# test_case_mismatch_on_windows_git  we're not on windows...
+# test_on_old_setuptools             devel/py-setuptools is newer than the versions tested here
+# test_not_owner                     requires passwordless sudo access
+PYTEST_IGNORED_TESTS=	test_case_mismatch_on_windows_git \
+			test_on_old_setuptools \
+			test_not_owner
+
+# https://github.com/pypa/setuptools_scm/issues/449
+PYTEST_BROKEN_TESTS=	test_non_dotted_version
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31100
+BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tomli>=1.0.0:textproc/py-tomli@${PY_FLAVOR}
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tomli>=1.0.0:textproc/py-tomli@${PY_FLAVOR}
+.endif
+
+.if ${PYTHON_REL} < 30800
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-setuptools_scm7/distinfo b/devel/py-setuptools_scm7/distinfo
new file mode 100644
index 000000000000..1d15e06471d2
--- /dev/null
+++ b/devel/py-setuptools_scm7/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1679907456
+SHA256 (setuptools_scm-7.1.0.tar.gz) = 6c508345a771aad7d56ebff0e70628bf2b0ec7573762be9960214730de278f27
+SIZE (setuptools_scm-7.1.0.tar.gz) = 71904
diff --git a/devel/py-setuptools_scm7/pkg-descr b/devel/py-setuptools_scm7/pkg-descr
new file mode 100644
index 000000000000..552a33774a26
--- /dev/null
+++ b/devel/py-setuptools_scm7/pkg-descr
@@ -0,0 +1,2 @@
+Handles managing your python package versions in scm metadata instead of
+declaring them as the version argument or in a scm managed file.



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