diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-11-19 03:03:00 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-11-19 03:03:00 +0000 |
commit | f2e359c456b051f95efc92e21299d55a302e58ed (patch) | |
tree | 9d844c8fa1373b6f4244c1cfbe55eea7cdf62701 /dev-python/sqlglot | |
parent | f9f6fa91738181ebe9aca71b75d157d8b5df5335 (diff) |
gentoo auto-resync : 19:11:2024 - 03:03:00
Diffstat (limited to 'dev-python/sqlglot')
-rw-r--r-- | dev-python/sqlglot/Manifest | 2 | ||||
-rw-r--r-- | dev-python/sqlglot/sqlglot-25.31.3.ebuild | 113 |
2 files changed, 115 insertions, 0 deletions
diff --git a/dev-python/sqlglot/Manifest b/dev-python/sqlglot/Manifest index cc87870fa201..ca6093322156 100644 --- a/dev-python/sqlglot/Manifest +++ b/dev-python/sqlglot/Manifest @@ -30,6 +30,7 @@ DIST scopeguard-1.2.0.crate 11619 BLAKE2B 8b7e9ed6cefef9ee55407fb9690d57a2a98bb9 DIST smallvec-1.11.2.crate 34801 BLAKE2B 58645e99db8f02db64d02c75860c7ea41836c427c03ee3b0b23365e73a406e4fd6ac312bf13fc5faef8bb6111c10fcfd5f839d5b3686e9b34d1626f8469fc327 SHA512 5cfb427c3b99b0dbd71f6154ed899abcde9d7d2992977ac7b2ef3a4c3ff51e4efafd133071a69609b4ed6cb269bdc26b79eb72e1988f10dfcaef8185d950cd1d DIST sqlglot-25.30.0.tar.gz 19626939 BLAKE2B 25c0ad4146ceb8718c7725bd2fa24e0d012deb6db6ba64801561ecf0f88ec2bb6b9d8a695d63dea188c26a2d8a411d197dd19b02829266b3780a6a9cc3e3c1f7 SHA512 545b04a83fc68388655cd47c73efe1cc41f606a058f4d33c71ffc5a4c531fa675ba1439c3ffa271117bf5cd63039bce828ce5ee228e30f27fa5d9183e8e02c9f DIST sqlglot-25.31.2.tar.gz 19679402 BLAKE2B 3ea776e3d76a9cab3fb1ed80fb1a5b63220ccc3cda9b6f6c0573915659482e61eca29ba49ad593226cb4ef75643535172923212c7c19dfa5dc9e3d8abc428628 SHA512 a0cac8161074460a51031d80f93eb7e58ac3aec5ab5a9397ebd48ab7b699d6faca1877edc0624e91d4c2e88d8e210c366f107a2fbe5f71ae56930f249fef7928 +DIST sqlglot-25.31.3.tar.gz 19677473 BLAKE2B 6e72b192a7782495ff344b7c018cde58f11bb071f470db9149f31a38174a15d3b1d64cef90733209dd08d791ffab2a0ae263c28b9ec4ba5941ce89ed5758dbb8 SHA512 47acee570affd5eb8ee62a67812a26977598a882b9b261a53a07b8af9b58d74e5b4b8261271d3084497aba660ffe541d56f3503fa946e55b309cefedd609a445 DIST syn-2.0.41.crate 246016 BLAKE2B 9d389f2e2a0acb4c84c309456e8ffcc88c5d4d541535ed136832d7a6054dde45a598bb68e8a6f3062ca2a96e1ceae947d54b3aec9bad65b0c51d6733aa6c80db SHA512 6bbaf69ca783025dfb81ac3612ac60bfbed31b2d87792909b35c12892dadebdaff2ddf9463105e536b671dce5870610ab90fe29471284bbd3014dca8d6993f1a DIST syn-2.0.87.crate 278076 BLAKE2B 93385f64103fdb482bec34c7912474ae7a5935948715e6eb9a54907e0db5c39f089f6cd393bab33c935c59a1bbb0f4099431f206343811c1a450554d96a35756 SHA512 bcfff545d6dfefd81e09f8f30a86bdd85759b3a7d4093ef3365ed02718e10dbd604c52b94c9d7fa955d339fdc5b6c079940c6f345b5a48c52b5c8607794ca6f2 DIST target-lexicon-0.12.12.crate 25156 BLAKE2B f3803596c75f6c89438592a1176c3748fc2c0524d7d50a20056de1cd26d40c572b05bafcdf6dd702752864bea37c8b4f28f96dadc12a5b3bb1d279b25e489f85 SHA512 6147295c43ba1b7b087a3c5ab51534b2985e4e77e5e15687978cfb9d07e21c4fd9bc7191576d6cabd268d08a44dc733c4a957e59dba8b948c2055d8bb433aeca @@ -46,4 +47,5 @@ DIST windows_x86_64_gnullvm-0.48.5.crate 418486 BLAKE2B 12a2199d434617c1df1a839e DIST windows_x86_64_msvc-0.48.5.crate 798412 BLAKE2B 8abc0721e2fb337fe17c91d278947d36122d9045b839ba0cf3e690202d242265b676f23cc301da5f9d98c56ca4ecb76f7d6f072ee71bf986a1deca87020b90e5 SHA512 fa1c5cd14ca2ff0082e2504cf59d317dc4dc6f7138d35c12f95d4476a9c13d8b7f5537d0ee251eee7c99411ad31b22263171b7fbd391daa5d3ea3488ceaa61a0 EBUILD sqlglot-25.30.0.ebuild 2728 BLAKE2B 7ce2125a67e84cf9cd16eab6e7c0f9f968cba6d97679b99f63e55bb2e11f839e71007cc30975dcbd8e3c948b1279814d86273c6d155fd9adaa469b01175e7335 SHA512 a5f81d1d02fbb0482dd0cab5df4432a16a73e56fc0bc1cfd8ac96899a50623f1e16309079cbc6fadb8e4be9e60e8048a41999deb278dbb58f4f0ed77abe5076b EBUILD sqlglot-25.31.2.ebuild 2396 BLAKE2B 38cff7b615cff2d499692ba41b76cba7dc8e2941b0783d0b8095a69af6b092ff04f8a7f756f29c0e525e4a4c8f09f6f4d19f30e4d0117dc1da8101ea9c25cbd8 SHA512 f6602ea20b792e9546d76163887ad6b3c4f479dbea68761bb3ea16b7095b61fe649ad70f5465b8894be984059b1656c12662b0cc10bacbd2a1cef1cc67fcb27c +EBUILD sqlglot-25.31.3.ebuild 2396 BLAKE2B 38cff7b615cff2d499692ba41b76cba7dc8e2941b0783d0b8095a69af6b092ff04f8a7f756f29c0e525e4a4c8f09f6f4d19f30e4d0117dc1da8101ea9c25cbd8 SHA512 f6602ea20b792e9546d76163887ad6b3c4f479dbea68761bb3ea16b7095b61fe649ad70f5465b8894be984059b1656c12662b0cc10bacbd2a1cef1cc67fcb27c MISC metadata.xml 611 BLAKE2B 10bf684677182565c9932d51ed9b3b9c80d376d6db945bd7b0dd0d9a19a85dc0d10cb169ff2048ae5f7f73d0f438d259b6231c13c525b5374ec99377f4ffdd10 SHA512 2b26d0f77962807052b94ad78addcfdce9859042af3be34df267dc6e70b6231dd779563935fd21955cd8646fd0cce3fee8c939387ac8056194a0b777743dd2ae diff --git a/dev-python/sqlglot/sqlglot-25.31.3.ebuild b/dev-python/sqlglot/sqlglot-25.31.3.ebuild new file mode 100644 index 000000000000..27ddd9c3901d --- /dev/null +++ b/dev-python/sqlglot/sqlglot-25.31.3.ebuild @@ -0,0 +1,113 @@ +# Copyright 2023-2024 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_{10..13} ) + +CARGO_OPTIONAL=1 +CRATES=" + autocfg@1.1.0 + cfg-if@1.0.0 + heck@0.5.0 + indoc@2.0.4 + libc@0.2.150 + memoffset@0.9.0 + once_cell@1.19.0 + portable-atomic@1.9.0 + proc-macro2@1.0.89 + pyo3-build-config@0.22.6 + pyo3-ffi@0.22.6 + pyo3-macros-backend@0.22.6 + pyo3-macros@0.22.6 + pyo3@0.22.6 + quote@1.0.37 + syn@2.0.87 + target-lexicon@0.12.16 + unicode-ident@1.0.12 + unindent@0.2.3 +" + +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? ( + ${CARGO_CRATE_URIS} + ) +" + +LICENSE="MIT" +LICENSE+=" native-extensions? (" +# Dependent crate licenses +LICENSE+=" 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 +} |