debian/0000755000000000000000000000000012147350256007173 5ustar debian/control0000644000000000000000000000223712147350114010573 0ustar Source: metaconfig Section: utils Priority: optional Maintainer: Alastair McKinstry Build-Depends: debhelper (>= 9), python-all, python-setuptools, python3-all, python3-setuptools Standards-Version: 3.9.4 X-Python-Version: >= 2.6 X-Python3-Version: >= 3.2 Homepage: http://pypi.python.org/pypi/metaconfig Package: python-metaconfig Section: python Architecture: all Depends: ${python:Depends},${misc:Depends}, python-configparser Description: Python ConfigParser bootstrapping library Metaconfig is a library for centralising Python's ConfigParser files. It is inspired by the logging module where it is increadibly easy to start writing code that depends on logging whilst deferring how log messages will be handled until later. Package: python3-metaconfig Section: python Architecture: all Depends: ${python3:Depends},${misc:Depends} Description: Python ConfigParser bootstrapping library (Python3) Metaconfig is a library for centralising Python's ConfigParser files. It is inspired by the logging module where it is increadibly easy to start writing code that depends on logging whilst deferring how log messages will be handled until later. debian/watch0000644000000000000000000000031712147347741010232 0ustar version=3 http://pypi.python.org/pypi/metaconfig \ (?:.*/|.*=|)metaconfig[\-\._](\d\S*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz)(?:/\S*)? # Bart Martens Tue, 12 Mar 2013 17:22:14 +0000 debian/source/0000755000000000000000000000000011663121421010463 5ustar debian/source/format0000644000000000000000000000001411663121421011671 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012142706251010615 5ustar debian/patches/series0000644000000000000000000000001612142705765012040 0ustar python3.patch debian/patches/python3.patch0000644000000000000000000000272512142706236013253 0ustar Author: Alastair McKinstry Description: Changes needed for python3. Use configparser backport for Debian. Last-Updated: 2013-05-09 Forwarded: no Index: metaconfig-0.1.4a1/metaconfig/__init__.py =================================================================== --- metaconfig-0.1.4a1.orig/metaconfig/__init__.py 2011-11-22 23:06:42.000000000 +0000 +++ metaconfig-0.1.4a1/metaconfig/__init__.py 2013-05-09 12:44:47.000000000 +0100 @@ -11,7 +11,7 @@ """ import sys, re, os -from ConfigParser import ConfigParser +from configparser import ConfigParser from metaconfig.mconf import MetaConfig, Error @@ -53,7 +53,7 @@ An exception will be raised if metaconfig has already been initialised. """ - from StringIO import StringIO + from io import StringIO mconf = ConfigParser() mconf.readfp(StringIO(config_str)) init_from_config(mconf) Index: metaconfig-0.1.4a1/metaconfig/mconf.py =================================================================== --- metaconfig-0.1.4a1.orig/metaconfig/mconf.py 2011-11-22 23:06:42.000000000 +0000 +++ metaconfig-0.1.4a1/metaconfig/mconf.py 2013-05-09 12:45:30.000000000 +0100 @@ -39,7 +39,7 @@ """ import sys -import ConfigParser +import configparser import re import logging @@ -49,7 +49,7 @@ class Error(Exception): pass -DEFAULT_CONFIG_PARSER = ConfigParser.ConfigParser +DEFAULT_CONFIG_PARSER = configparser.ConfigParser class MetaConfig(object): def __init__(self): debian/python3-metaconfig.install0000644000000000000000000000002212142703571014270 0ustar /usr/lib/python3* debian/rules0000755000000000000000000000100612142703771010247 0ustar #!/usr/bin/make -f # The magic debhelper rule: %: dh $@ --with python2,python3 export DH_VERBOSE=1 override_dh_auto_clean: dh_auto_clean rm -rf build rm -rf *.egg-info PYTHON2=$(shell pyversions -vr) PYTHON3=$(shell py3versions -vr) build-python%: python$* setup.py build override_dh_auto_build: $(PYTHON3:%=build-python%) dh_auto_build install-python%: python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb override_dh_auto_install: $(PYTHON3:%=install-python%) dh_auto_install debian/compat0000644000000000000000000000000212142703431010361 0ustar 9 debian/changelog0000644000000000000000000000147712147350241011050 0ustar metaconfig (0.1.4a1-3) unstable; urgency=low * Include watch file from Bart Martens. * Packages are Arch:all not Arch:any. Closes: #709396. * Don't depend on python-*-dev packages; not needed. -- Alastair McKinstry Thu, 23 May 2013 09:14:29 +0100 metaconfig (0.1.4a1-2) unstable; urgency=low * Add python3-metaconfig binary package for python3 support. * Add patch for python3; dependency on python-configparser for python-metaconfig. * Move to dh_compat 9, Standards-Version: 3.9.4 * Clean better in rules so we can do double-builds. -- Alastair McKinstry Thu, 09 May 2013 12:21:51 +0100 metaconfig (0.1.4a1-1) unstable; urgency=low * Initial release. (Closes: #649690) -- Alastair McKinstry Thu, 17 Nov 2011 10:09:50 +0000 debian/copyright0000644000000000000000000000310511663121421011115 0ustar This package was debianized by Alastair McKinstry Thursday, 17 Sep 2011 19:12:17 +0100 It was downloaded from http://pypi.python.org/pypi/metaconfig Upstream Author: Stephen Pascoe (stephen.pascoe@stfc.ac.uk) Files: * Copyright: 2011, Science & Technology Facilities Council (STFC) License: BSD License: BSD-2-Clause 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. debian/python-metaconfig.install0000644000000000000000000000002212142703413014200 0ustar /usr/lib/python2*