pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-ruff: add incomplete package
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By: wiz
Date: Sun Apr 30 14:43:30 2023 +0200
Changeset: ac15475ca97e52a667bae344e06bb9780951f94e
Modified Files:
Makefile
Added Files:
py-ruff/DESCR
py-ruff/Makefile
py-ruff/PLIST
py-ruff/TODO
py-ruff/distinfo
Log Message:
py-ruff: add incomplete package
Written in rust, built using py-maturin, which I don't grok enough yet
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ac15475ca97e52a667bae344e06bb9780951f94e
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
py-ruff/DESCR | 10 ++++++++++
py-ruff/Makefile | 20 ++++++++++++++++++++
py-ruff/PLIST | 4 ++++
py-ruff/TODO | 16 ++++++++++++++++
py-ruff/distinfo | 5 +++++
6 files changed, 56 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index caf22daab3..4646622b1f 100644
--- a/Makefile
+++ b/Makefile
@@ -4572,6 +4572,7 @@ SUBDIR+= py-rpncalc
SUBDIR+= py-rql
SUBDIR+= py-rst2html5
SUBDIR+= py-rtree
+SUBDIR+= py-ruff
SUBDIR+= py-ruffus
SUBDIR+= py-rxpy3
SUBDIR+= py-sabyenc
diff --git a/py-ruff/DESCR b/py-ruff/DESCR
new file mode 100644
index 0000000000..063ddae513
--- /dev/null
+++ b/py-ruff/DESCR
@@ -0,0 +1,10 @@
+Ruff is an extremely fast Python linter, written in Rust.
+
+Ruff aims to be orders of magnitude faster than alternative tools
+while integrating more functionality behind a single, common
+interface.
+
+Ruff can be used to replace Flake8 (plus dozens of plugins), isort,
+pydocstyle, yesqa, eradicate, pyupgrade, and autoflake, all while
+executing tens or hundreds of times faster than any individual
+tool.
diff --git a/py-ruff/Makefile b/py-ruff/Makefile
new file mode 100644
index 0000000000..a495bc6579
--- /dev/null
+++ b/py-ruff/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+DISTNAME= ruff-0.0.263
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_PYPI:=r/ruff/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/charliermarsh/ruff
+COMMENT= Extremely fast Python linter, written in Rust
+LICENSE= mit
+
+#TOOL_DEPENDS+= ${PYPKGPREFIX}-build-[0-9]*:../../devel/py-build
+#TOOL_DEPENDS+= ${PYPKGPREFIX}-maturin>=0.14.10:../../devel/py-maturin
+TOOL_DEPENDS+= rust-[0-9]*:../../lang/rust
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/wheel.mk"
+.include "../../lang/rust/cargo.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-ruff/PLIST b/py-ruff/PLIST
new file mode 100644
index 0000000000..92ba51a2d7
--- /dev/null
+++ b/py-ruff/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+@comment TODO: to fill this file with the file listing:
+@comment TODO: 1. run "/usr/bin/make package"
+@comment TODO: 2. run "/usr/bin/make print-PLIST"
diff --git a/py-ruff/TODO b/py-ruff/TODO
new file mode 100644
index 0000000000..3774f88d9d
--- /dev/null
+++ b/py-ruff/TODO
@@ -0,0 +1,16 @@
+⚠️ Warning: specify [package.metadata.maturin] name in Cargo.toml is deprecated, use module-name in [tool.maturin] section in pyproject.toml instead
+🍹 Building a mixed python/rust project
+🔗 Found bin bindings
+📡 Using build options bindings from pyproject.toml
+error: package `ruff_cli v0.0.263 (/scratch/devel/py-ruff/work/ruff-0.0.263/crates/ruff_cli)` cannot be built because it requires rustc 1.69 or newer, while the currently active rustc version is 1.68.2
+
+💥 maturin failed
+ Caused by: Failed to build a native library through cargo
+ Caused by: Cargo build finished with "exit status: 101": `"cargo" "rustc" "--release" "--manifest-path" "/scratch/devel/py-ruff/work/ruff-0.0.263/crates/ruff_cli/Cargo.toml" "--message-format" "json" "--bin" "ruff" "--" "-C" "link-arg=-s"`
+Error: command ['maturin-3.11', 'pep517', 'build-wheel', '-i', '/usr/pkg/bin/python3.11', '--compatibility', 'off'] returned non-zero exit status 1
+
+ERROR Backend subprocess exited when trying to invoke build_wheel
+*** Error code 1
+
+
+Also, there should be a cargo-depends.mk instead of downloading during crates build.
diff --git a/py-ruff/distinfo b/py-ruff/distinfo
new file mode 100644
index 0000000000..57338c2e1b
--- /dev/null
+++ b/py-ruff/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (ruff-0.0.263.tar.gz) = 74abdc072683346c6f4b7c86c19f857f91790e1912d0c32e5fc7a2631bae472a
+SHA512 (ruff-0.0.263.tar.gz) = 341733f5d14a4e83976d84ea27bdcb0f8e2e790c2725c352be2cd582e02dc4b89d221d2f92d4547807fd015cccee64af4f6b4d4ea5ceb7a39aea1af902f9d8e0
+Size (ruff-0.0.263.tar.gz) = 1032792 bytes
Home |
Main Index |
Thread Index |
Old Index