Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages /
ufmt
Commits:
08881b6d by Daniel M. Capella at 2025-10-26T14:05:42-04:00
upgpkg: 2.8.0-2: pygls and ruff-api optdeps
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,10 +1,11 @@
pkgbase = ufmt
pkgdesc = Safe, atomic formatting with black and µsort
pkgver = 2.8.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/omnilib/ufmt
arch = any
license = MIT
+ checkdepends = python-pygls
checkdepends = python-ruff-api
makedepends = python-build
makedepends = python-installer
@@ -18,8 +19,11 @@ pkgbase = ufmt
depends = python-trailrunner
depends = python-typing_extensions
depends = usort
- depends = python-pygls
+ optdepends = python-pygls: for the LSP formatting server
+ optdepends = python-ruff-api: for Ruff formatter support
source =
ufmt-2.8.0.tar.gz::https://github.com/omnilib/ufmt/archive/v2.8.0.tar.gz
+ source =
ufmt-make-tests-compatible-with-click-8.2.0.patch::https://github.com/omnilib/ufmt/commit/7980d7cd0a29fbd287e10d939248ef7c9d38a660.patch
sha512sums =
6f1f9129865c92cc6cd7d75872b2bc50544d37a512138ac01ad442a2f50fb34d8c9385270ff13f682f8ea0639a9356d517ee5d65e0e2acb9b24cd8a4ec2946f5
+ sha512sums =
ea0e017c8358f6f34dcd757f3a52b9a05efb23858cc95c7ceb60d76c7568b2ae99a9d9eb0c882246a554eec0e15a6cd5e4da83688ea1a0e35fcaae5bcfcb9100
pkgname = ufmt
=====================================
PKGBUILD
=====================================
@@ -2,17 +2,27 @@
pkgname=ufmt
pkgver=2.8.0
-pkgrel=1
+pkgrel=2
pkgdesc='Safe, atomic formatting with black and µsort'
arch=('any')
url='https://github.com/omnilib/ufmt'
license=('MIT')
depends=('python-black' 'python-click' 'python-libcst' 'python-moreorless'
- 'python-tomlkit' 'python-trailrunner' 'python-typing_extensions'
'usort' 'python-pygls')
+ 'python-tomlkit' 'python-trailrunner' 'python-typing_extensions'
'usort')
makedepends=('python-build' 'python-installer' 'python-flit-core'
'python-wheel')
-checkdepends=('python-ruff-api')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha512sums=('6f1f9129865c92cc6cd7d75872b2bc50544d37a512138ac01ad442a2f50fb34d8c9385270ff13f682f8ea0639a9356d517ee5d65e0e2acb9b24cd8a4ec2946f5')
+checkdepends=('python-pygls' 'python-ruff-api')
+optdepends=('python-pygls: for the LSP formatting server'
+ 'python-ruff-api: for Ruff formatter support')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+
ufmt-make-tests-compatible-with-click-8.2.0.patch::https://github.com/omnilib/ufmt/commit/7980d7cd0a29fbd287e10d939248ef7c9d38a660.patch)
+sha512sums=('6f1f9129865c92cc6cd7d75872b2bc50544d37a512138ac01ad442a2f50fb34d8c9385270ff13f682f8ea0639a9356d517ee5d65e0e2acb9b24cd8a4ec2946f5'
+
'ea0e017c8358f6f34dcd757f3a52b9a05efb23858cc95c7ceb60d76c7568b2ae99a9d9eb0c882246a554eec0e15a6cd5e4da83688ea1a0e35fcaae5bcfcb9100')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ patch --forward --strip=1
--input=../ufmt-make-tests-compatible-with-click-8.2.0.patch
+}
build() {
cd $pkgname-$pkgver
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/ufmt/-/commit/08881b6de40bc61a1965f6dac82302690980a649
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/ufmt/-/commit/08881b6de40bc61a1965f6dac82302690980a649
You're receiving this email because of your account on gitlab.archlinux.org.