diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-07-25 19:04:23 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-07-25 19:04:23 +0000 |
| commit | 212641b79a9cfd69679ee4e25c790a6561c4f295 (patch) | |
| tree | a3385a6228c1b058e68c0edd53c55c345fe50ac3 /dev-python/sqlglot | |
| parent | 63f89fc61343f3b5b644bcc75457f0e1a447aea2 (diff) | |
| download | baldeagleos-repo-212641b79a9cfd69679ee4e25c790a6561c4f295.tar.gz baldeagleos-repo-212641b79a9cfd69679ee4e25c790a6561c4f295.tar.xz baldeagleos-repo-212641b79a9cfd69679ee4e25c790a6561c4f295.zip | |
Adding metadata
Diffstat (limited to 'dev-python/sqlglot')
| -rw-r--r-- | dev-python/sqlglot/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/sqlglot/sqlglot-27.3.1.ebuild | 179 |
2 files changed, 181 insertions, 0 deletions
diff --git a/dev-python/sqlglot/Manifest b/dev-python/sqlglot/Manifest index 7162cdd44577..cbd0499fcfc6 100644 --- a/dev-python/sqlglot/Manifest +++ b/dev-python/sqlglot/Manifest @@ -4,3 +4,5 @@ DIST sqlglot-27.1.0-crates.tar.xz 8859792 BLAKE2B abb2051b392c53dc3caa705ddd8df7 DIST sqlglot-27.1.0.tar.gz 5379716 BLAKE2B 12696cf65a0b7ead76ead388c38dfd49e2a886fa8d623df8ffbb569be2eafe6d1a5c302035137f2dac0c7f93093bf562577e53e7a4878702934e8f7ddbfcd294 SHA512 d84ad6868fa01bd0e10333396978c1e2c103c46dcd319e0fdefbba4159f2c601e14d53a41701ec91eaa7aaca767ba791485b31cea0af10a93bcbcb36c1c4aa3f DIST sqlglot-27.2.0-crates.tar.xz 8859792 BLAKE2B abb2051b392c53dc3caa705ddd8df7076819a26dcdaa89fa3760559a79578db01e86943c2d0ffb8006263c2dca3aa50d20023eae9d772f8ebd12a8a2d3266cdd SHA512 7cca439a06433a62bcd4a2af33d240f46e9b5240cc158edbc654efb37a464aa0f1ebbe9749b2fc6352127b4809b63af2341fac6240050c414e578ae99444ba5d DIST sqlglot-27.2.0.tar.gz 5389495 BLAKE2B 4d64d745b291e87bfaad61fe5331169dc953b7da04f9ccc89521cb01a44172ce823b64c48ab60ea3cb823a24338513009cc17bfe6baf4a0de942bee14d8ba3de SHA512 a04b947ddf1b5841615afe5c13db4aca1210398e1500dd507ee4c6e6da85dbf721c760e934d97e8d9021eade001580f80ccaea9a9ed2f15d9d413d21302971b1 +DIST sqlglot-27.3.1-crates.tar.xz 8859792 BLAKE2B abb2051b392c53dc3caa705ddd8df7076819a26dcdaa89fa3760559a79578db01e86943c2d0ffb8006263c2dca3aa50d20023eae9d772f8ebd12a8a2d3266cdd SHA512 7cca439a06433a62bcd4a2af33d240f46e9b5240cc158edbc654efb37a464aa0f1ebbe9749b2fc6352127b4809b63af2341fac6240050c414e578ae99444ba5d +DIST sqlglot-27.3.1.tar.gz 5394397 BLAKE2B d9620f38a2b25b79253d4b5d3bab957f13ca3590b401da984fdfe8066cb66bb5fc91fa35e29d4c784966e9d8a165c403b3ebcb796b4d6ae9274991c2edd1b619 SHA512 345555074f8011b303eff15eb3e7e0acedf4c7d84f59090bf29d886032589ee979960c0da197d758c909443899637f8b750c7dd09011b1acb57aba7f59fbbaff diff --git a/dev-python/sqlglot/sqlglot-27.3.1.ebuild b/dev-python/sqlglot/sqlglot-27.3.1.ebuild new file mode 100644 index 000000000000..aa0c5230423e --- /dev/null +++ b/dev-python/sqlglot/sqlglot-27.3.1.ebuild @@ -0,0 +1,179 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" + aho-corasick@1.1.3 + anes@0.1.6 + anstyle@1.0.10 + autocfg@1.1.0 + bumpalo@3.16.0 + cast@0.3.0 + cfg-if@1.0.0 + ciborium-io@0.2.2 + ciborium-ll@0.2.2 + ciborium@0.2.2 + clap@4.5.23 + clap_builder@4.5.23 + clap_lex@0.7.4 + criterion-plot@0.5.0 + criterion@0.5.1 + crossbeam-deque@0.8.6 + crossbeam-epoch@0.9.18 + crossbeam-utils@0.8.21 + crunchy@0.2.2 + either@1.13.0 + half@2.4.1 + heck@0.5.0 + hermit-abi@0.4.0 + indoc@2.0.4 + is-terminal@0.4.13 + itertools@0.10.5 + itoa@1.0.14 + js-sys@0.3.76 + libc@0.2.169 + log@0.4.22 + memchr@2.7.4 + memoffset@0.9.0 + num-traits@0.2.19 + once_cell@1.19.0 + oorandom@11.1.4 + plotters-backend@0.3.7 + plotters-svg@0.3.7 + plotters@0.3.7 + portable-atomic@1.9.0 + proc-macro2@1.0.89 + pyo3-build-config@0.25.0 + pyo3-ffi@0.25.0 + pyo3-macros-backend@0.25.0 + pyo3-macros@0.25.0 + pyo3@0.25.0 + quote@1.0.37 + rayon-core@1.12.1 + rayon@1.10.0 + regex-automata@0.4.9 + regex-syntax@0.8.5 + regex@1.11.1 + rustc-hash@2.1.0 + ryu@1.0.18 + same-file@1.0.6 + serde@1.0.216 + serde_derive@1.0.216 + serde_json@1.0.133 + syn@2.0.87 + target-lexicon@0.13.2 + tinytemplate@1.2.1 + unicode-ident@1.0.12 + unindent@0.2.3 + walkdir@2.5.0 + wasm-bindgen-backend@0.2.99 + wasm-bindgen-macro-support@0.2.99 + wasm-bindgen-macro@0.2.99 + wasm-bindgen-shared@0.2.99 + wasm-bindgen@0.2.99 + web-sys@0.3.76 + winapi-util@0.1.9 + windows-sys@0.52.0 + windows-sys@0.59.0 + windows-targets@0.52.6 + windows_aarch64_gnullvm@0.52.6 + windows_aarch64_msvc@0.52.6 + windows_i686_gnu@0.52.6 + windows_i686_gnullvm@0.52.6 + windows_i686_msvc@0.52.6 + windows_x86_64_gnu@0.52.6 + windows_x86_64_gnullvm@0.52.6 + windows_x86_64_msvc@0.52.6 +" + +CARGO_OPTIONAL=1 +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..14} ) + +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}] + ) +" + +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 + local DISTUTILS_UPSTREAM_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 +} |
