summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/changelog6
-rw-r--r--debian/control26
-rw-r--r--debian/copyright31
-rwxr-xr-xdebian/rules9
-rw-r--r--debian/source/format1
-rw-r--r--debian/watch3
6 files changed, 76 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..a0ebf23
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+sqlglot (6.0.4-1) sid; urgency=medium
+
+ * Initial upload to sid (Closes: #1019891),
+ required for mycli.
+
+ -- Daniel Baumann <daniel.baumann@progress-linux.org> Thu, 15 Sep 2022 18:48:01 +0200
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..618b149
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,26 @@
+Source: sqlglot
+Section: python
+Priority: optional
+Maintainer: Daniel Baumann <daniel.baumann@progress-linux.org>
+Build-Depends:
+ debhelper-compat (= 13),
+ dh-sequence-python3,
+ python3-all,
+ python3-setuptools,
+Rules-Requires-Root: no
+Standards-Version: 4.6.1
+Homepage: https://github.com/tobymao/sqlglot
+Vcs-Browser: https://git.progress-linux.org/users/daniel.baumann/debian/packages/sqlglot
+Vcs-Git: https://git.progress-linux.org/users/daniel.baumann/debian/packages/sqlglot
+
+Package: python3-sqlglot
+Section: python
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${python3:Depends},
+Description: SQL parser, transpiler, and optimizer for Python
+ 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, and BigQuery. It aims to read a wide variety of SQL inputs and
+ output syntactically correct SQL in the targeted dialects.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..3385d07
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: SQLGlot
+Upstream-Contact: Toby Mao <toby.mao@gmail.com>
+Source: https://github.com/tobymao/sqlglot
+
+Files: *
+Copyright: 2021-2022 Toby Mao <toby.mao@gmail.com>
+License: MIT
+
+Files: debian/*
+Copyright: 2022 Daniel Baumann <daniel.baumann@progress-linux.org>
+License: MIT
+
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ff1d45a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=sqlglot
+
+%:
+ dh ${@} --buildsystem=pybuild
+
+override_dh_auto_test:
+ # disabled
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..b8ac21c
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/sqlglot-$1\.tar\.gz/ \
+https://github.com/tobymao/sqlglot/tags .*/v?(\d\S+)\.tar\.gz