From nobody Thu Oct 13 17:36:58 2022 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 4MpGt30ys3z4fF4R; Thu, 13 Oct 2022 17:36:59 +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 4MpGt30NMkz3d7T; Thu, 13 Oct 2022 17:36:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665682619; 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=HvfmUSe5D6+WYuZKvVx9aWoI6PFH1H9Jzl8XAw/NfVs=; b=jq0uDlZ1e8bmI0JvRaXS171wGv9NPrf0YNPzpXlalZ5YdLiK6M0RHfVb6xyryZ5cid7RmN dV2oKlBWjiEd7FNolPYghf9zUND3xHdSMbIOSbRjhEli7OxBE/gXhfzmdrIEPOr5rXVli6 glDobmadL3H4TS/RNuV0XeIDCI2l+5Bb2qSz+Uuf23kXj10V76bBNT9vWEDaFQtzzBwSx9 KkyzU0BZwpEU+mOATRpShWMcT9RxPzdIrb8l6HVq5DrIatRfMo/DpOV6UUED1oMfBYR48d tZvTgtLnnrZAx31RcsDN48I2KRtujGA2j717ZcLFW2nc32keWV9g7dpMXT5hBA== 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 4MpGt26VvWzVJf; Thu, 13 Oct 2022 17:36:58 +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 29DHaw0v059812; Thu, 13 Oct 2022 17:36:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29DHaw7a059811; Thu, 13 Oct 2022 17:36:58 GMT (envelope-from git) Date: Thu, 13 Oct 2022 17:36:58 GMT Message-Id: <202210131736.29DHaw7a059811@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: a373e0d093d1 - main - textproc/py-python-lsp-black: New port: Black plugin for the Python LSP Server 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: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a373e0d093d17c37ab8a82ef70200eee6cbab992 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665682619; 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=HvfmUSe5D6+WYuZKvVx9aWoI6PFH1H9Jzl8XAw/NfVs=; b=HNu0KorVJzOvEJr8vOyT5AsZuD4lcSplIgFYmmiyPwHdK8EdQd4HAQstTYqRnNxBLT3lc1 qbVfmO851LERx9W3dtj8dFRBH5Npr/RtoEGC4FoIx4SVBL3oEndAMWbrQD83oQ9l+3p50o uOAuuTLA3UMSDwhJaO3vQZdAWyuTsVQsWEeW9vmwqpUKjiA4xTvKqnvwt2d7Aiu+XCC1nh 2AVucykIbCfyzDDEQWy7qJAqD0p65hcK1IcB9AVoKEawkxfl50fT2IssX7WNzh2S40gV6N Ew6OLZIWcnBx+sQKYrti/t9HKdoCPJPSVSQQoO+bFmaaftmwt1kw2k/ERuAkpw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665682619; a=rsa-sha256; cv=none; b=OAMCAvwQ6XG+/bF0f+5xu4pJj5sh+JU/o3DMCtmQg5g+nduTBpwtH9UwrXM+2ZzuiLm5u7 0I85qNZytqSxkZUKJiJb6Cstko9/GxFE1SZiK5O9zU3wihuHCTnvSqXxTb8ST5mK9+pzmh ET7lpI8jPuUgErMrCNX5CZ1B1qEVH8fjWXWI5XvKxXEoRYDDxkANsCPrkO6RYKA0AaoYGs ZdKgBXMxYx3orcwngHXfgYIT5tvk/VZ8uoc2krkgaxscLScl2FszDyDkxIaCvpMpsziv+M SINJ5RO8ovdx7BNuxp7LTcUlAJAuXMaBOf2fXg9yjHJIY0l7Lei77xjOTTDwXg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=a373e0d093d17c37ab8a82ef70200eee6cbab992 commit a373e0d093d17c37ab8a82ef70200eee6cbab992 Author: Yuri Victorovich AuthorDate: 2022-10-13 17:33:50 +0000 Commit: Yuri Victorovich CommitDate: 2022-10-13 17:33:50 +0000 textproc/py-python-lsp-black: New port: Black plugin for the Python LSP Server --- textproc/Makefile | 1 + textproc/py-python-lsp-black/Makefile | 20 ++++++++++++++++++++ textproc/py-python-lsp-black/distinfo | 3 +++ textproc/py-python-lsp-black/pkg-descr | 15 +++++++++++++++ 4 files changed, 39 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 7fd1d840f6ea..8f8304f24f79 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1459,6 +1459,7 @@ SUBDIR += py-python-docs-theme SUBDIR += py-python-docx SUBDIR += py-python-gettext + SUBDIR += py-python-lsp-black SUBDIR += py-python-lsp-jsonrpc SUBDIR += py-python-lsp-server SUBDIR += py-python-markdown-math diff --git a/textproc/py-python-lsp-black/Makefile b/textproc/py-python-lsp-black/Makefile new file mode 100644 index 000000000000..1f352e7416f1 --- /dev/null +++ b/textproc/py-python-lsp-black/Makefile @@ -0,0 +1,20 @@ +PORTNAME= python-lsp-black +DISTVERSION= 1.2.1 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Black plugin for the Python LSP Server +WWW= https://github.com/python-lsp/python-lsp-black + +LICENSE= MIT + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-lsp-server>=1.4.0:textproc/py-python-lsp-server@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= distutils autoplist pytest + +NO_ARCH= yes + +.include diff --git a/textproc/py-python-lsp-black/distinfo b/textproc/py-python-lsp-black/distinfo new file mode 100644 index 000000000000..1bf0f460b0d3 --- /dev/null +++ b/textproc/py-python-lsp-black/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1665679561 +SHA256 (python-lsp-black-1.2.1.tar.gz) = d7eaeab2a377e96a82cc26afe2f8f2e1cf7c6eaefdcdeab026343e2e559dcce9 +SIZE (python-lsp-black-1.2.1.tar.gz) = 5392 diff --git a/textproc/py-python-lsp-black/pkg-descr b/textproc/py-python-lsp-black/pkg-descr new file mode 100644 index 000000000000..4250b463b235 --- /dev/null +++ b/textproc/py-python-lsp-black/pkg-descr @@ -0,0 +1,15 @@ +Black plugin for the Python LSP Server. + +* This plugin will disable the yapf and autopep8 plugins if installed. +* python-lsp-black can either format an entire file or just the selected text. +* The code will only be formatted if it is syntactically valid Python. +* Text selections are treated as if they were a separate Python file. + Unfortunately this means you can't format an indented block of code. +* python-lsp-black will use your project's pyproject.toml if it has one. +* python-lsp-black only officially supports the latest stable version of + black. An effort is made to keep backwards-compatibility but older black + versions will not be actively tested. +* The plugin can cache the black configuration that applies to each Python file, + this improves performance of the plugin. When configuration caching is + enabled any changes to black's configuration will need the LSP server to be + restarted. Configuration caching can be disabled with the cache_config option.