Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jan 2025 13:52:27 GMT
From:      Rainer Hurling <rhurlin@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 025d11d87330 - main - devel/py-pyls-black: Removed because repository has been archived
Message-ID:  <202501041352.504DqRjI048719@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=025d11d87330bc2fb7df6d828b2605a528c675f7

commit 025d11d87330bc2fb7df6d828b2605a528c675f7
Author:     Rainer Hurling <rhurlin@FreeBSD.org>
AuthorDate: 2025-01-04 13:48:45 +0000
Commit:     Rainer Hurling <rhurlin@FreeBSD.org>
CommitDate: 2025-01-04 13:48:45 +0000

    devel/py-pyls-black: Removed because repository has been archived
    
    https://github.com/rupert/pyls-black
    
    MFH:            2024Q4
---
 MOVED                                              |  1 +
 devel/Makefile                                     |  1 -
 devel/py-pyls-black/Makefile                       | 26 --------------
 devel/py-pyls-black/distinfo                       |  3 --
 devel/py-pyls-black/files/patch-README.md          | 14 --------
 .../files/patch-pyls__black_plugin.py              | 41 ----------------------
 devel/py-pyls-black/files/patch-setup.cfg          | 11 ------
 devel/py-pyls-black/pkg-descr                      | 12 -------
 8 files changed, 1 insertion(+), 108 deletions(-)

diff --git a/MOVED b/MOVED
index 791f41d3d8a2..deba50b9a7bd 100644
--- a/MOVED
+++ b/MOVED
@@ -3997,3 +3997,4 @@ editors/neovim-qt@qt5|editors/neovim-qt|2025-01-02|Flavorization has been remove
 editors/neovim-qt@qt6|editors/neovim-qt|2025-01-02|Flavorization has been removed. Continue to enjoy editors/neovim-qt based on Qt 6.x as usual
 deskutils/copyq@qt5|deskutils/copyq|2025-01-02|Flavorization has been removed. Qt 5.x has been long deprecated upstream. Please use the unflavored deskutils/copyq port based on Qt 6.x instead
 deskutils/copyq@qt6|deskutils/copyq|2025-01-02|Flavorization has been removed. Continue to enjoy deskutils/copyq based on Qt 6.x as usual
+devel/py-pyls-black||2025-01-04|Repository has been archived by the owner. Use textproc/py-python-lsp-black instead
diff --git a/devel/Makefile b/devel/Makefile
index a77d5322e2c0..a1169437c800 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5586,7 +5586,6 @@
     SUBDIR += py-pylint-venv
     SUBDIR += py-pylru
     SUBDIR += py-pylru-cache
-    SUBDIR += py-pyls-black
     SUBDIR += py-pymarc
     SUBDIR += py-pymaven-patch
     SUBDIR += py-pymisp
diff --git a/devel/py-pyls-black/Makefile b/devel/py-pyls-black/Makefile
deleted file mode 100644
index c13590ddb1a3..000000000000
--- a/devel/py-pyls-black/Makefile
+++ /dev/null
@@ -1,26 +0,0 @@
-PORTNAME=	pyls-black
-PORTVERSION=	0.4.7
-PORTREVISION=	3
-CATEGORIES=	devel python
-MASTER_SITES=	PYPI
-PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-
-MAINTAINER=	rhurlin@FreeBSD.org
-COMMENT=	Black plugin for the Python Language Server
-WWW=		https://github.com/rupert/pyls-black
-
-LICENSE=	MIT
-
-# Per PEP-518, the default [build-system] section when not defined is:
-# requires = ["setuptools", "wheel"]  # PEP 508 specifications.
-BUILD_DEPENDS=	${PY_SETUPTOOLS} \
-		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}black>0:devel/py-black@${PY_FLAVOR}
-
-# No tests because they are not in the release tarball
-USES=		python
-USE_PYTHON=	autoplist concurrent pep517
-
-NO_ARCH=	yes
-
-.include <bsd.port.mk>
diff --git a/devel/py-pyls-black/distinfo b/devel/py-pyls-black/distinfo
deleted file mode 100644
index 74af60081701..000000000000
--- a/devel/py-pyls-black/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1622886488
-SHA256 (pyls-black-0.4.7.tar.gz) = 6e087adca067391a65a577676ea2d62f0a6cb2bf23bf45dbefbbd48c0d2bb8d4
-SIZE (pyls-black-0.4.7.tar.gz) = 3958
diff --git a/devel/py-pyls-black/files/patch-README.md b/devel/py-pyls-black/files/patch-README.md
deleted file mode 100644
index cb37e192584b..000000000000
--- a/devel/py-pyls-black/files/patch-README.md
+++ /dev/null
@@ -1,14 +0,0 @@
---- README.md.orig	2021-06-04 22:43:13 UTC
-+++ README.md
-@@ -2,9 +2,9 @@
- 
- [![PyPI](https://img.shields.io/pypi/v/pyls-black.svg)](https://pypi.org/project/pyls-black/) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
- 
--> [Black](https://github.com/ambv/black) plugin for the [Python Language Server](https://github.com/palantir/python-language-server).
-+> [Black](https://github.com/ambv/black) plugin for the [Python LSP Server](https://github.com/python-lsp/python-lsp-server).
- 
--In the same `virtualenv` as `python-language-server`:
-+In the same `virtualenv` as `python-lsp-server`:
- 
- ```shell
- pip3 install pyls-black
diff --git a/devel/py-pyls-black/files/patch-pyls__black_plugin.py b/devel/py-pyls-black/files/patch-pyls__black_plugin.py
deleted file mode 100644
index 45cb5e2bddd2..000000000000
--- a/devel/py-pyls-black/files/patch-pyls__black_plugin.py
+++ /dev/null
@@ -1,41 +0,0 @@
---- pyls_black/plugin.py.orig	2021-06-04 22:43:13 UTC
-+++ pyls_black/plugin.py
-@@ -2,18 +2,18 @@ import toml
- 
- import black
- import toml
--from pyls import hookimpl
-+from pylsp import hookimpl
- 
- _PY36_VERSIONS = {black.TargetVersion[v] for v in ["PY36", "PY37", "PY38", "PY39"]}
- 
- 
- @hookimpl(tryfirst=True)
--def pyls_format_document(document):
-+def pylsp_format_document(document):
-     return format_document(document)
- 
- 
- @hookimpl(tryfirst=True)
--def pyls_format_range(document, range):
-+def pylsp_format_range(document, range):
-     range["start"]["character"] = 0
-     range["end"]["line"] += 1
-     range["end"]["character"] = 0
-@@ -73,8 +73,14 @@ def load_config(filename: str) -> Dict:
- 
-     root = black.find_project_root((filename,))
- 
--    pyproject_filename = root / "pyproject.toml"
--
-+    # Note: find_project_root returns a tuple in 22.1.0+
-+    try:
-+        # Keeping this to not break backward compatibility.
-+        pyproject_filename = root / "pyproject.toml"
-+    except TypeError:
-+        _root, _ = root
-+        pyproject_filename = _root / "pyproject.toml"
-+        
-     if not pyproject_filename.is_file():
-         return defaults
- 
diff --git a/devel/py-pyls-black/files/patch-setup.cfg b/devel/py-pyls-black/files/patch-setup.cfg
deleted file mode 100644
index a6685da7e681..000000000000
--- a/devel/py-pyls-black/files/patch-setup.cfg
+++ /dev/null
@@ -1,11 +0,0 @@
---- setup.cfg.orig	2021-06-04 23:01:09 UTC
-+++ setup.cfg
-@@ -14,7 +14,7 @@ packages = find:
- 
- [options]
- packages = find:
--install_requires = python-language-server; black>=19.3b0; toml
-+install_requires = python-lsp-server; black>=19.3b0; toml
- python_requires = >= 3.6
- 
- [options.entry_points]
diff --git a/devel/py-pyls-black/pkg-descr b/devel/py-pyls-black/pkg-descr
deleted file mode 100644
index 9b968a748eef..000000000000
--- a/devel/py-pyls-black/pkg-descr
+++ /dev/null
@@ -1,12 +0,0 @@
-Black plugin for the Python Language Server.
-
-- 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. This also means that an indented block of code
-  cannot be formatted
-- Will use your project's pyproject.toml if it has one.
-
-Using pyls-black while yapf and autopep8 are installed, may
-lead to unexpected results!



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