From ae4397d78e495404afda11d03c7ba29e7c524058 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Thu, 5 Feb 2026 19:18:11 +0000 Subject: Adding metadata --- dev-python/sqlglot/Manifest | 2 +- dev-python/sqlglot/sqlglot-28.10.0.ebuild | 92 +++++++++++++++++++++++++++++++ dev-python/sqlglot/sqlglot-28.7.0.ebuild | 91 ------------------------------ 3 files changed, 93 insertions(+), 92 deletions(-) create mode 100644 dev-python/sqlglot/sqlglot-28.10.0.ebuild delete mode 100644 dev-python/sqlglot/sqlglot-28.7.0.ebuild (limited to 'dev-python/sqlglot') diff --git a/dev-python/sqlglot/Manifest b/dev-python/sqlglot/Manifest index e66f66f523f2..d052f1f571ee 100644 --- a/dev-python/sqlglot/Manifest +++ b/dev-python/sqlglot/Manifest @@ -1,5 +1,5 @@ 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.10.0.tar.gz 5739594 BLAKE2B 80096fb378882195090942eaedc96a08fd30b45e654f1b0f8fed6601baf8706d747365f5731bbe7747ea077d6cb03587d5510f8443a4864b517ff39495bd2bb3 SHA512 dad42fa4e5f9c66efcfe3230187a1f859a1ef7e90ec97bc644ce097f04b6ae40002b9cdf5977d1258e1aa4aaafd4ef2fcae68309774b30ee2465e6325033ab1a 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 DIST sqlglot-28.8.0.tar.gz 5734732 BLAKE2B 06ffba829543a83bf70880f64eb5822c3f56c791e4faea810e61d307f19c59fb567fdce42b67e7713b5bd48da396c4667fe9deb1238ae49311ba954a5c0cd2c2 SHA512 cc5441759541adaa642954d0abc8dccb1a77a400182b87a12e5e4ebd573233431ae39f90bfb7f5f9032fa7ad716f8b53f1eec4706613b69c221d118079a6057d diff --git a/dev-python/sqlglot/sqlglot-28.10.0.ebuild b/dev-python/sqlglot/sqlglot-28.10.0.ebuild new file mode 100644 index 000000000000..c1ea5b5b0b0d --- /dev/null +++ b/dev-python/sqlglot/sqlglot-28.10.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 2023-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES="" +CARGO_OPTIONAL=1 +RUST_MIN_VER="1.81.0" +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..14} ) +CRATE_PV=28.7.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 + 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 +} diff --git a/dev-python/sqlglot/sqlglot-28.7.0.ebuild b/dev-python/sqlglot/sqlglot-28.7.0.ebuild deleted file mode 100644 index 8651c990e495..000000000000 --- a/dev-python/sqlglot/sqlglot-28.7.0.ebuild +++ /dev/null @@ -1,91 +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_{10..14} ) -CRATE_PV=28.7.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 - 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 -} -- cgit v1.3.1