From nobody Thu Jan 12 13:35:38 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 4Nt5Cb0Rstz2qssw; Thu, 12 Jan 2023 13:35:39 +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 4Nt5CZ74Fwz3FZ1; Thu, 12 Jan 2023 13:35:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673530539; 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=GAeJ6Jy5BnMfMm3O6tDI7TohyJy2zXngBYX9ra26Myw=; b=sQYgkBvbECUqvDv6ODTI9QnFA7FoJQUdAJg24N3nsQK6I5VXUosPJDvxrq7sNp+WsotsbD PyTsrIXSR28Ztaa+oNtIJTnia8zoJ04izfGfH3LBZjttFOszgeJvl4ZaHpVNJyiRmFxXcg 2JCa4oWxnLUfdpP4nLp5miIHQa5PC1UignXK9dCCDNdr932/Fh/6DmDV5qMGJzK0sfPHK9 Jvz9AjkGgjdeAZ8NeXrWHYEHioN2T4RIg2D5EFfClAZZTMCN1nmft6a2mOW6OChcuwpMqD LbOtl0wWqYfyVABaNWWBsF3fOghgxiZnsYsm6pQtc0tZynlVVHN1AYTTWW3w0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673530539; 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=GAeJ6Jy5BnMfMm3O6tDI7TohyJy2zXngBYX9ra26Myw=; b=J1ekVqbKl7sQlIJmrszutapB1UhrWu9g5xAodwYGUCBN9xJTlQ01KIzqWVWv2kyOGrar1g zY8E4Uguz8UcRebmXWJCQMsJSmaCLfu9mTHnIay9SJP628spAz6GBVbrMmRRkG3He/1Az9 KKwbxCYB2NN8T+KDtxkPN3T8ESV7uZ1AM0Y++On9ISsxnk1U407yMp/OwvLm58SWPeIq+f GHePRvUFqeBwGqdmoJrbDIP7foJBwJgUb74Q9gL1fkAy69ISisXrrubUVDimwgpndllQw1 HuHHJRRw2n+LyAzJAUrBC96TXtbtaxJUGeci+BT3IfJ7z8tHqyaoPaT1TRA7gQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673530539; a=rsa-sha256; cv=none; b=JO7p32RZ/rTaKVcW8VkrYau0k85tZfazsuVE1LdB4iBnybMY1gyrp/0Yq2MY+mJcOrUcQT XW4wWS5yiw9sMAlj3jZG7wE9jkTdTnUvi0XUGwox5qUvrXUIfN1sOHgfHRW+m9LVzbz+5O 6x4gz3WH2XKiMY+f/b3ePHmuEatkttpf6kNiKVLfw65ybrJ1KgECXG1GD+KLNPYKtpHfIQ 0xHKTsvg+bKbb0RCMYxW8anGIxMSqvhAOu0VOq4KaPI1ZzlAouh4CVPQIkW/7PzaaqNect uaOvwEkRJWGXHhzfRgCsHFdeRWDClIOxR+F+d5SgI2xIm/T7oN5pMKT6Rl2bfQ== 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 4Nt5CZ61kmzVNN; Thu, 12 Jan 2023 13:35:38 +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 30CDZc95007486; Thu, 12 Jan 2023 13:35:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30CDZcH4007485; Thu, 12 Jan 2023 13:35:38 GMT (envelope-from git) Date: Thu, 12 Jan 2023 13:35:38 GMT Message-Id: <202301121335.30CDZcH4007485@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Rainer Hurling Subject: git: 06ef76ad4292 - main - devel/py-pytoolconfig: Add new port: Python Tool Configuration 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: rhurlin X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 06ef76ad429207b98d35736e42feafb9feda123b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by rhurlin: URL: https://cgit.FreeBSD.org/ports/commit/?id=06ef76ad429207b98d35736e42feafb9feda123b commit 06ef76ad429207b98d35736e42feafb9feda123b Author: Rainer Hurling AuthorDate: 2023-01-12 13:29:09 +0000 Commit: Rainer Hurling CommitDate: 2023-01-12 13:29:09 +0000 devel/py-pytoolconfig: Add new port: Python Tool Configuration Project to manage configuration for python tools, such as black and rope and add support for a pyproject.toml configuration file. https://pypi.org/project/pytoolconfig/ --- devel/Makefile | 1 + devel/py-pytoolconfig/Makefile | 30 ++++++++++++++++++++++ devel/py-pytoolconfig/distinfo | 3 +++ .../files/patch-tests_test__pytoolconfig.py | 11 ++++++++ devel/py-pytoolconfig/pkg-descr | 3 +++ 5 files changed, 48 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 23fa72a00253..f4be22b289e9 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5259,6 +5259,7 @@ SUBDIR += py-pythonfinder SUBDIR += py-pythran SUBDIR += py-pytimeparse + SUBDIR += py-pytoolconfig SUBDIR += py-pytools SUBDIR += py-pytrie SUBDIR += py-pytvmaze diff --git a/devel/py-pytoolconfig/Makefile b/devel/py-pytoolconfig/Makefile new file mode 100644 index 000000000000..bff6a3668dca --- /dev/null +++ b/devel/py-pytoolconfig/Makefile @@ -0,0 +1,30 @@ +PORTNAME= pytoolconfig +PORTVERSION= 1.2.4 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= rhurlin@FreeBSD.org +COMMENT= Python Tool Configuration +WWW= https://pypi.org/project/pytoolconfig/ + +LICENSE= LGPL3+ +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pdm-pep517>0:devel/py-pdm-pep517@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}black>=0:devel/py-black@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}platformdirs>=2.2.0:devel/py-platformdirs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydantic>=1.7.4:devel/py-pydantic@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sphinx>=4.5.0:textproc/py-sphinx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sphinx-autodoc-typehints>0:textproc/py-sphinx-autodoc-typehints@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0:textproc/py-sphinx_rtd_theme@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mypy>=0:devel/py-mypy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tabulate>0:devel/py-tabulate@${PY_FLAVOR} + +USES= python:3.7+ pytest +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/devel/py-pytoolconfig/distinfo b/devel/py-pytoolconfig/distinfo new file mode 100644 index 000000000000..9b1147c67805 --- /dev/null +++ b/devel/py-pytoolconfig/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1672476705 +SHA256 (pytoolconfig-1.2.4.tar.gz) = 5e1a246f77970ddb5f3d8d06fbf162424b8a1adfc22c2eb51826b383bf293d1e +SIZE (pytoolconfig-1.2.4.tar.gz) = 15910 diff --git a/devel/py-pytoolconfig/files/patch-tests_test__pytoolconfig.py b/devel/py-pytoolconfig/files/patch-tests_test__pytoolconfig.py new file mode 100644 index 000000000000..1a9c50dfe191 --- /dev/null +++ b/devel/py-pytoolconfig/files/patch-tests_test__pytoolconfig.py @@ -0,0 +1,11 @@ +--- tests/test_pytoolconfig.py.orig 2022-06-28 03:43:15 UTC ++++ tests/test_pytoolconfig.py +@@ -80,7 +80,7 @@ def test_global(cwd): + + + def test_global(cwd): +- if sys.platform != "linux": ++ if not (sys.platform.startswith("linux") | sys.platform.startswith("freebsd")): + pytest.skip() + os.environ["XDG_CONFIG_HOME"] = cwd.as_posix() + config = PyToolConfig("bogus", cwd, NestedModel, global_config=True) diff --git a/devel/py-pytoolconfig/pkg-descr b/devel/py-pytoolconfig/pkg-descr new file mode 100644 index 000000000000..3dcab4692800 --- /dev/null +++ b/devel/py-pytoolconfig/pkg-descr @@ -0,0 +1,3 @@ +The goal of this project is to manage configuration for python tools, +such as black and rope and add support for a pyproject.toml +configuration file.