From f2803d04c9f215cf6e15ac7d888bfb629eee5bb8 Mon Sep 17 00:00:00 2001 From: Cameron Nemo Date: Wed, 25 Oct 2023 09:17:11 -0700 Subject: [PATCH 1/5] ruff: update to 0.1.2, install python module Ruff should ship with a python module for consumption via Python tooling (including language servers). Adjust the build_style et al to install the python module. --- srcpkgs/ruff/template | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/srcpkgs/ruff/template b/srcpkgs/ruff/template index 295d35d9bfaf6..ea82915c1ec4a 100644 --- a/srcpkgs/ruff/template +++ b/srcpkgs/ruff/template @@ -1,17 +1,19 @@ # Template file for 'ruff' pkgname=ruff -version=0.1.0 +version=0.1.2 revision=1 -build_style=cargo -configure_args="--bin ruff" -make_install_args="--path crates/ruff_cli" +build_helper=rust +build_style="python3-pep517" +hostmakedepends="maturin cargo python3-wheel" +makedepends="rust-std" +checkdepends="python3-pytest" short_desc="Extremely fast Python linter, written in Rust" maintainer="icp " license="MIT" homepage="https://docs.astral.sh/ruff/" changelog="https://raw.githubusercontent.com/astral-sh/ruff/main/CHANGELOG.md" distfiles="https://github.com/astral-sh/ruff/archive/refs/tags/v${version}.tar.gz" -checksum=b6f1467505acc99dcec7d67ff9dbcd00c63a39f338e09705a90a90205c8553d4 +checksum=2135ea2f647a17e9060a3ca10f6df2be9e37ae87c864fe79dd3c067ba6ee57b2 post_install() { vlicense LICENSE From b156a4ef118b5bc6b4c65e47b13be5c79a291e95 Mon Sep 17 00:00:00 2001 From: Cameron Nemo Date: Wed, 25 Oct 2023 13:15:57 -0700 Subject: [PATCH 2/5] python3-lsp-server: update to 1.8.2 --- srcpkgs/python3-lsp-server/template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python3-lsp-server/template b/srcpkgs/python3-lsp-server/template index 721618b1ed54c..b2edb12d91bcb 100644 --- a/srcpkgs/python3-lsp-server/template +++ b/srcpkgs/python3-lsp-server/template @@ -1,7 +1,7 @@ # Template file for 'python3-lsp-server' pkgname=python3-lsp-server -version=1.8.0 -revision=2 +version=1.8.2 +revision=1 build_style=python3-module hostmakedepends="python3-setuptools python3-setuptools_scm python3-wheel" depends="python3-jedi python3-pluggy python3-lsp-jsonrpc python3-ultrajson @@ -16,7 +16,7 @@ license="MIT" homepage="https://github.com/python-lsp/python-lsp-server" changelog="https://raw.githubusercontent.com/python-lsp/python-lsp-server/develop/CHANGELOG.md" distfiles="${PYPI_SITE}/p/python-lsp-server/python-lsp-server-${version}.tar.gz" -checksum=807b0347cf83f02cbd9113a68624ac5dbf8b01854a3b11dd03c3bbbdff4e5d89 +checksum=fd85e1c6ad95c1d276c82a33c2c85898f110afc3c7bfeaced79c0df095076fd1 do_check() { python3 -m pytest \ From 9264770a4eceda2e3aefeb24e1baafa7e63c3cbd Mon Sep 17 00:00:00 2001 From: Cameron Nemo Date: Wed, 25 Oct 2023 13:20:06 -0700 Subject: [PATCH 3/5] New package: python3-cattrs-23.1.2 --- srcpkgs/python3-cattrs/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/python3-cattrs/template diff --git a/srcpkgs/python3-cattrs/template b/srcpkgs/python3-cattrs/template new file mode 100644 index 0000000000000..641a002615955 --- /dev/null +++ b/srcpkgs/python3-cattrs/template @@ -0,0 +1,17 @@ +# Template file for 'python3-cattrs' +pkgname=python3-cattrs +version=23.1.2 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-poetry-core" +depends="python3-attrs" +short_desc="Composable complex class support for attrs and dataclasses" +maintainer="Cameron Nemo " +license="MIT" +homepage="https://github.com/python-attrs/cattrs" +distfiles="${PYPI_SITE}/c/cattrs/cattrs-${version}.tar.gz" +checksum=db1c821b8c537382b2c7c66678c3790091ca0275ac486c76f3c8f3920e83c657 + +post_install() { + vlicense LICENSE +} From 9110b6d9c8e2ec4c96e66e40a449a7ffa180851e Mon Sep 17 00:00:00 2001 From: Cameron Nemo Date: Wed, 25 Oct 2023 13:20:27 -0700 Subject: [PATCH 4/5] New package: python3-lsprotocol-0.0.0.20230918 --- srcpkgs/python3-lsprotocol/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/python3-lsprotocol/template diff --git a/srcpkgs/python3-lsprotocol/template b/srcpkgs/python3-lsprotocol/template new file mode 100644 index 0000000000000..2b339b5e48a8c --- /dev/null +++ b/srcpkgs/python3-lsprotocol/template @@ -0,0 +1,17 @@ +# Template file for 'python3-lsprotocol' +pkgname=python3-lsprotocol +version=0.0.0.20230918 +revision=1 +_version=2023.0.0b1 +build_style=python3-pep517 +hostmakedepends="python3-setuptools python3-wheel python3-flit_core" +short_desc="Python implementation of the Language Server Protocol" +maintainer="Cameron Nemo " +license="MIT" +homepage="https://github.com/microsoft/lsprotocol" +distfiles="${PYPI_SITE}/l/lsprotocol/lsprotocol-${_version}.tar.gz" +checksum=f7a2d4655cbd5639f373ddd1789807450c543341fa0a32b064ad30dbb9f510d4 + +post_install() { + vlicense LICENSE +} From c4766bbd68cd75b7196f3bc90f38b1a74e56d72c Mon Sep 17 00:00:00 2001 From: Cameron Nemo Date: Wed, 25 Oct 2023 13:21:12 -0700 Subject: [PATCH 5/5] New package: python3-lsp-ruff-1.6.0 Closes #46560 --- srcpkgs/python3-lsp-ruff/template | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/python3-lsp-ruff/template diff --git a/srcpkgs/python3-lsp-ruff/template b/srcpkgs/python3-lsp-ruff/template new file mode 100644 index 0000000000000..d413fd5c2bd11 --- /dev/null +++ b/srcpkgs/python3-lsp-ruff/template @@ -0,0 +1,22 @@ +# Template file for 'python3-lsp-ruff' +pkgname=python3-lsp-ruff +version=1.6.0 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools python3-setuptools_scm python3-wheel" +depends="python3-lsp-server python3-lsprotocol python3-cattrs ruff" +checkdepends="${depends} python3-pytest" +short_desc="Python implementation of the Language Server Protocol" +maintainer="Cameron Nemo " +license="MIT" +homepage="https://github.com/python-lsp/python-lsp-ruff" +distfiles="${PYPI_SITE}/p/python-lsp-ruff/python-lsp-ruff-${version}.tar.gz" +checksum=bdfdd9359c9e9f55b6f6a938493d6cbace554dccacf45df4ebb36552be34e9b8 + +do_check() { + python3 -m pytest +} + +post_install() { + vlicense LICENSE +}