pyright: update to 1.1.379.

This commit is contained in:
classabbyamp 2024-09-09 17:24:12 -04:00
parent 21392c16a0
commit 5a445ae35d
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5
1 changed files with 15 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Template file for 'pyright' # Template file for 'pyright'
pkgname=pyright pkgname=pyright
version=1.1.377 version=1.1.379
revision=1 revision=1
build_wrksrc="packages/pyright" build_wrksrc="packages/pyright"
hostmakedepends="nodejs python3-setuptools pkg-config" hostmakedepends="nodejs python3-setuptools pkg-config"
@ -12,12 +12,20 @@ license="MIT"
homepage="https://microsoft.github.io/pyright" homepage="https://microsoft.github.io/pyright"
changelog="https://github.com/microsoft/pyright/releases" changelog="https://github.com/microsoft/pyright/releases"
distfiles="https://github.com/microsoft/pyright/archive/refs/tags/${version}.tar.gz" distfiles="https://github.com/microsoft/pyright/archive/refs/tags/${version}.tar.gz"
checksum=7319b48c6ed0d4b19c68c26cb47d0d24bee08b3e04f30c1d3c1e64629267bc38 checksum=889918751288b04514cfe067fd07f70ba7fd5aaa41b021a971dc292a8117afb6
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
i686*) broken="lerna doesn't support i686" ;; i686*) broken="lerna doesn't support i686" ;;
esac esac
post_extract() {
# causes build fail in vsce-sign when doing npm ci
# unnecessary for standalone packaging
rm -r packages/vscode-pyright
# test references vscode-pyright files
rm packages/pyright-internal/src/tests/diagnosticOverrides.test.ts
}
do_configure() { do_configure() {
cd "$wrksrc" cd "$wrksrc"
export npm_config_arch="${XBPS_TARGET_MACHINE%-musl}" export npm_config_arch="${XBPS_TARGET_MACHINE%-musl}"
@ -28,6 +36,11 @@ do_build() {
npm run build npm run build
} }
do_check() {
cd ../pyright-internal
npm test
}
do_install() { do_install() {
local _targetdir="/usr/lib/pyright" local _targetdir="/usr/lib/pyright"
vmkdir "$_targetdir" vmkdir "$_targetdir"