mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/sqlglot: Bump to 27.18.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -2,3 +2,4 @@ DIST sqlglot-26.33.0-crates.tar.xz 8859792 BLAKE2B abb2051b392c53dc3caa705ddd8df
|
||||
DIST sqlglot-26.33.0.tar.gz 5353340 BLAKE2B 18ace866ec89ced24911803497e8cb5c55fc6c157bf62b893e90df914b8be3360403ffff67f196080cdef9b9b9078b86d471494ae9768e7947a8b4d5d39e49af SHA512 df38e899d59bdd07aca0e5370833133308f9c5be4d0c990bf8112a48776fae034b622938aba968769aa5dc5e2957d56da48c89045b91b2d33783e6e25acc4a7b
|
||||
DIST sqlglot-27.16.3.tar.gz 5471626 BLAKE2B ec8f0a831767380362c4c2fe31d3e63355904bbe8a063172efe5f1b893fbc5fce98f9540e9a89136070db6beebe0ac4384b894e0fb103a8bd2c014a917b60b3f SHA512 b9aae79f96b2a7d797c762ab471737b29fa7760798e9121490db2f16a953a67baeb71c0d3e86d77ff00e311a2240503d1155f16669905847d91a5d4eedf18574
|
||||
DIST sqlglot-27.17.0.tar.gz 5474967 BLAKE2B ff7cb2e2551ec1e78688fec29685d4e75313136a9c575b7b5bd27eb022db91c44417ca467285a89a30ff6d8aad2f99f1d2b3bca1113ace32dd53ae089883d9d5 SHA512 76aaa80b59e3b0ae831b3965824cf92072b63b1573a9eb6204aea7764c186b1c926a47c72c8e169ed0fb42b01b0784e408e32795befddc230ab08023257f820b
|
||||
DIST sqlglot-27.18.0.tar.gz 5478250 BLAKE2B 6b15843587ece336e4e92d5ec425ce28cace71c5b32f4451d8e7213661e3ed3b99c34f599f3db370d6b8764cd71a635e9cb666678a283c1d069e858c0644fab2 SHA512 542c3f9d48f47e4504d9adef64e703d03895be4139579534062e342b7717b0f776f072a1885f309536f88d11b28290c5bb37dfe5ce7b73e843051a87e4166a20
|
||||
|
||||
175
dev-python/sqlglot/sqlglot-27.18.0.ebuild
Normal file
175
dev-python/sqlglot/sqlglot-27.18.0.ebuild
Normal file
@@ -0,0 +1,175 @@
|
||||
# Copyright 2023-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
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.25.0
|
||||
pyo3-ffi@0.25.0
|
||||
pyo3-macros-backend@0.25.0
|
||||
pyo3-macros@0.25.0
|
||||
pyo3@0.25.0
|
||||
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.13.2
|
||||
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
|
||||
"
|
||||
|
||||
CARGO_OPTIONAL=1
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
CRATE_PV=26.33.0
|
||||
|
||||
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? (
|
||||
https://github.com/gentoo-crate-dist/sqlglot/releases/download/v${CRATE_PV}/sqlglot-${CRATE_PV}-crates.tar.xz
|
||||
)
|
||||
"
|
||||
|
||||
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}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=()
|
||||
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
|
||||
local DISTUTILS_UPSTREAM_PEP517=maturin
|
||||
cd sqlglotrs || die
|
||||
distutils-r1_python_compile
|
||||
cd - >/dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
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