* update mypy to 1.11.2-1

This commit is contained in:
Alexander Baldeck 2024-09-24 13:44:18 +02:00
parent 336bc9a300
commit 966a6df8d5
2 changed files with 11 additions and 6 deletions

View File

@ -1,6 +1,6 @@
pkgbase = mypy
pkgdesc = Optional static typing for Python 2 and 3 (PEP484)
pkgver = 1.10.1
pkgver = 1.11.2
pkgrel = 1
url = http://www.mypy-lang.org/
arch = any
@ -20,7 +20,7 @@ pkgbase = mypy
optdepends = python-pip: for installing missing types
optdepends = python-psutil: for dmypy
optdepends = python-setuptools: for mypyc
source = mypy-1.10.1.tar.gz::https://github.com/python/mypy/archive/refs/tags/v1.10.1.tar.gz
sha256sums = 36c21d7e02b8c672c2181b210f500e049c9e1f6db41f77e6e5287043e24c93b4
source = mypy-1.11.2.tar.gz::https://github.com/python/mypy/archive/refs/tags/v1.11.2.tar.gz
sha256sums = 64bb56c93fbeae322af1bec7105554ac12369687825341cc9b7f0b139b6d688d
pkgname = mypy

View File

@ -4,7 +4,7 @@
# Contributor: hexchain <i@hexchain.org>
pkgname=mypy
pkgver=1.10.1
pkgver=1.11.2
pkgrel=1
pkgdesc='Optional static typing for Python 2 and 3 (PEP484)'
url="http://www.mypy-lang.org/"
@ -20,7 +20,7 @@ optdepends=(
'python-setuptools: for mypyc'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/python/mypy/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('36c21d7e02b8c672c2181b210f500e049c9e1f6db41f77e6e5287043e24c93b4')
sha256sums=('64bb56c93fbeae322af1bec7105554ac12369687825341cc9b7f0b139b6d688d')
prepare() {
cd "$pkgname-$pkgver"
@ -45,7 +45,12 @@ package() {
cd "$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -vDm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
# remove tests
rm -frv "$pkgdir/$_site_packages/$pkgname/test/"
# Symlink license file
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
install -d "$pkgdir/usr/share/licenses/$pkgname"
ln -s "$site_packages/$pkgname-$pkgver.dist-info/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}