dev-python/sqlglot: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-02-03 07:38:44 +01:00
parent 1356e5dce4
commit c1f2c4f400
2 changed files with 0 additions and 94 deletions

View File

@@ -1,5 +1,4 @@
DIST sqlglot-27.24.2-crates.tar.xz 8973180 BLAKE2B f893ebe4b94d4c2ab94f8fa902e51066e861511f698b24660d5becd31a98837c5a7f23a3d80c0716e8017012ae61f7202440c0092e1417e5f61b62e2e9f4260b SHA512 6a92b1ba2fbb51eac170db7a927927f8a06f184ebf820107a813c9cfa4dcdbea794199090a33986b48f5f00b3f43b404b7e1d26f5bf9663c53cb2b8f134d69af
DIST sqlglot-27.29.0.tar.gz 5503507 BLAKE2B f9c92b8f287ca4c99c792d005e62846afd669ba27b5d09042de06c8c3fa5e46b21abdf5134cc81ae3ae2cb13d0a5997c56ac07c14e5fb938544d5dbc08c70632 SHA512 5fc7a8a81b39a2dba007b501f1f5c2de9fa1e74b39d44e1bea706491db1ead0329aa2fbfb7c4997a50458137af70d259a227a8662ac26ba2904dde2b66922bb1
DIST sqlglot-28.6.0.tar.gz 5676522 BLAKE2B 270d3cb18b72422ca7a6d7376a3064a426ebb4dd9247afda3d54ddd9a9d39176192356d448ce97cff0af1528b111334809350397aa5819c3392e35e61bd66138 SHA512 c9d1e924ee22740c52509497f33fbeb208c9e73a99a29f77d96c8a9bb3e599e32706efea50e48015c153232cdcf4c1cc139b4398a9ed0184a2be2212be17d76a
DIST sqlglot-28.7.0-crates.tar.xz 6575196 BLAKE2B 29a29117c0118312e425cadb4ad2b2051bb3e7740175fab28865740051916b636f161ad0aa1afc346575698156b595c05cf9eec217b1ddd92d2f8a8741ba1686 SHA512 205a6932d593c41439e8de6b694bb1206e554c92ee2647cdd0fa33cf5497f46bea2e67e5e6b3e4af336837e3bd2cf2c0b82dfd7dc99a283bf134ba62c413d2ff
DIST sqlglot-28.7.0.tar.gz 5717197 BLAKE2B 279e940abd537b75f69d0aaaa500fc4622daa175840bc0ba8126216bdb2d8860f641d3b751fd51879ac20e44c898cf4bd7b0518bd906f74c8b243d791e21adba SHA512 284b68d0848ac134ab2950a367b3dee875de2339605b392df2098e0f6c08ba6eba46c8496e773dba8a131613c668e7222622869bcf6ae09ee190e0203286d989

View File

@@ -1,93 +0,0 @@
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
"
CARGO_OPTIONAL=1
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} )
CRATE_PV=27.24.2
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
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
}