diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-02-24 23:53:19 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-02-24 23:53:19 +0000 |
| commit | 5da2cce6ffc6741eb06bca0e67c7fe2fe7675462 (patch) | |
| tree | 9771a07228d4b82e0a28168f73b2b854becf11ba /dev-python/sqlglot | |
| parent | 77af7503e1a9ced7d9d7559a2104e3c153599145 (diff) | |
| download | baldeagleos-repo-5da2cce6ffc6741eb06bca0e67c7fe2fe7675462.tar.gz baldeagleos-repo-5da2cce6ffc6741eb06bca0e67c7fe2fe7675462.tar.xz baldeagleos-repo-5da2cce6ffc6741eb06bca0e67c7fe2fe7675462.zip | |
Adding metadata
Diffstat (limited to 'dev-python/sqlglot')
| -rw-r--r-- | dev-python/sqlglot/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/sqlglot/sqlglot-29.0.1.ebuild | 67 |
2 files changed, 68 insertions, 0 deletions
diff --git a/dev-python/sqlglot/Manifest b/dev-python/sqlglot/Manifest index dd805b141075..7a6291f9093c 100644 --- a/dev-python/sqlglot/Manifest +++ b/dev-python/sqlglot/Manifest @@ -2,3 +2,4 @@ DIST sqlglot-27.24.2-crates.tar.xz 8973180 BLAKE2B f893ebe4b94d4c2ab94f8fa902e51 DIST sqlglot-27.29.0.tar.gz 5503507 BLAKE2B f9c92b8f287ca4c99c792d005e62846afd669ba27b5d09042de06c8c3fa5e46b21abdf5134cc81ae3ae2cb13d0a5997c56ac07c14e5fb938544d5dbc08c70632 SHA512 5fc7a8a81b39a2dba007b501f1f5c2de9fa1e74b39d44e1bea706491db1ead0329aa2fbfb7c4997a50458137af70d259a227a8662ac26ba2904dde2b66922bb1 DIST sqlglot-28.10.1.tar.gz 5739510 BLAKE2B 0de78bca49ed34067754b4a85476fb2c1c25223c1623144bd6bc1939ea8e2f300be77310842595342dd4d482ed81b73076b8c6e3b78696e98ce4556f7085bf16 SHA512 9427028c5cd1d99f9c904658d16359098109bb4ec502f4c3119265fbfc7cfa438203bb876b92efbb6041820d58d55d404b4dacba9b6018718486466e58801400 DIST sqlglot-28.7.0-crates.tar.xz 6575196 BLAKE2B 29a29117c0118312e425cadb4ad2b2051bb3e7740175fab28865740051916b636f161ad0aa1afc346575698156b595c05cf9eec217b1ddd92d2f8a8741ba1686 SHA512 205a6932d593c41439e8de6b694bb1206e554c92ee2647cdd0fa33cf5497f46bea2e67e5e6b3e4af336837e3bd2cf2c0b82dfd7dc99a283bf134ba62c413d2ff +DIST sqlglot-29.0.1.tar.gz 5760786 BLAKE2B e4824db4673118db7c3aefb1bebe3ea7677726844fb4bfc23599981184ac47404270cb22ce141be86c502129c4fa3d3f48d136e7044bd7094ed71761b1bc8c7c SHA512 819aa9f2816a4f6f262242f3e15656f10ce2f30fe0bec387c11994f2b77d51f9dd14552b2a59c8466800b14a725f42443aba231e62f9cf6bb704eaacfb70e423 diff --git a/dev-python/sqlglot/sqlglot-29.0.1.ebuild b/dev-python/sqlglot/sqlglot-29.0.1.ebuild new file mode 100644 index 000000000000..b6e08ee97bd7 --- /dev/null +++ b/dev-python/sqlglot/sqlglot-29.0.1.ebuild @@ -0,0 +1,67 @@ +# 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_{10..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/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+native-extensions" + +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + native-extensions? ( + >=dev-python/mypy-1.0[${PYTHON_USEDEP}] + dev-python/types-python-dateutil[${PYTHON_USEDEP}] + ) + test? ( + dev-python/pytz[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +python_compile() { + distutils-r1_python_compile + + if use native-extensions; then + # sqlglot has PKG-INFO but sqlglotc doesn't + local -x SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + cd sqlglotc || 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" + ) + + rm -rf sqlglot || die + epytest +} + +pkg_postinst() { + optfeature "simplifying timedelta expressions" dev-python/python-dateutil +} |
