[Python-modules-commits] r23455 - in packages/python-flakey/trunk/debian (4 files)

cjohnston-guest at users.alioth.debian.org cjohnston-guest at users.alioth.debian.org
Tue Feb 12 03:03:54 UTC 2013


    Date: Tuesday, February 12, 2013 @ 03:03:50
  Author: cjohnston-guest
Revision: 23455

Updating packaging

Added:
  packages/python-flakey/trunk/debian/flakey.1
  packages/python-flakey/trunk/debian/flakey.manpages
Modified:
  packages/python-flakey/trunk/debian/control
  packages/python-flakey/trunk/debian/rules

Modified: packages/python-flakey/trunk/debian/control
===================================================================
--- packages/python-flakey/trunk/debian/control	2013-02-11 21:57:05 UTC (rev 23454)
+++ packages/python-flakey/trunk/debian/control	2013-02-12 03:03:50 UTC (rev 23455)
@@ -6,14 +6,22 @@
 Build-Depends: debhelper (>= 8.0.0), python-all, python3-all
 Standards-Version: 3.9.4
 Homepage: https://bitbucket.org/icordasc/flakey
-Vcs-Browser: https://bitbucket.org/icordasc/flakey/src
-Vcs-Hg: https://bitbucket.org/icordasc/flakey
+Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-flakey/
+Vcs-Svn: svn://svn.debian.org/svn/python-modules/packages/python-flakey
 X-Python-Version: >= 2.6
 X-Python3-Version: >=3.1
 
 Package: python-flakey
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Depends: ${misc:Depends}, ${python:Depends}
 Description: code checker using pep8 and pyflakes
  Flakey is a port of pyflakes3k and pyflakes which analyzes Python code 
  and detects errors in the code.
+
+Package: python3-flakey
+Architecture: any
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: code checker using pep8 and pyflakes (python 3)
+ Flakey is a port of pyflakes3k and pyflakes which analyzes Python code 
+ and detects errors in the code.
+

Added: packages/python-flakey/trunk/debian/flakey.1
===================================================================
--- packages/python-flakey/trunk/debian/flakey.1	                        (rev 0)
+++ packages/python-flakey/trunk/debian/flakey.1	2013-02-12 03:03:50 UTC (rev 23455)
@@ -0,0 +1,9 @@
+.\" Manpage for flakey.
+.\" Contact chrisjohnston at ubuntu.com to correct errors or typos.
+.TH man 8 "11 February 2013" "1.0" "flakey man page"
+.SH NAME
+flakey \- code checker using pep8 and pyflakes
+.SH SYNOPSIS
+nuseradd [FILENAME]
+.SH DESCRIPTION
+Flakey is a port of pyflakes3k and pyflakes which analyzes Python code and detects errors in the code.

Added: packages/python-flakey/trunk/debian/flakey.manpages
===================================================================
--- packages/python-flakey/trunk/debian/flakey.manpages	                        (rev 0)
+++ packages/python-flakey/trunk/debian/flakey.manpages	2013-02-12 03:03:50 UTC (rev 23455)
@@ -0,0 +1 @@
+debian/flakey.1

Modified: packages/python-flakey/trunk/debian/rules
===================================================================
--- packages/python-flakey/trunk/debian/rules	2013-02-11 21:57:05 UTC (rev 23454)
+++ packages/python-flakey/trunk/debian/rules	2013-02-12 03:03:50 UTC (rev 23455)
@@ -1,8 +1,35 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
+
+PY2_PACKAGE_NAME=python-flakey
+PY3_PACKAGE_NAME=python3-flakey
+
+PYTHON2=$(shell pyversions -vr)
+PYTHON3=$(shell py3versions -vr)
+
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3
 
 override_dh_auto_clean:
 	rm -rf flakey.egg-info
 	dh_auto_clean
+
+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




More information about the Python-modules-commits mailing list