summaryrefslogtreecommitdiff
path: root/python/py-ruff
diff options
context:
space:
mode:
authorrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
committerrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
commitc82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch)
tree56d864b5a5c6c145edd96178ae219a8f90e191a6 /python/py-ruff
downloadports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'python/py-ruff')
-rw-r--r--python/py-ruff/.footprint16
-rw-r--r--python/py-ruff/.signature6
-rw-r--r--python/py-ruff/MAKEPKG38
3 files changed, 60 insertions, 0 deletions
diff --git a/python/py-ruff/.footprint b/python/py-ruff/.footprint
new file mode 100644
index 0000000..2829216
--- /dev/null
+++ b/python/py-ruff/.footprint
@@ -0,0 +1,16 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/ruff
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/python3.14/
+drwxr-xr-x root/root usr/lib/python3.14/site-packages/
+drwxr-xr-x root/root usr/lib/python3.14/site-packages/ruff-0.16.8.dist-info/
+-rw-r--r-- root/root usr/lib/python3.14/site-packages/ruff-0.16.8.dist-info/METADATA
+-rw-r--r-- root/root usr/lib/python3.14/site-packages/ruff-0.16.8.dist-info/RECORD
+-rw-r--r-- root/root usr/lib/python3.14/site-packages/ruff-0.16.8.dist-info/WHEEL
+drwxr-xr-x root/root usr/lib/python3.14/site-packages/ruff-0.16.8.dist-info/licenses/
+-rw-r--r-- root/root usr/lib/python3.14/site-packages/ruff-0.16.8.dist-info/licenses/LICENSE
+drwxr-xr-x root/root usr/lib/python3.14/site-packages/ruff/
+-rw-r--r-- root/root usr/lib/python3.14/site-packages/ruff/__init__.py
+-rw-r--r-- root/root usr/lib/python3.14/site-packages/ruff/__main__.py
+-rw-r--r-- root/root usr/lib/python3.14/site-packages/ruff/_find_ruff.py
diff --git a/python/py-ruff/.signature b/python/py-ruff/.signature
new file mode 100644
index 0000000..1d6ee8a
--- /dev/null
+++ b/python/py-ruff/.signature
@@ -0,0 +1,6 @@
+RWTZ9IduCSQ/mGNsiKl1OaqHSWjIAMAiirNgN2H8CbKBbMIdNEtv27q2WwyloHy9ofUaC98u8rQuVrIWiI6s3D4B/FJidTrgiAk=
+
+SHA256 (MAKEPKG) = f3656c329aa54a7e2731b37277a90317c24bef0682e40f3288e22666c85b031c
+SHA256 (.footprint) = 9853f054bb307861f0a33b1227101ea7bd849b4ea190ddd55a1a2117b9ac9a7e
+SHA256 (ruff-0.16.8.tar.gz) = 9247bf92b5f04d825c8639a4fe423ec2e4222acd9222e58412b0dab7e442798b
+SHA256 (py-ruff#0.16.8-3.pkg.tar.gz) = 47274c652150fbec8cb4beed218a899d139383ccb9dbaa37119063795246808c
diff --git a/python/py-ruff/MAKEPKG b/python/py-ruff/MAKEPKG
new file mode 100644
index 0000000..20f4c75
--- /dev/null
+++ b/python/py-ruff/MAKEPKG
@@ -0,0 +1,38 @@
+#!/bin/mkpkg
+# description: An extremely fast Python linter and code formatter, written in Rust.
+# url: https://docs.astral.sh/ruff
+
+name=py-ruff
+_name=ruff
+version=0.16.9
+release=1
+depends=(python3)
+makedeps=(py-installer py-maturin rust patchelf)
+source=(https://files.pythonhosted.org/packages/source/r/ruff/$_name-$version.tar.gz)
+
+sha256sums=(
+ "12b625c6cfba78d285d9f48eda5f053374f1e53cb10ef17342a383750db99161"
+)
+
+build() {
+ cd $_name-$version
+
+ # Build Rust extension wheel via maturin
+ maturin build --release --out dist --interpreter /usr/bin/python3
+
+ _pyver=$(/usr/bin/python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')
+ _sitedir="$PKG/usr/lib/python${_pyver}/site-packages"
+
+ install -dm755 "$_sitedir"
+ /usr/bin/python3 -m installer --no-compile-bytecode --destdir "$PKG" --prefix /usr dist/*.whl
+
+ find "$_sitedir" -type d \( -name tests -o -name test \) -prune -exec rm -rf {} +
+ find "$_sitedir" -name "*.exe" -delete
+}
+
+# vim: filetype=sh
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}