From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 65E441584F2 for ; Thu, 13 Mar 2025 20:04:03 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 4DFC93430F9 for ; Thu, 13 Mar 2025 20:04:03 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id C4BE91103CD; Thu, 13 Mar 2025 20:03:55 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id BD8891103CD for ; Thu, 13 Mar 2025 20:03:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6F8C934311E for ; Thu, 13 Mar 2025 20:03:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 003452616 for ; Thu, 13 Mar 2025 20:03:54 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1741896216.c08e7ae78d4900ce4da12a84da19ad6f4a080cbf.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sqlglot/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/sqlglot/Manifest dev-python/sqlglot/sqlglot-26.10.1.ebuild X-VCS-Directories: dev-python/sqlglot/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: c08e7ae78d4900ce4da12a84da19ad6f4a080cbf X-VCS-Branch: master Date: Thu, 13 Mar 2025 20:03:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 44a5043f-1fd9-4f45-9322-2627a0409a5f X-Archives-Hash: 823a2e6b27be097438f23420432be46b commit: c08e7ae78d4900ce4da12a84da19ad6f4a080cbf Author: Arthur Zamarin gentoo org> AuthorDate: Thu Mar 13 18:51:11 2025 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Thu Mar 13 20:03:36 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c08e7ae7 dev-python/sqlglot: add 26.10.1 Signed-off-by: Arthur Zamarin gentoo.org> dev-python/sqlglot/Manifest | 2 + dev-python/sqlglot/sqlglot-26.10.1.ebuild | 96 +++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) diff --git a/dev-python/sqlglot/Manifest b/dev-python/sqlglot/Manifest index fd2e5378bda9..a8301cd8ce33 100644 --- a/dev-python/sqlglot/Manifest +++ b/dev-python/sqlglot/Manifest @@ -55,6 +55,8 @@ DIST same-file-1.0.6.crate 10183 BLAKE2B a320c8343e0b38078ba81c4f0159d886bf47764 DIST serde-1.0.216.crate 79000 BLAKE2B 98c0f5cee2f9212c6b7620d2068665379471ceb7557d1454cab9b1c2120b526ef597fbb642f65440e70f92a4764cad33613b478bacf99138dd5bd51fdbdbee6b SHA512 baabf4c7aac4a540c9ed18b336662087258b71c9cb0e547c8d83a2734818ab2cbbe62f910d812eb61d3d46e653c41a3eebc99b1d679bfc51f95710c71a8ecc20 DIST serde_derive-1.0.216.crate 57674 BLAKE2B 12a9228679c16288c08c8b256707e276aec79f84ac7af0c4cfd1f109500dfea80438df17d798acdd30a9743c753e70093b22bd324217529bac483f257682a3e2 SHA512 80fcb552279ac7562297df878f2f5e9ac09241701f5cf1088fcbf473b638f58cd3092a7930d8937ca0df9a47b9ae1a42d490cd46a275259cd8089fe8f5426469 DIST serde_json-1.0.133.crate 150739 BLAKE2B 7891eb5b8edcc7fd09ab1e15d3881ffdcb629aa39f2bd758c0505700a5f2dfabd85b1b66c3b094268bc1627b346e204c792f4ca61efa76c54ab9cd5744fb0ee2 SHA512 20e65ec87bff319897a141960d13deb5cadcf821209c1ee8799f1dc7f458ce432bc62c16df5bdada1c8d3cc01ff23b8125e8fa0a03545d4614f32efd687dc69f +DIST sqlglot-26.10.1-crates.tar.xz 8327388 BLAKE2B 69213d11940f9d4e743b169ef831b8b52a771f012e247570cf0703580a14af435d4d033b4b3ddfca6f4022b741261a24f3b47e5137de644d863714006520f857 SHA512 5de0781c54265b369e5e46b7cfbcc04a3118aa8d1323bff14f2841c95d471f545c923eedb88dbbb81a910801c5a505ff37a25701af936c06cf55a1659cd8822e +DIST sqlglot-26.10.1.tar.gz 5334132 BLAKE2B 09050744362cd6096b761f97d67230e9908b88f074958b23c3c5eeae10adc5319a69134d68f41d5d181fea0e7d16aaaed224a6c786426da36a60fba5b6bbda16 SHA512 cee6ff027bbeb21d1a325f90f2d64f9d87bd221e2e5a1c0a9f11ddb3f11a898dc570b278be157ebd1050cb810338057bd6595fec322c97a98937c2c9ee008a09 DIST sqlglot-26.7.0.tar.gz 5322836 BLAKE2B c44996699bb9831e3bba1fbb8ea4eb8c88f47f2e27a30e61143606e576f5ea07d78fd9a180c1f9f13df4a610b9d33fb104ea44f3f50a5fee3886d7efcb10a378 SHA512 40b8a544b87510d5cb098d9ede8c0a00ab2d5a82b3fac816a1377d79377c4daad65b29a04f9dfbcad672d831f1d07104686fba80b29d1591d7922d7c58c66d72 DIST sqlglot-26.8.0.tar.gz 5325732 BLAKE2B 442247956468c411489d3b8ca4edb094eb5814ea72505897e818880acd656daa2d5192b7e1e4ec468dcada2836f708a16ca042d3c51c96982464c1998ae692cf SHA512 8a67977e346f2c67ce1aafd998720eb1eb2e6a0411c4f78b4455f5936961ff274d0e9553a5c62727698499c9e7d98daee76836d0fc0ccb6b55b472f88cfe6b73 DIST sqlglot-26.9.0.tar.gz 5327761 BLAKE2B eacd37927f50c2124142666d41028d5a8e7f8ae8164012f0364ecd5294eec6ea16d7fa46d4d11e3c7d2436a2aec50179a0b4ff490f92408f9e0b14571d93ec69 SHA512 9f7f1b217daa667dc5f5418e1102e7a55a260948f3d651827f01069bb4f58e42e3774679e8dceb41b64f43472daed54d6f7a390a864f10b53ac675a0fc65c747 diff --git a/dev-python/sqlglot/sqlglot-26.10.1.ebuild b/dev-python/sqlglot/sqlglot-26.10.1.ebuild new file mode 100644 index 000000000000..c6e324721e65 --- /dev/null +++ b/dev-python/sqlglot/sqlglot-26.10.1.ebuild @@ -0,0 +1,96 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" " + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} ) + +CARGO_OPTIONAL=1 + +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${PV}/${P}-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}] + ) +" + +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_DESELECT=( + # timing, sigh + # https://github.com/tobymao/sqlglot/issues/3961 + tests/test_generator.py::TestGenerator::test_generate_nested_binary + ) + 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 +}