mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/sqlglot: Bump to 26.6.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -58,6 +58,7 @@ DIST serde_json-1.0.133.crate 150739 BLAKE2B 7891eb5b8edcc7fd09ab1e15d3881ffdcb6
|
||||
DIST sqlglot-26.3.8.tar.gz 19957402 BLAKE2B c4dd2a2f64c7b8fa537d0d81b0915b0b2c044ae4cb1e6da8824cdb43e116313d61f93ddb3c0faaac83b6f624d595573c55686d0dd2cc103f716eab2f564e2ec6 SHA512 d1853353d60674a91d13cebcc3329d227fa7c998e2cfd689a3de77bea4fe5b1bd86dc167f790c929a1617b882962060bc84d923fc6f93f0356145438dcb8433c
|
||||
DIST sqlglot-26.3.9.tar.gz 5311903 BLAKE2B 0637f47170c53b22a8672b4d35a16b5d22c696a1568b22b0474d9075b82534c18f54a66b06010a426ff8121be64934041871d97f78c5a1951ad200849ab5c5a0 SHA512 3fb7ba3a0fe583837a7aed0f18a66eefa06fa193f0f97484eca60fc13bb2700c27b7dd1b4d0a54d64adf8ea2b4009057a091534b5d52aa36a5d499c861e2b2a8
|
||||
DIST sqlglot-26.4.1.tar.gz 5315460 BLAKE2B d96c6927f24ba10cff61c4a56542fe689c372e10e2af5c05829e856bf36ead667e56a37b5c8fcacbeaa3c08f302e8ec0f78a2896c7ee659ff419e8b023cf6e0a SHA512 0a17247b060a4d631799aa23e5722eb2b40676a1482207b0a9c5ee3c88b965e31e79b10855c174a918f4e2f32bde1b37dcbf45511d7814446a1fa1405f59e0d8
|
||||
DIST sqlglot-26.6.0.tar.gz 5317429 BLAKE2B 5ce8516f9e03c55bed95cbb5f6c8904c1304a161e3809da11ad178c26629fa343be32bdd0418d23fd37826b84f94000e272f5687d85a147b1a9f7c57adad101c SHA512 f600f1c596c02c1668bc1236c5539b4e80f0b5d4a85c1faebd4273cdd08d04ebf6f5bdb2d6885be5eeefcc25d87ed47efd81fd4790f3d82a406bb05932f6a1b4
|
||||
DIST syn-2.0.87.crate 278076 BLAKE2B 93385f64103fdb482bec34c7912474ae7a5935948715e6eb9a54907e0db5c39f089f6cd393bab33c935c59a1bbb0f4099431f206343811c1a450554d96a35756 SHA512 bcfff545d6dfefd81e09f8f30a86bdd85759b3a7d4093ef3365ed02718e10dbd604c52b94c9d7fa955d339fdc5b6c079940c6f345b5a48c52b5c8607794ca6f2
|
||||
DIST target-lexicon-0.12.16.crate 26488 BLAKE2B e7950e4a302059a1bfc9bc15618a3c1b971a17cffae117a6e8f5f63a0d82fd2bd02680301d15338612d5426d349dd24cfee30ee787a15a7d3187f2a6825e69ce SHA512 092639957c4a0391560b6442b31c47159c04d12e971010f730a6ec9cb5389e4be903ef3d7daa06db95e64dc78b6970731fb647179ebaad2b12e9ed5e9b24da27
|
||||
DIST tinytemplate-1.2.1.crate 26490 BLAKE2B af39d96f33f63238e455a4e38fde1d1730fd9661ae68be7b05df6ef9d2ab1a04db1332cc4ec9deb6da3a8e22b124df81b0fa8916d8491b808742bb733c8e48be SHA512 0cc080057e096f0796e72004343e1a8332c2e8a12e43f6ade150ebf632e9c29c7ad04de0b940cd57df81efdc4d07a6607da9b86a30d8383e39ac3d7be185edb9
|
||||
|
||||
177
dev-python/sqlglot/sqlglot-26.6.0.ebuild
Normal file
177
dev-python/sqlglot/sqlglot-26.6.0.ebuild
Normal file
@@ -0,0 +1,177 @@
|
||||
# Copyright 2023-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
CARGO_OPTIONAL=1
|
||||
CRATES="
|
||||
aho-corasick@1.1.3
|
||||
anes@0.1.6
|
||||
anstyle@1.0.10
|
||||
autocfg@1.1.0
|
||||
bumpalo@3.16.0
|
||||
cast@0.3.0
|
||||
cfg-if@1.0.0
|
||||
ciborium-io@0.2.2
|
||||
ciborium-ll@0.2.2
|
||||
ciborium@0.2.2
|
||||
clap@4.5.23
|
||||
clap_builder@4.5.23
|
||||
clap_lex@0.7.4
|
||||
criterion-plot@0.5.0
|
||||
criterion@0.5.1
|
||||
crossbeam-deque@0.8.6
|
||||
crossbeam-epoch@0.9.18
|
||||
crossbeam-utils@0.8.21
|
||||
crunchy@0.2.2
|
||||
either@1.13.0
|
||||
half@2.4.1
|
||||
heck@0.5.0
|
||||
hermit-abi@0.4.0
|
||||
indoc@2.0.4
|
||||
is-terminal@0.4.13
|
||||
itertools@0.10.5
|
||||
itoa@1.0.14
|
||||
js-sys@0.3.76
|
||||
libc@0.2.169
|
||||
log@0.4.22
|
||||
memchr@2.7.4
|
||||
memoffset@0.9.0
|
||||
num-traits@0.2.19
|
||||
once_cell@1.19.0
|
||||
oorandom@11.1.4
|
||||
plotters-backend@0.3.7
|
||||
plotters-svg@0.3.7
|
||||
plotters@0.3.7
|
||||
portable-atomic@1.9.0
|
||||
proc-macro2@1.0.89
|
||||
pyo3-build-config@0.22.6
|
||||
pyo3-ffi@0.22.6
|
||||
pyo3-macros-backend@0.22.6
|
||||
pyo3-macros@0.22.6
|
||||
pyo3@0.22.6
|
||||
quote@1.0.37
|
||||
rayon-core@1.12.1
|
||||
rayon@1.10.0
|
||||
regex-automata@0.4.9
|
||||
regex-syntax@0.8.5
|
||||
regex@1.11.1
|
||||
rustc-hash@2.1.0
|
||||
ryu@1.0.18
|
||||
same-file@1.0.6
|
||||
serde@1.0.216
|
||||
serde_derive@1.0.216
|
||||
serde_json@1.0.133
|
||||
syn@2.0.87
|
||||
target-lexicon@0.12.16
|
||||
tinytemplate@1.2.1
|
||||
unicode-ident@1.0.12
|
||||
unindent@0.2.3
|
||||
walkdir@2.5.0
|
||||
wasm-bindgen-backend@0.2.99
|
||||
wasm-bindgen-macro-support@0.2.99
|
||||
wasm-bindgen-macro@0.2.99
|
||||
wasm-bindgen-shared@0.2.99
|
||||
wasm-bindgen@0.2.99
|
||||
web-sys@0.3.76
|
||||
winapi-util@0.1.9
|
||||
windows-sys@0.52.0
|
||||
windows-sys@0.59.0
|
||||
windows-targets@0.52.6
|
||||
windows_aarch64_gnullvm@0.52.6
|
||||
windows_aarch64_msvc@0.52.6
|
||||
windows_i686_gnu@0.52.6
|
||||
windows_i686_gnullvm@0.52.6
|
||||
windows_i686_msvc@0.52.6
|
||||
windows_x86_64_gnu@0.52.6
|
||||
windows_x86_64_gnullvm@0.52.6
|
||||
windows_x86_64_msvc@0.52.6
|
||||
"
|
||||
|
||||
inherit cargo distutils-r1 pypi optfeature
|
||||
|
||||
DESCRIPTION="An easily customizable SQL parser and transpiler"
|
||||
HOMEPAGE="
|
||||
https://sqlglot.com/
|
||||
https://github.com/tobymao/sqlglot/
|
||||
https://pypi.org/project/sqlglot/
|
||||
"
|
||||
SRC_URI+="
|
||||
native-extensions? (
|
||||
${CARGO_CRATE_URIS}
|
||||
)
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
LICENSE+=" native-extensions? ("
|
||||
# Dependent crate licenses
|
||||
LICENSE+="
|
||||
Apache-2.0 Apache-2.0-with-LLVM-exceptions MIT Unicode-DFS-2016
|
||||
"
|
||||
LICENSE+=" )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="+native-extensions"
|
||||
|
||||
BDEPEND="
|
||||
native-extensions? (
|
||||
${RUST_DEPEND}
|
||||
dev-util/maturin[${PYTHON_USEDEP}]
|
||||
)
|
||||
test? (
|
||||
dev-python/pytz[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/sqlglotrs/sqlglotrs.*.so"
|
||||
|
||||
pkg_setup() {
|
||||
use native-extensions && rust_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
cargo_src_unpack
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
distutils-r1_python_compile
|
||||
|
||||
if use native-extensions; then
|
||||
local DISTUTILS_USE_PEP517=maturin
|
||||
cd sqlglotrs || die
|
||||
distutils-r1_python_compile
|
||||
cd - >/dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# timing, sigh
|
||||
# https://github.com/tobymao/sqlglot/issues/3961
|
||||
tests/test_generator.py::TestGenerator::test_generate_nested_binary
|
||||
)
|
||||
local EPYTEST_IGNORE=(
|
||||
# Tests require pyspark or duckdb which aren't in the tree.
|
||||
# Pandas would be a requirement normally, but it gets ignored by proxy.
|
||||
"tests/dataframe/integration/test_dataframe.py"
|
||||
"tests/dataframe/integration/test_grouped_data.py"
|
||||
"tests/dataframe/integration/test_session.py"
|
||||
"tests/test_executor.py"
|
||||
"tests/test_optimizer.py"
|
||||
)
|
||||
|
||||
# make sure not to use an earlier installed version
|
||||
local -x SQLGLOTRS_TOKENIZER=$(usex native-extensions 1 0)
|
||||
rm -rf sqlglotrs || die
|
||||
epytest
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "simplifying timedelta expressions" dev-python/python-dateutil
|
||||
}
|
||||
Reference in New Issue
Block a user