upg python-textual

This commit is contained in:
joborun linux 2024-02-04 05:07:14 +02:00
parent ce0d58befe
commit deb0a67dbf
3 changed files with 57 additions and 8 deletions

View file

@ -7,13 +7,13 @@
_base=textual
pkgname=python-${_base}
pkgver=0.47.1
pkgrel=02
pkgver=0.48.1
pkgrel=01
pkgdesc="Modern Text User Interface framework"
url="https://github.com/Textualize/${_base}"
depends=(python-rich python-importlib-metadata python-typing_extensions)
makedepends=(python-build python-installer python-poetry-core)
checkdepends=(python-pytest-asyncio python-time-machine python-tree-sitter-languages)
checkdepends=(python-pytest-asyncio python-time-machine)
optdepends=('python-tree-sitter: for syntax highlighting support'
'python-tree-sitter-languages: for custom languages support'
'python-textual-dev: tools for developers')
@ -21,7 +21,7 @@ source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz)
build() {
cd ${_base}-${pkgver}
python -m build --wheel --skip-dependency-check --no-isolation
python -m build --wheel --no-isolation
}
check() {
@ -32,6 +32,8 @@ check() {
--ignore=tests/test_markdown.py \
--ignore=tests/test_markdownviewer.py \
--ignore=tests/snapshot_tests/test_snapshots.py \
--ignore=tests/test_slug.py \
--ignore=tests/text_area/test_languages.py \
-k 'not textual_env_var'
}
@ -52,7 +54,7 @@ arch=(x86_64)
license=(MIT)
sha256sums=(aa427dc9a817c9e7ba57e8bfd48033ec824d3d6c2826ed8ccda741616c4e1e85) # textual-0.47.1.tar.gz
sha256sums=(f219ee7b93551bc157de4eacdb2333469a401c6d05bde8b7af1aec6ff92fce36) # textual-0.48.1.tar.gz
## 0a33daccd77d3bd7988bbbbb8373e1f2a9210b9ac782b600136320a05463ab6c python-textual-0.47.1-02-x86_64.pkg.tar.lz
## 590854eb10f43f3876a1eca86b51102b944e584f4eb43937e8631dbcd4b5d699 python-textual-0.48.1-01-x86_64.pkg.tar.lz

View file

@ -0,0 +1,49 @@
# Maintainer: Leonidas Spyropoulos <artafinde@archlinux.org>
# Contributor: Jose Riha <jose 1711 gmail com>
# Contributor: Carlos Aznarán <caznaranl@uni.pe>
_base=textual
pkgname=python-${_base}
pkgver=0.48.1
pkgrel=1
pkgdesc="Modern Text User Interface framework"
arch=(any)
url="https://github.com/Textualize/${_base}"
license=(MIT)
depends=(python-rich python-importlib-metadata python-typing_extensions)
makedepends=(python-build python-installer python-poetry-core)
checkdepends=(python-pytest-asyncio python-time-machine)
optdepends=('python-tree-sitter: for syntax highlighting support'
'python-tree-sitter-languages: for custom languages support'
'python-textual-dev: tools for developers')
source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz)
sha512sums=('c03fe9be68001e0962db6001348839d3b1e9951f80fcf1760fab6bebc7dd95352b5f7e7d22c70d3216a7dbefcbf7e67ae1d0c8ab238dc05ccc5a6e724d8d7af1')
build() {
cd ${_base}-${pkgver}
python -m build --wheel --no-isolation
}
check() {
cd ${_base}-${pkgver}
python -m venv --system-site-packages test-env
test-env/bin/python -m installer dist/*.whl
test-env/bin/python -m pytest \
--ignore=tests/test_markdown.py \
--ignore=tests/test_markdownviewer.py \
--ignore=tests/snapshot_tests/test_snapshots.py \
--ignore=tests/test_slug.py \
--ignore=tests/text_area/test_languages.py \
-k 'not textual_env_var'
}
package() {
cd ${_base}-${pkgver}
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}/${_base}-${pkgver}.dist-info/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

View file

@ -6,7 +6,5 @@ python-installer
python-poetry-core
python-pytest-asyncio
python-time-machine
python-tree-sitter-languages-bin
python-tree-sitter