From a0866b5be663d6483bbfc9b849f9dfe84fba6d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 28 Jul 2026 07:28:58 +0200 Subject: [PATCH] dev-python/sqlglot: Bump to 30.14.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/sqlglot/Manifest | 1 + dev-python/sqlglot/sqlglot-30.14.0.ebuild | 53 +++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 dev-python/sqlglot/sqlglot-30.14.0.ebuild diff --git a/dev-python/sqlglot/Manifest b/dev-python/sqlglot/Manifest index 1243f4071f069..4f217176dd01c 100644 --- a/dev-python/sqlglot/Manifest +++ b/dev-python/sqlglot/Manifest @@ -1 +1,2 @@ DIST sqlglot-30.13.0.tar.gz 5932385 BLAKE2B 5714fa3951a8c311cb57108620e04a61d7b3c656974f92f7d33135773c5efc5eaaf937502470b21ba6090e55e1315a0f8960f6f9a5c7d771a779d5ca5ab97b56 SHA512 ace7bef544f630e9fdd46a92147fa5120881f38f9c3a7612af6a4939b6ae58b7cabf2915d23a7e07bb07dcd7aa20ad52000e8a3d8b5e52445155179f3e35cada +DIST sqlglot-30.14.0.tar.gz 5944410 BLAKE2B 53904da0b2fb198ef872c166fbd9eec32ebf230d1e20f3cc609c151b3f63c5769df81cbf6f65d9c7adb12f985b215f43c7d1983025dbcd9ef404206099486bf5 SHA512 2dd0d71c5abfe6a007cc576244cad7f5ceca4d62a051658633a73bfdc40cccbe6ab9627a391caa5336373234e8a8442f32721222a26f1f8567a334afc021784e diff --git a/dev-python/sqlglot/sqlglot-30.14.0.ebuild b/dev-python/sqlglot/sqlglot-30.14.0.ebuild new file mode 100644 index 0000000000000..664549d125604 --- /dev/null +++ b/dev-python/sqlglot/sqlglot-30.14.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 2023-2026 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_{12..15} ) + +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/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +# Native extensions removed: it uses mypyc which is incredibly slow +# and then the extension crashes anyway. Upstream uses their own mypy +# fork which might help but that's just insane. + +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + dev-python/pytz[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +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" + ) + + rm -rf sqlglot || die + epytest +} + +pkg_postinst() { + optfeature "simplifying timedelta expressions" dev-python/python-dateutil +}