pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-ruff: fetch some crates locally, doesn't work yet



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Thu May 4 21:29:08 2023 +0200
Changeset:	9b99bba4a56c590a2927d762e1075930ba336f1a

Modified Files:
	py-ruff/Makefile
	py-ruff/distinfo

Log Message:
py-ruff: fetch some crates locally, doesn't work yet

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9b99bba4a56c590a2927d762e1075930ba336f1a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-ruff/Makefile | 14 ++++++++++++++
 py-ruff/distinfo |  6 ++++++
 2 files changed, 20 insertions(+)

diffs:
diff --git a/py-ruff/Makefile b/py-ruff/Makefile
index a0a8c75924..d8f63b88fb 100644
--- a/py-ruff/Makefile
+++ b/py-ruff/Makefile
@@ -13,6 +13,20 @@ LICENSE=	mit
 TOOL_DEPENDS+=	${PYPKGPREFIX}-maturin>=0.14.10:../../devel/py-maturin
 TOOL_DEPENDS+=	rust-[0-9]*:../../lang/rust
 
+DISTFILES=					${DEFAULT_DISTFILES}
+# Depends on unpublished crates. Can't use cargo.mk to fetch them.
+LIBCST_REV=					80e4c1399f95e5beb532fdd1e209ad2dbb470438
+DISTFILES+=					libcst-${LIBCST_REV}.tar.gz
+SITES.libcst-${LIBCST_REV}.tar.gz+=		-${MASTER_SITE_GITHUB:=charliermarsh/}LibCST/archive/${LIBCST_REV}.tar.gz
+# for ruff_text_size (and others)
+RUSTPYTHON_REV=					c3147d2c1524ebd0e90cf1c2938d770314fd5a5a
+DISTFILES+=					RustPython-${RUSTPYTHON_REV}.tar.gz
+SITES.RustPython-${RUSTPYTHON_REV}.tar.gz+=	-${MASTER_SITE_GITHUB:=charliermarsh/}RustPython/archive/${RUSTPYTHON_REV}.tar.gz
+
+post-extract:
+	mv ${WRKDIR}/LibCST-* ${WRKSRC}
+	mv ${WRKDIR}/RustPython-*/ruff_text_size ${WRKSRC}
+
 CARGO_WRKSRC=	${WRKSRC}/crates/ruff_cli
 MAKE_ENV+=	CARGO_NET_OFFLINE=true
 
diff --git a/py-ruff/distinfo b/py-ruff/distinfo
index 58f0353176..5b220b1617 100644
--- a/py-ruff/distinfo
+++ b/py-ruff/distinfo
@@ -3,6 +3,9 @@ $NetBSD$
 BLAKE2s (Inflector-0.11.4.crate) = 2f8b4a805230be3b58267c7fb6b9c26c2ec966378d195673d1128a851cca515d
 SHA512 (Inflector-0.11.4.crate) = f1f6463e033b6d3c16c51dc1e1a3f5569954308b95b59058294b7f9310919bbda797e99e6a07529071bb83f0688867a243997d33795a7136b0af73977004296e
 Size (Inflector-0.11.4.crate) = 17438 bytes
+BLAKE2s (RustPython-c3147d2c1524ebd0e90cf1c2938d770314fd5a5a.tar.gz) = 565711b6d09962c9a20692cff948470a9d913580d89bdddbb2c044b015aac6e8
+SHA512 (RustPython-c3147d2c1524ebd0e90cf1c2938d770314fd5a5a.tar.gz) = fe3c5816a01c53450bd370f0f7240f6c76726bf9a771350365cd5d140dda6fc405cd19df5af70c7c5f253d1fd542d2d862ad0af995027d372b621b449bdb6c36
+Size (RustPython-c3147d2c1524ebd0e90cf1c2938d770314fd5a5a.tar.gz) = 10875298 bytes
 BLAKE2s (adler-1.0.2.crate) = f263779d752af886455fc0f42c997893fb1a09edcf1bd2980605251c2e3602aa
 SHA512 (adler-1.0.2.crate) = 7ab190d31890fc05b0b55d8e2c6527a505e06793d5496be0b3831e0513412f9ba97f8148f6f68ed0770fa9cd980a5092d885e058becf1d5506b7c74b82674aa1
 Size (adler-1.0.2.crate) = 12778 bytes
@@ -390,6 +393,9 @@ Size (lexical-util-0.8.5.crate) = 85152 bytes
 BLAKE2s (libc-0.2.142.crate) = 2506428fb94bfff22500073865dac34827aabd7dd4026b2303bf6b07d04e3fa9
 SHA512 (libc-0.2.142.crate) = 8eb465fea8bfa865aa592185ea2dd89a6d89252b0e44fb7398ae82c9fa031d501fc3a1c37e50d1971be528c6e1a4ca416da224ba82e5a8766ec598464593afdd
 Size (libc-0.2.142.crate) = 679343 bytes
+BLAKE2s (libcst-80e4c1399f95e5beb532fdd1e209ad2dbb470438.tar.gz) = 73c8706240ced5c2288f7383d86cc2cb72f3f84de70658207dfcc11abb8c93c3
+SHA512 (libcst-80e4c1399f95e5beb532fdd1e209ad2dbb470438.tar.gz) = f2d5d07b4039046271a2edabfc0cdd244cf5637db44fb3bafe56b6b8966913f199d1483e2e04b993b14aa81330e748db6400510411f8f4543df2d6b867f474ff
+Size (libcst-80e4c1399f95e5beb532fdd1e209ad2dbb470438.tar.gz) = 726513 bytes
 BLAKE2s (libmimalloc-sys-0.1.32.crate) = 2bffb0ab573f9d20b8beab912cce21617835e12c8f2da33e2f50d69d60c7fb1d
 SHA512 (libmimalloc-sys-0.1.32.crate) = 327d74ddc921adae39c0ab876ddbdab9c94d99054b01305c229b8b36eabbf53a67b4660ce37a5e0a590d93d790692e41195ba7c819c335b2ca0eb07491536895
 Size (libmimalloc-sys-0.1.32.crate) = 1165949 bytes


Home | Main Index | Thread Index | Old Index