George Rawlinson pushed to branch main at Arch Linux / Packaging / Packages /
sqlfluff
Commits:
5709ff5a by George Rawlinson at 2026-02-09T07:50:35+00:00
upgpkg: 4.0.4-1
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,9 +1,9 @@
pkgbase = sqlfluff
pkgdesc = A dialect-flexible and configurable SQL linter
- pkgver = 4.0.1
+ pkgver = 4.0.4
pkgrel = 1
url = https://github.com/sqlfluff/sqlfluff
- arch = any
+ arch = x86_64
license = MIT
checkdepends = python-hypothesis
checkdepends = python-pytest-xdist
@@ -12,6 +12,9 @@ pkgbase = sqlfluff
makedepends = python-installer
makedepends = python-setuptools
makedepends = python-wheel
+ makedepends = python-maturin
+ depends = glibc
+ depends = gcc-libs
depends = python
depends = python-chardet
depends = python-click
@@ -26,8 +29,8 @@ pkgbase = sqlfluff
depends = python-tblib
depends = python-tqdm
depends = python-yaml
- source = sqlfluff::git+https://github.com/sqlfluff/sqlfluff#tag=4.0.1
- sha512sums =
b601b4931fa346ee8ae19bc9304010832af6379093a7a83d1bf2a7849d2ed5ac79927de10ca90c112d9e4e8bcc2be015f6065c070eec5ab70d21d5742102f768
- b2sums =
66950ee0682312a38d8b553d242a8d9412a12e67e9efc0ab0bf2305f9f462c602384c80c82d676432a3d75d7057e1f66161702fa9a5f8ea6c8522dc499a60015
+ source = sqlfluff::git+https://github.com/sqlfluff/sqlfluff#tag=4.0.4
+ sha512sums =
ca292c09315fe5f616e57cf039525f8d89094997d659480c39de4746a4daf6e5a701b298f7eff8a1c902e10ed8447cc5d49045c169ad4128fc0ae47a7036866a
+ b2sums =
ec7cbdf1228c10415d1af5f0847ae50f456d9e721a69119d8246dd44784d62f7608171c81c9ca3eb89c2849801070f64d7e4d4ce1a812e76a5efc4a6bb6d8b00
pkgname = sqlfluff
=====================================
PKGBUILD
=====================================
@@ -3,13 +3,15 @@
# Contributor: Morteza NourelahiAlamdari <[email protected]>
pkgname=sqlfluff
-pkgver=4.0.1
+pkgver=4.0.4
pkgrel=1
pkgdesc='A dialect-flexible and configurable SQL linter'
-arch=(any)
+arch=(x86_64)
url='https://github.com/sqlfluff/sqlfluff'
license=(MIT)
depends=(
+ glibc
+ gcc-libs
python
python-chardet
python-click
@@ -31,19 +33,32 @@ makedepends=(
python-installer
python-setuptools
python-wheel
+ python-maturin
)
checkdepends=(
python-hypothesis
python-pytest-xdist
)
source=("$pkgname::git+$url#tag=$pkgver")
-sha512sums=('b601b4931fa346ee8ae19bc9304010832af6379093a7a83d1bf2a7849d2ed5ac79927de10ca90c112d9e4e8bcc2be015f6065c070eec5ab70d21d5742102f768')
-b2sums=('66950ee0682312a38d8b553d242a8d9412a12e67e9efc0ab0bf2305f9f462c602384c80c82d676432a3d75d7057e1f66161702fa9a5f8ea6c8522dc499a60015')
+sha512sums=('ca292c09315fe5f616e57cf039525f8d89094997d659480c39de4746a4daf6e5a701b298f7eff8a1c902e10ed8447cc5d49045c169ad4128fc0ae47a7036866a')
+b2sums=('ec7cbdf1228c10415d1af5f0847ae50f456d9e721a69119d8246dd44784d62f7608171c81c9ca3eb89c2849801070f64d7e4d4ce1a812e76a5efc4a6bb6d8b00')
build() {
cd "$pkgname"
python -m build --wheel --no-isolation
+
+ # temporary install
+ python -m installer --destdir="$(pwd)/tmp" dist/*.whl
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+ export PYTHONPATH="$(pwd)/tmp/$site_packages"
+
+ # generate dialects
+ python utils/rustify.py build
+
+ # build sqlfluffrs
+ cd sqlfluffrs
+ python -m build --wheel --no-isolation
}
check() {
@@ -51,6 +66,7 @@ check() {
python -m venv --system-site-packages test-env
test-env/bin/python -m installer dist/*.whl
+ test-env/bin/python -m installer sqlfluffrs/dist/*.whl
PATH="$PWD/test-env/bin:$PATH" test-env/bin/python -m pytest -n=auto \
--deselect='test/core/linter/discovery_test.py::test__linter__path_from_paths__ignore[test/fixtures/linter/sqlfluffignore]'
\
--deselect='test/core/plugin_test.py::test__plugin_default_config_read[Example_L001-forbidden_columns]'
\
@@ -62,6 +78,7 @@ package() {
cd "$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
+ python -m installer --destdir="$pkgdir" sqlfluffrs/dist/*.whl
# documentation
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/sqlfluff/-/commit/5709ff5a471f5f2470e3b05113dba40cb330eb40
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/sqlfluff/-/commit/5709ff5a471f5f2470e3b05113dba40cb330eb40
You're receiving this email because of your account on gitlab.archlinux.org.