# HG changeset patch # User Paul Boddie # Date 1237509051 -3600 # Node ID 9354efdfef9be43c4acfb19999fd28372cfd58de # Parent b3c94ec05995a34c64457874d78da703ecb7f640 Added packaging infrastructure. Updated release and copyright information. diff -r b3c94ec05995 -r 9354efdfef9b PKG-INFO --- a/PKG-INFO Mon Aug 13 00:34:53 2007 +0200 +++ b/PKG-INFO Fri Mar 20 01:30:51 2009 +0100 @@ -1,12 +1,12 @@ Metadata-Version: 1.1 Name: sqlliterals -Version: 0.2 +Version: 0.2.1 Author: Paul Boddie Author-email: paul at boddie org uk Maintainer: Paul Boddie Maintainer-email: paul at boddie org uk Home-page: http://www.python.org/pypi/sqlliterals -Download-url: http://www.boddie.org.uk/python/downloads/sqlliterals-0.2.tar.gz +Download-url: http://www.boddie.org.uk/python/downloads/sqlliterals-0.2.1.tar.gz Summary: SQL statement tokenisation for the detection of literal regions. License: LGPL Description: The sqlliterals distribution consists of a package containing two different diff -r b3c94ec05995 -r 9354efdfef9b README.txt --- a/README.txt Mon Aug 13 00:34:53 2007 +0200 +++ b/README.txt Fri Mar 20 01:30:51 2009 +0100 @@ -35,6 +35,11 @@ pyparsing Tested with 1.2 +New in sqlliterals 0.2.1 (Changes since sqlliterals 0.2) +-------------------------------------------------------- + + * Added packaging infrastructure and setup script. + New in sqlliterals 0.2 (Changes since sqlliterals 0.1) ------------------------------------------------------ @@ -47,7 +52,9 @@ Update the sqlliterals/__init__.py __version__ attribute. Update the release notes (see above). +Update the package information. Check the release information in the PKG-INFO file. +Check the setup.py file. Tag, export. Archive, upload. Update PyPI entry. diff -r b3c94ec05995 -r 9354efdfef9b docs/COPYING.txt --- a/docs/COPYING.txt Mon Aug 13 00:34:53 2007 +0200 +++ b/docs/COPYING.txt Fri Mar 20 01:30:51 2009 +0100 @@ -1,7 +1,7 @@ Licence Agreement for sqlliterals --------------------------------- -Copyright (C) 2007 Paul Boddie +Copyright (C) 2007, 2009 Paul Boddie This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff -r b3c94ec05995 -r 9354efdfef9b packages/ubuntu-gutsy/python-desktop/debian/changelog --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/ubuntu-gutsy/python-desktop/debian/changelog Fri Mar 20 01:30:51 2009 +0100 @@ -0,0 +1,5 @@ +sqlliterals (0.2.1-0ubuntu1) gutsy; urgency=low + + * Added packaging infrastructure and setup script. + + -- Paul Boddie Sun, 18 Jan 2009 18:42:07 +0100 diff -r b3c94ec05995 -r 9354efdfef9b packages/ubuntu-gutsy/python-desktop/debian/compat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/ubuntu-gutsy/python-desktop/debian/compat Fri Mar 20 01:30:51 2009 +0100 @@ -0,0 +1,1 @@ +5 diff -r b3c94ec05995 -r 9354efdfef9b packages/ubuntu-gutsy/python-desktop/debian/control --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/ubuntu-gutsy/python-desktop/debian/control Fri Mar 20 01:30:51 2009 +0100 @@ -0,0 +1,16 @@ +Source: sqlliterals +Section: python +Priority: optional +Maintainer: Paul Boddie +Build-Depends: debhelper (>= 5.0.38), python-all-dev (>= 2.3.5-11), python-central (>= 0.5.6) +XS-Python-Version: all +Standards-Version: 3.7.2.1 + +Package: python-sqlliterals +Architecture: all +Depends: ${python:Depends}, python-pyparsing (>= 1.4.2-1.1ubuntu1) +XB-Python-Version: ${python:Versions} +Description: SQL statement tokenisation for the detection of literal regions + The sqlliterals distribution consists of a package containing two different + implementations of SQL statement tokenisation for the detection of literal + regions in such statements. diff -r b3c94ec05995 -r 9354efdfef9b packages/ubuntu-gutsy/python-desktop/debian/copyright --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/ubuntu-gutsy/python-desktop/debian/copyright Fri Mar 20 01:30:51 2009 +0100 @@ -0,0 +1,32 @@ +Package creator: + + Paul Boddie + +The origin of the package is: + + http://www.python.org/pypi/sqlliterals + +Package author: + + Paul Boddie + +Copyright: + +Licence Agreement for sqlliterals +--------------------------------- + +Copyright (C) 2007, 2009 Paul Boddie + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library 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 +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA diff -r b3c94ec05995 -r 9354efdfef9b packages/ubuntu-gutsy/python-desktop/debian/docs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/ubuntu-gutsy/python-desktop/debian/docs Fri Mar 20 01:30:51 2009 +0100 @@ -0,0 +1,2 @@ +README.txt +docs diff -r b3c94ec05995 -r 9354efdfef9b packages/ubuntu-gutsy/python-desktop/debian/rules --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/ubuntu-gutsy/python-desktop/debian/rules Fri Mar 20 01:30:51 2009 +0100 @@ -0,0 +1,66 @@ +#!/usr/bin/make -f +# A debian/rules file using python-central. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export DH_COMPAT=5 + +PYVERS=$(shell pyversions -vr) + +build: build-stamp + +build-stamp: $(PYVERS:%=build-python%) build-python-scripts + touch $@ + +build-python%: + python$* setup.py build_py + touch $@ + +build-python-scripts: + python setup.py build_scripts + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f *-stamp + rm -rf build + find . -name '*.py[co]' | xargs rm -f + dh_clean + +install: build install-prereq $(PYVERS:%=install-python%) install-python-scripts + # Script fixing would appear here. + +install-prereq: + dh_testdir + dh_testroot + dh_clean -k + +install-python%: + python$* setup.py install_lib --install-dir $(CURDIR)/debian/python-sqlliterals/usr/lib/python$*/site-packages + +install-python-scripts: + python setup.py install_scripts --install-dir $(CURDIR)/debian/python-sqlliterals/usr/bin + +# Build architecture-independent files here. + +binary-indep: install + #tools/apidocs.sh + dh_testdir -i + dh_testroot -i + dh_pycentral -i + dh_installdocs -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. + +binary-arch: + # Empty rule for this package. + +binary: binary-indep binary-arch +.PHONY: build clean binary-arch binary-indep binary install diff -r b3c94ec05995 -r 9354efdfef9b setup.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/setup.py Fri Mar 20 01:30:51 2009 +0100 @@ -0,0 +1,15 @@ +#! /usr/bin/env python + +from distutils.core import setup + +import sqlliterals + +setup( + name = "sqlliterals", + description = "SQL statement tokenisation for the detection of literal regions.", + author = "Paul Boddie", + author_email = "paul@boddie.org.uk", + url = "http://www.python.org/pypi/sqlliterals", + version = sqlliterals.__version__, + packages = ["sqlliterals"] + ) diff -r b3c94ec05995 -r 9354efdfef9b sqlliterals/__init__.py --- a/sqlliterals/__init__.py Mon Aug 13 00:34:53 2007 +0200 +++ b/sqlliterals/__init__.py Fri Mar 20 01:30:51 2009 +0100 @@ -3,7 +3,7 @@ """ SQL statement tokenisation for the detection of literal regions. -Copyright (C) 2007 Paul Boddie +Copyright (C) 2007, 2009 Paul Boddie This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -20,6 +20,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA """ -__version__ = "0.2" +__version__ = "0.2.1" # vim: tabstop=4 expandtab shiftwidth=4