* update python-executing to 2.1.0-1

This commit is contained in:
Alexander Baldeck 2024-09-24 13:44:20 +02:00
parent aea186ba19
commit df56941740
3 changed files with 44 additions and 15 deletions

View File

@ -0,0 +1,21 @@
pkgbase = python-executing
pkgdesc = Get the currently executing AST node of a frame, and other information
pkgver = 2.1.0
pkgrel = 1
url = https://github.com/alexmojaki/executing
arch = any
license = MIT
checkdepends = ipython
checkdepends = python-asttokens
checkdepends = python-littleutils
checkdepends = python-pytest
makedepends = git
makedepends = python-build
makedepends = python-installer
makedepends = python-setuptools-scm
makedepends = python-wheel
depends = python
source = git+https://github.com/alexmojaki/executing.git#tag=v2.1.0
b2sums = e1279b1e4ca0bfc080cf119bfc043d59e19c410194c775312d511a928394b37aabedcb222179f97208464bdad9a3837e186a980ef578397b648095f8449735a1
pkgname = python-executing

View File

@ -0,0 +1,4 @@
[python-executing]
source = "git"
git = "https://github.com/alexmojaki/executing.git"
prefix = "v"

View File

@ -3,23 +3,28 @@
pkgname=python-executing
_name=${pkgname#python-}
pkgver=2.0.0
pkgrel=3
pkgver=2.1.0
pkgrel=1
pkgdesc='Get the currently executing AST node of a frame, and other information'
arch=(any)
url=https://github.com/alexmojaki/executing
license=('MIT')
depends=('python')
license=(MIT)
depends=(python)
makedepends=(
'git'
'python-build'
'python-installer'
'python-setuptools-scm'
'python-wheel'
git
python-build
python-installer
python-setuptools-scm
python-wheel
)
checkdepends=(
ipython
python-asttokens
python-littleutils
python-pytest
)
checkdepends=('ipython' 'python-asttokens' 'python-littleutils' 'python-pytest')
source=("git+$url.git#tag=v$pkgver")
b2sums=('4d4c42729494d3900b59ef8c2c3cb5a53fdd609103337ae501f190a61fc0bc356efb575dd987f26eac4ef5ced3cb33b33946e73d7152ac540ef820c7142f011b')
b2sums=('e1279b1e4ca0bfc080cf119bfc043d59e19c410194c775312d511a928394b37aabedcb222179f97208464bdad9a3837e186a980ef578397b648095f8449735a1')
build() {
cd "$_name"
@ -32,12 +37,11 @@ check() {
}
package() {
cd "$_name"
python -m installer --destdir="$pkgdir" dist/*.whl
# 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"/"$_name"-$pkgver.dist-info/LICENSE.txt \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
cd "$_name"
python -m installer --destdir="$pkgdir" dist/*.whl
}