From 4cc179acccc003ac0a711b58cda25604804315c60a1aacf3491ff25703e71b77 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 13 Oct 2022 09:35:27 +0000 Subject: [PATCH] Accepting request 1010433 from home:glaubitz:branches:devel:languages:python - Initial build + Version 7.0.0 OBS-URL: https://build.opensuse.org/request/show/1010433 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlglot?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + python-sqlglot.changes | 5 ++++ python-sqlglot.spec | 60 ++++++++++++++++++++++++++++++++++++++++++ sqlglot-7.0.0.tar.gz | 3 +++ 5 files changed, 92 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-sqlglot.changes create mode 100644 python-sqlglot.spec create mode 100644 sqlglot-7.0.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-sqlglot.changes b/python-sqlglot.changes new file mode 100644 index 0000000..5db406f --- /dev/null +++ b/python-sqlglot.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Oct 13 08:37:53 UTC 2022 - John Paul Adrian Glaubitz + +- Initial build + + Version 7.0.0 diff --git a/python-sqlglot.spec b/python-sqlglot.spec new file mode 100644 index 0000000..16c499d --- /dev/null +++ b/python-sqlglot.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-sqlglot +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-sqlglot +Version: 7.0.0 +Release: 0 +Summary: An easily customizable SQL parser and transpiler +License: MIT +URL: https://github.com/tobymao/sqlglot +Source: https://files.pythonhosted.org/packages/source/s/sqlglot/sqlglot-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildArch: noarch +%python_subpackages + +%description +SQLGlot is a no dependency Python SQL parser, transpiler, and optimizer. It can be +used to format SQL or translate between different dialects like DuckDB, Presto, +Spark, Snowflake, and BigQuery. It aims to read a wide variety of SQL inputs and +output syntactically correct SQL in the targeted dialects. + +It is a very comprehensive generic SQL parser with a robust test suite. It is also +quite performant while being written purely in Python. You can easily customize the +parser, analyze queries, traverse expression trees, and programmatically build SQL. +Syntax errors are highlighted and dialect incompatibilities can warn or raise +depending on configurations. + +%prep +%setup -q -n sqlglot-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/* + +%changelog diff --git a/sqlglot-7.0.0.tar.gz b/sqlglot-7.0.0.tar.gz new file mode 100644 index 0000000..149c86e --- /dev/null +++ b/sqlglot-7.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09bd4055f2cdfe1e8e3ac3e16f46ccd555f7beb2742092bb70f5c702ab0c1718 +size 112825