[Python-modules-commits] r28933 - in packages/python-astor/trunk (11 files)
tianon-guest at users.alioth.debian.org
tianon-guest at users.alioth.debian.org
Fri May 16 16:52:49 UTC 2014
Date: Friday, May 16, 2014 @ 16:52:48
Author: tianon-guest
Revision: 28933
Initial packaging
Added:
packages/python-astor/trunk/debian/
packages/python-astor/trunk/debian/.gitignore
packages/python-astor/trunk/debian/Dockerfile
packages/python-astor/trunk/debian/changelog
packages/python-astor/trunk/debian/compat
packages/python-astor/trunk/debian/control
packages/python-astor/trunk/debian/copyright
packages/python-astor/trunk/debian/rules
packages/python-astor/trunk/debian/source/
packages/python-astor/trunk/debian/source/format
packages/python-astor/trunk/debian/watch
Added: packages/python-astor/trunk/debian/.gitignore
===================================================================
--- packages/python-astor/trunk/debian/.gitignore (rev 0)
+++ packages/python-astor/trunk/debian/.gitignore 2014-05-16 16:52:48 UTC (rev 28933)
@@ -0,0 +1,10 @@
+*.debhelper.log
+*.postinst.debhelper
+*.postrm.debhelper
+*.preinst.debhelper
+*.prerm.debhelper
+*.substvars
+files
+tmp/
+python-astor/
+python3-astor/
Added: packages/python-astor/trunk/debian/Dockerfile
===================================================================
--- packages/python-astor/trunk/debian/Dockerfile (rev 0)
+++ packages/python-astor/trunk/debian/Dockerfile 2014-05-16 16:52:48 UTC (rev 28933)
@@ -0,0 +1,18 @@
+FROM tianon/debian-devel
+
+# start by adding just "debian/control" so we can get mk-build-deps with maximum caching
+ADD control /usr/src/python-astor/debian/
+WORKDIR /usr/src/python-astor
+
+# get all the build deps of _this_ package in a nice repeatable way
+RUN apt-get update && mk-build-deps -irt'apt-get --no-install-recommends -yq' debian/control
+
+# need our debian/ directory to compile _this_ package
+ADD . /usr/src/python-astor/debian
+
+# go download and unpack our upstream source
+RUN uscan --force-download --verbose --download-current-version
+RUN origtargz --unpack
+
+# tianon is _really_ lazy, and likes a preseeded bash history
+RUN echo 'origtargz --unpack && dpkg-buildpackage -us -uc && lintian -EvIL+pedantic' >> "$HOME/.bash_history"
Added: packages/python-astor/trunk/debian/changelog
===================================================================
--- packages/python-astor/trunk/debian/changelog (rev 0)
+++ packages/python-astor/trunk/debian/changelog 2014-05-16 16:52:48 UTC (rev 28933)
@@ -0,0 +1,5 @@
+python-astor (0.3-1) UNRELEASED; urgency=medium
+
+ * Initial release (Closes: #748372).
+
+ -- Tianon Gravi <admwiggin at gmail.com> Thu, 15 May 2014 10:23:30 -0600
Added: packages/python-astor/trunk/debian/compat
===================================================================
--- packages/python-astor/trunk/debian/compat (rev 0)
+++ packages/python-astor/trunk/debian/compat 2014-05-16 16:52:48 UTC (rev 28933)
@@ -0,0 +1 @@
+9
Added: packages/python-astor/trunk/debian/control
===================================================================
--- packages/python-astor/trunk/debian/control (rev 0)
+++ packages/python-astor/trunk/debian/control 2014-05-16 16:52:48 UTC (rev 28933)
@@ -0,0 +1,33 @@
+Source: python-astor
+Section: python
+Priority: optional
+Maintainer: Tianon Gravi <admwiggin at gmail.com>
+Uploaders: Paul Tagliamonte <paultag at debian.org>,
+ Docker Packaging Team <docker-maint at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 9),
+ python-all (>= 2.6~),
+ python-setuptools,
+ python3-all (>= 3.2~),
+ python3-setuptools
+Standards-Version: 3.9.5
+Homepage: https://github.com/berkerpeksag/astor/
+Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-astor/trunk/
+Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-astor/trunk/
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
+
+Package: python-astor
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}
+Description: Python AST manipulator
+ astor is designed to allow easy manipulation of Python source via the AST.
+ .
+ This package provides Python 2 module bindings only.
+
+Package: python3-astor
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: Python 3 AST manipulator
+ astor is designed to allow easy manipulation of Python source via the AST.
+ .
+ This package provides Python 3 module bindings only.
Added: packages/python-astor/trunk/debian/copyright
===================================================================
--- packages/python-astor/trunk/debian/copyright (rev 0)
+++ packages/python-astor/trunk/debian/copyright 2014-05-16 16:52:48 UTC (rev 28933)
@@ -0,0 +1,32 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0
+Source: https://github.com/berkerpeksag/astor
+
+Files: *
+Copyright: 2012, Patrick Maupin
+License: BSD-2-clause
+
+Files: debian/*
+Copyright: 2014, Tianon Gravi <admwiggin at gmail.com>
+License: BSD-2-clause
+
+License: BSD-2-clause
+ 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.
Added: packages/python-astor/trunk/debian/rules
===================================================================
--- packages/python-astor/trunk/debian/rules (rev 0)
+++ packages/python-astor/trunk/debian/rules 2014-05-16 16:52:48 UTC (rev 28933)
@@ -0,0 +1,37 @@
+#!/usr/bin/make -f
+
+PY2_PACKAGE_NAME=python-astor
+PY3_PACKAGE_NAME=python3-astor
+
+PYVERS = $(shell pyversions -r)
+PY3VERS = $(shell py3versions -r)
+
+%:
+ dh $@ --with python2,python3
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -rvf ./docs/build ./*.egg-info ./build
+
+override_dh_auto_build:
+ set -xe; \
+ for py in $(PYVERS) $(PY3VERS); do \
+ $$py setup.py build; \
+ done
+
+override_dh_auto_install:
+ set -xe; \
+ for py in $(PYVERS); do \
+ $$py setup.py install --skip-build --root debian/$(PY2_PACKAGE_NAME) \
+ --install-layout deb; \
+ done
+ set -xe; \
+ for py in $(PY3VERS); do \
+ $$py setup.py install --skip-build --root debian/$(PY3_PACKAGE_NAME) \
+ --install-layout deb; \
+ done
+ # Remove me when dh_python2 can handle this file
+ rm -vf debian/*/usr/lib/python*/*-packages/*.egg-info/SOURCES.txt
+
+override_dh_installchangelogs:
+ dh_installchangelogs CHANGES
Property changes on: packages/python-astor/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/python-astor/trunk/debian/source/format
===================================================================
--- packages/python-astor/trunk/debian/source/format (rev 0)
+++ packages/python-astor/trunk/debian/source/format 2014-05-16 16:52:48 UTC (rev 28933)
@@ -0,0 +1 @@
+3.0 (quilt)
Added: packages/python-astor/trunk/debian/watch
===================================================================
--- packages/python-astor/trunk/debian/watch (rev 0)
+++ packages/python-astor/trunk/debian/watch 2014-05-16 16:52:48 UTC (rev 28933)
@@ -0,0 +1,3 @@
+version=3
+https://pypi.python.org/packages/source/a/astor/ \
+ astor-(\d.*).tar.gz
More information about the Python-modules-commits
mailing list