Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / python-ansicolor
Commits: dc65e25d by Daniel M. Capella at 2024-04-04T22:43:46-04:00 upgpkg: 0.3.2-6: Rebuild for Python 3.12 https://archlinux.org/todo/python-modules-part-1/ - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,18 @@ +pkgbase = python-ansicolor + pkgdesc = Library to produce ansi color output and colored highlighting and diffing + pkgver = 0.3.2 + pkgrel = 6 + url = https://github.com/numerodix/ansicolor + arch = any + license = Apache-2.0 + checkdepends = python-pytest + makedepends = git + makedepends = python-build + makedepends = python-installer + makedepends = python-setuptools + makedepends = python-wheel + depends = python + source = git+https://github.com/numerodix/ansicolor.git#tag=0.3.2 + b2sums = 1826b94e1b970aa01263c974816047d7ac2cb8f175ff50cb7fa8c1cf53e3756e80b323a2944e14ccc77c4cd76500f5ca0d5972241ad4d90191059705287afc98 + +pkgname = python-ansicolor ===================================== PKGBUILD ===================================== @@ -1,35 +1,39 @@ # Maintainer: Daniel M. Capella <poly...@archlinux.org> # Contributor: Darshit Shah <dar...@gmail.com> -_name=ansicolor pkgname=python-ansicolor +_name=${pkgname#python-} pkgver=0.3.2 -pkgrel=5 +pkgrel=6 pkgdesc='Library to produce ansi color output and colored highlighting and diffing' arch=('any') url=https://github.com/numerodix/ansicolor -license=('Apache') +license=('Apache-2.0') depends=('python') -makedepends=('python-build' 'python-installer' 'python-setuptools' - 'python-wheel') +makedepends=( + 'git' + 'python-build' + 'python-installer' + 'python-setuptools' + 'python-wheel' +) checkdepends=('python-pytest') -source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") -sha256sums=('3b840a6b1184b5f1568635b1adab28147947522707d41ceba02d5ed0a0877279') -b2sums=('c7f3287645ec3c1b02280b2ac4da0051ba1a88b71c09516f98103787ae2d09bed7b441ecb8cea9796f24f3935154cf1bc4180d12842f8ed1c6e024a066fa228a') +source=("git+$url.git#tag=$pkgver") +b2sums=('1826b94e1b970aa01263c974816047d7ac2cb8f175ff50cb7fa8c1cf53e3756e80b323a2944e14ccc77c4cd76500f5ca0d5972241ad4d90191059705287afc98') build() { - cd $_name-$pkgver + cd "$_name" python -m build --wheel --skip-dependency-check --no-isolation } check() { - cd $_name-$pkgver + cd "$_name" python -m venv --system-site-packages test-env test-env/bin/python -m installer dist/*.whl test-env/bin/python -m pytest } package() { - cd $_name-$pkgver + cd "$_name" python -m installer --destdir="$pkgdir" dist/*.whl } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-ansicolor/-/commit/dc65e25d175a9eb470cfe4da27d8fb615665462d -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-ansicolor/-/commit/dc65e25d175a9eb470cfe4da27d8fb615665462d You're receiving this email because of your account on gitlab.archlinux.org.