repo/gentoo:master commit in: dev-python/sqlglot/
MichaŠGórny <[email protected]> Wed, 05 Aug 2026 02:13:35 +0000 (UTC)
| Newsgroups | gmane.linux.gentoo.cvs |
|---|---|
| Message-ID | <1785894939.5faaccb85534170a670d37ee366289f635a328fe.mgorny@gentoo> |
commit: 5faaccb85534170a670d37ee366289f635a328fe
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 5 01:36:52 2026 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Aug 5 01:55:39 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5faaccb8
dev-python/sqlglot: Bump to 30.15.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/sqlglot/Manifest | 1 +
dev-python/sqlglot/sqlglot-30.15.0.ebuild | 53 +++++++++++++++++++++++++++++++
2 files changed, 54 insertions(+)
diff --git a/dev-python/sqlglot/Manifest b/dev-python/sqlglot/Manifest
index d0597fddde98..4161c9cd3bb8 100644
--- a/dev-python/sqlglot/Manifest
+++ b/dev-python/sqlglot/Manifest
@@ -1 +1,2 @@
DIST sqlglot-30.14.0.tar.gz 5944410 BLAKE2B 53904da0b2fb198ef872c166fbd9eec32ebf230d1e20f3cc609c151b3f63c5769df81cbf6f65d9c7adb12f985b215f43c7d1983025dbcd9ef404206099486bf5 SHA512 2dd0d71c5abfe6a007cc576244cad7f5ceca4d62a051658633a73bfdc40cccbe6ab9627a391caa5336373234e8a8442f32721222a26f1f8567a334afc021784e
+DIST sqlglot-30.15.0.tar.gz 5973319 BLAKE2B b53de3a6df9c3208e3354fb3c241993d845defbe92a95d4eaf6edcd1dc10792f5a581f95d22edcbc2d953c1986dbf781b0bc89570e639213115938aaa8d79e40 SHA512 8ae3aaf68f8a5580db7c3d863a286da1d9dd735f01d9eb0bd23ae06d71f72eb9026b02fb62eb9106782e94a3ab606b36370777b3b542462601dcfa4f52f3e65b
diff --git a/dev-python/sqlglot/sqlglot-30.15.0.ebuild b/dev-python/sqlglot/sqlglot-30.15.0.ebuild
new file mode 100644
index 000000000000..664549d12560
--- /dev/null
+++ b/dev-python/sqlglot/sqlglot-30.15.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
+}