debian/0000755000000000000000000000000012237261361007171 5ustar debian/python3-sqlparse.prerm0000644000000000000000000000040512117431137013470 0ustar #!/bin/sh set -e case "$1" in remove|deconfigure) update-alternatives --remove sqlformat \ /usr/bin/sqlformat-3 ;; upgrade|failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/rules0000755000000000000000000000246712237256121010260 0ustar #!/usr/bin/make -f export PYBUILD_NAME=sqlparse export PYBUILD_TEST_PYTEST=1 export PYBUILD_TEST_ARGS=-v # Run 2to3 against tests files if testing against python3, clean up afterwards export PYBUILD_BEFORE_TEST=cp -R {dir}/tests {build_dir}; [ "{version.major}" = "2" ] || 2to3 -w {build_dir}/tests export PYBUILD_AFTER_TEST=rm -fR {build_dir}/tests # Disabling running tests for pypy for now due to missing dependencies #export PYBUILD_DISABLE_pypy=test %: dh $@ --with python2,python3,sphinxdoc --buildsystem pybuild override_dh_auto_clean: dh_auto_clean rm -rf docs/build debian/sqlformat-*.1 override_dh_installman: cp docs/sqlformat.1 debian/sqlformat-2.1 dh_installman -p python-sqlparse debian/sqlformat-2.1 cp docs/sqlformat.1 debian/sqlformat-3.1 dh_installman -p python3-sqlparse debian/sqlformat-3.1 #cp docs/sqlformat.1 debian/sqlformat-pypy.1 #dh_installman -p pypy-sqlparse debian/sqlformat-pypy.1 override_dh_auto_install: dh_auto_install #sed -i '1s/python/pypy/' debian/pypy-sqlparse/usr/lib/pypy/bin/sqlformat mv debian/python-sqlparse/usr/bin/sqlformat \ debian/python-sqlparse/usr/bin/sqlformat-2 mv debian/python3-sqlparse/usr/bin/sqlformat \ debian/python3-sqlparse/usr/bin/sqlformat-3 build: build-indep build-indep: docs/build/html build-arch: docs/build/html: cd docs && $(MAKE) html debian/compat0000644000000000000000000000000211526566757010410 0ustar 7 debian/copyright0000644000000000000000000000740012116663130011121 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: python-sqlparse Upstream-Contact: Andi Albrecht Source: http://code.google.com/p/python-sqlparse/downloads/list Files: * Copyright: 2009 Andi Albrecht License: New BSD License Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the authors nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: sqlparse/pipeline.py Copyright: 2011 Jesus Leganes License: The BSD 2-Clause License All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2010 Andriy Senkovych License: GPL-2 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/python-sqlparse.postinst0000644000000000000000000000072712117432626014156 0ustar #!/bin/sh set -e case "$1" in configure) update-alternatives --install \ /usr/bin/sqlformat sqlformat \ /usr/bin/sqlformat-2 10 \ --slave \ /usr/share/man/man1/sqlformat.1.gz sqlformat.1.gz \ /usr/share/man/man1/sqlformat-2.1.gz ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# debian/pypy-sqlparse.postinst0000644000000000000000000000074212236473754013644 0ustar #!/bin/sh set -e case "$1" in configure) update-alternatives --install \ /usr/bin/sqlformat sqlformat \ /usr/lib/pypy/bin/sqlformat 10 \ --slave \ /usr/share/man/man1/sqlformat.1.gz sqlformat.1.gz \ /usr/share/man/man1/sqlformat-pypy.1.gz ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# debian/python-sqlparse.install0000644000000000000000000000000012236473754013732 0ustar debian/control0000644000000000000000000000521212237256104010573 0ustar Source: sqlparse Section: python Priority: optional Maintainer: Andriy Senkovych Uploaders: Debian Python Modules Team Build-Depends: debhelper (>= 7.0.50~), dh-python, python-all (>= 2.6.5-13~), python3-all (>= 3.2), python-sphinx (>= 1.0.7+dfsg), python-pytest, python3-pytest, python-setuptools, python3-setuptools Standards-Version: 3.9.4 Homepage: http://code.google.com/p/python-sqlparse/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/sqlparse/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/sqlparse/trunk/ X-Python-Version: >= 2.5 X-Python3-Version: >= 3.2 Package: python-sqlparse Architecture: all Depends: ${misc:Depends}, ${python:Depends}, Breaks: ${python:Breaks} Suggests: python-sqlparse-doc (>= 0.1.6-1) Description: non-validating SQL parser for Python 2 Sqlparse is a library which provides support for parsing, splitting and customizable formatting of SQL statements in Python environment. . This package also provides sqlformat script which can be used as external SQL formatting utility. . This is the Python 2 version of the package. Package: python3-sqlparse Architecture: all Depends: ${misc:Depends}, ${python3:Depends} Suggests: python-sqlparse-doc (>= 0.1.6-1) Description: non-validating SQL parser for Python 3 Sqlparse is a library which provides support for parsing, splitting and customizable formatting of SQL statements in Python environment. . This package also provides sqlformat script which can be used as external SQL formatting utility. . This is the Python 3 version of the package. #Package: pypy-sqlparse #Architecture: all #Depends: ${misc:Depends}, ${pypy:Depends}, pypy #Suggests: python-sqlparse-doc (>= 0.1.6-1) #Description: non-validating SQL parser for PyPy # Sqlparse is a library which provides support for parsing, splitting and # customizable formatting of SQL statements in Python environment. # . # This package also provides sqlformat script which can be used as external # SQL formatting utility. # . # This is the PyPy version of the package. Package: python-sqlparse-doc Architecture: all Section: doc Replaces: python-sqlparse(<< 0.1.6-1) Breaks: python-sqlparse (<< 0.1.6-1) Depends: ${sphinxdoc:Depends}, ${misc:Depends} Description: documentation for non-validating SQL parser in Python Sqlparse is a library which provides support for parsing, splitting and customizable formatting of SQL statements in Python environment. . This package also provides sqlformat script which can be used as external SQL formatting utility. . This package contains HTML documentation for provided module. debian/python3-sqlparse.postinst0000644000000000000000000000073712117431137014236 0ustar #!/bin/sh set -e case "$1" in configure) update-alternatives --install \ /usr/bin/sqlformat sqlformat \ /usr/bin/sqlformat-3 10 \ --slave \ /usr/share/man/man1/sqlformat.1.gz sqlformat.1.gz \ /usr/share/man/man1/sqlformat-3.1.gz ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/watch0000644000000000000000000000012512116663130010214 0ustar version=3 https://pypi.python.org/pypi/sqlparse/ \ .*\/sqlparse-([0-9.]+).tar.gz debian/python-sqlparse.prerm0000644000000000000000000000040512117431137013405 0ustar #!/bin/sh set -e case "$1" in remove|deconfigure) update-alternatives --remove sqlformat \ /usr/bin/sqlformat-2 ;; upgrade|failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/source/0000755000000000000000000000000011770437347010503 5ustar debian/source/format0000644000000000000000000000001411526566755011716 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000461412237256071011052 0ustar sqlparse (0.1.10-1) unstable; urgency=low * New upstream release(Closes: #722198) * Switch to pybuild * debian/control: - Build-Depend on dh-python - Fix package descriptions -- Andriy Senkovych Wed, 23 Oct 2013 20:04:00 +0300 sqlparse (0.1.8-1) unstable; urgency=low [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. [ Andriy Senkovych ] * New upstream release * Upload to unstable * Add replaces/breaks relation to make separate sqlparse upgrade smoothly (Closes: #717972) * Bump Standards-Version to 3.9.4. Create empty build-arch target. -- Andriy Senkovych Wed, 07 Aug 2013 00:20:01 +0300 sqlparse (0.1.6-1) experimental; urgency=low * New upstream version. (Closes: #702197, #677982) * Bump Standards-Version to 3.9.4. No changes required. * debian/copyright: new contributor added. * Add python3 support using automatic 2to3 conversion. * Move documentation to its own package python-sqlparse-doc. * Add dependency on python-setuptools, python-pytest. * Use alternatives mechanism to provide /usr/bin/sqlformat. * Update project homepage and debian/watch. -- Andriy Senkovych Fri, 08 Mar 2013 21:15:06 +0200 sqlparse (0.1.4-1) unstable; urgency=low * New upstream version. -- Andriy Senkovych Sat, 21 Apr 2012 12:41:52 +0300 sqlparse (0.1.3-2) unstable; urgency=low [ Jakub Wilk ] * Bump minimum required python-sphinx version to 1.0.7+dfsg. [ Andriy Senkovych ] * Bump Standards-Version to 3.9.3. * Add doc-base documentation reference. -- Andriy Senkovych Mon, 27 Feb 2012 23:24:28 +0200 sqlparse (0.1.3-1) unstable; urgency=low * New upstream version. * Fix debian/watch. * Bump Standards-Version to 3.9.2. * Manpage migrated into upstream, using it. * Include HTML documentation generated with Sphinx rather than .rst files. * debian/copyright: switch to DEP-5 format. -- Andriy Senkovych Fri, 02 Sep 2011 20:23:43 +0300 sqlparse (0.1.2-2) unstable; urgency=low * Team upload. * Rebuild for Python 2.7 transition -- Piotr Ożarowski Sat, 23 Apr 2011 10:49:41 +0200 sqlparse (0.1.2-1) unstable; urgency=low * Initial release (Closes: #606104) -- Andriy Senkovych Mon, 06 Dec 2010 22:01:20 +0200 debian/pypy-sqlparse.prerm0000644000000000000000000000041412236473754013102 0ustar #!/bin/sh set -e case "$1" in remove|deconfigure) update-alternatives --remove sqlformat \ /usr/lib/pypy/bin/sqlformat ;; upgrade|failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/python-sqlparse-doc.docs0000644000000000000000000000002012116663130013743 0ustar docs/build/html debian/python-sqlparse-doc.doc-base0000644000000000000000000000062012116663130014476 0ustar Document: python-sqlparse Title: sqlparse: non-validating SQL parser module for Python Section: Programming/Python Author: Andi Albrecht Abstract: sqlparse is a non-validating SQL parser for Python. It provides support for parsing, splitting and formatting SQL statements. Format: HTML Index: /usr/share/doc/python-sqlparse-doc/html/index.html Files: /usr/share/doc/python-sqlparse-doc/html/*.html debian/python3-sqlparse.install0000644000000000000000000000000012236473754014015 0ustar