Сравнение safetensors-0.7.0 с safetensors-0.8.0

/usr/portage/sci-ml/safetensors/safetensors-0.8.0.ebuild 2026-08-11 20:03:04.761460125 +0300
1 1
# Copyright 2023-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
# Autogenerated by pycargoebuild 0.15.3
5

  
4 6
EAPI=8
5 7

  
6 8
DISTUTILS_EXT=1
7 9

  
8
CRATES="
9
	allocator-api2@0.2.21
10
	autocfg@1.5.0
11
	equivalent@1.0.2
12
	foldhash@0.2.0
13
	hashbrown@0.16.0
14
	heck@0.5.0
15
	indoc@2.0.7
16
	itoa@1.0.15
17
	libc@0.2.177
18
	memchr@2.7.6
19
	memmap2@0.9.9
20
	memoffset@0.9.1
21
	once_cell@1.21.3
22
	portable-atomic@1.11.1
23
	proc-macro2@1.0.103
24
	pyo3-build-config@0.25.1
25
	pyo3-ffi@0.25.1
26
	pyo3-macros-backend@0.25.1
27
	pyo3-macros@0.25.1
28
	pyo3@0.25.1
29
	quote@1.0.42
30
	rustversion@1.0.22
31
	ryu@1.0.20
32
	serde@1.0.228
33
	serde_core@1.0.228
34
	serde_derive@1.0.228
35
	serde_json@1.0.145
36
	syn@2.0.110
37
	target-lexicon@0.13.3
38
	unicode-ident@1.0.22
39
	unindent@0.2.4
40
"
10
CRATES=""
41 11

  
42 12
DISTUTILS_USE_PEP517=maturin
43
PYTHON_COMPAT=( python3_{10..14} )
44
RUST_MIN_VER="1.80"
13
PYTHON_COMPAT=( python3_{12..15} )
14
RUST_MIN_VER="1.85.0"
45 15

  
46 16
inherit distutils-r1 cargo
47 17

  
......
52 22
"
53 23
SRC_URI="https://github.com/huggingface/${PN}/archive/refs/tags/v${PV}.tar.gz
54 24
	-> ${P}.gh.tar.gz
55
	${CARGO_CRATE_URIS}
56 25
"
26
if [[ ${PKGBUMPING} != ${PVR} ]]; then
27
	SRC_URI+="https://dev.gentoo.org/~tupone/distfiles/${PN}-python-${PV}-crates.tar.xz"
28
fi
57 29

  
58 30
S="${WORKDIR}"/${P}/bindings/python
59 31

  
60
LICENSE="Apache-2.0"
32
LICENSE="Apache-2.0-with-LLVM-exceptions MIT Unicode-3.0 ZLIB"
61 33
SLOT="0"
62 34
KEYWORDS="~amd64 ~arm64"
63 35

  
64 36
QA_FLAGS_IGNORED="usr/lib/.*"
65
RESTRICT="test" #depends on single pkg ( pytorch )
66 37

  
67 38
BDEPEND="
68 39
	dev-python/setuptools-rust[${PYTHON_USEDEP}]
69
	test? (
70
		dev-python/h5py[${PYTHON_USEDEP}]
71
	)
72 40
"
73 41

  
74
distutils_enable_tests pytest
75

  
76
src_prepare() {
77
	distutils-r1_src_prepare
78
	rm tests/test_{tf,paddle,flax}_comparison.py || die
79
	rm benches/test_{pt,tf,paddle,flax}.py || die
80
}
81

  
82 42
src_configure() {
83 43
	cargo_src_configure
84 44
	distutils-r1_src_configure
......
96 56
src_install() {
97 57
	distutils-r1_src_install
98 58
}
59

  
60
src_test() {
61
	cargo_src_test
62
	# python test depends on single pkg ( pytorch )
63
}
Спасибо!