[Python-apps-commits] r420 - in packages/pyflakes/trunk (16 files)

kumanna-guest at users.alioth.debian.org kumanna-guest at users.alioth.debian.org
Wed Dec 12 18:42:13 UTC 2007


    Date: Wednesday, December 12, 2007 @ 18:42:13
  Author: kumanna-guest
Revision: 420

[svn-inject] Applying Debian modifications to trunk

Added:
  packages/pyflakes/trunk/debian/
  packages/pyflakes/trunk/debian/changelog
  packages/pyflakes/trunk/debian/compat
  packages/pyflakes/trunk/debian/control
  packages/pyflakes/trunk/debian/copyright
  packages/pyflakes/trunk/debian/manpages
  packages/pyflakes/trunk/debian/patches/
  packages/pyflakes/trunk/debian/patches/add_main_function.diff
  packages/pyflakes/trunk/debian/patches/always_close_fd.diff
  packages/pyflakes/trunk/debian/patches/check_encoding_errors.diff
  packages/pyflakes/trunk/debian/patches/pyflakes_unicode.diff
  packages/pyflakes/trunk/debian/patches/series
  packages/pyflakes/trunk/debian/patches/set_exit_status.diff
  packages/pyflakes/trunk/debian/pycompat
  packages/pyflakes/trunk/debian/pyflakes.1
  packages/pyflakes/trunk/debian/rules


Property changes on: packages/pyflakes/trunk/debian
___________________________________________________________________
Name: mergeWithUpstream
   + 1

Added: packages/pyflakes/trunk/debian/changelog
===================================================================
--- packages/pyflakes/trunk/debian/changelog	                        (rev 0)
+++ packages/pyflakes/trunk/debian/changelog	2007-12-12 18:42:13 UTC (rev 420)
@@ -0,0 +1,51 @@
+pyflakes (0.2.1+svn14502-1) unstable; urgency=low
+
+  * QA upload.
+  * New upstream release.
+  * debian/manpages:
+    + Add debian/pyflakes.1. Thanks to Bastian Kleineidam.
+      (Closes: #414694, #439187)
+  * debian/control:
+    + Use Standards Version 3.7.3.
+    + Build-Depend on quilt.
+    + Add Homepage field.
+  * debian/rules:
+    + Use quilt for patch management.
+    + Make Debian QA team the maintainer.
+    + Remove empty usr/lib directory.
+  * debian/patches:
+    + Include usability patches from Bastian Kleineidam.
+      (Closes: #445296).
+    + Handle Unicode errors gracefully. Thanks to
+      Bastian Kleineidam for the patch. (Closes: #440750).
+  * debian/copyright:
+    + Rewrite to match new proposed Copyright format.
+  * debian/compat: Set to 5.
+  
+ -- Kumar Appaiah <akumar at ee.iitm.ac.in>  Sun, 09 Dec 2007 00:42:09 +0530
+
+pyflakes (0.2.1-2) unstable; urgency=low
+
+  * Update for new python policy (Closes: #380903)
+
+ -- Andrew Mitchell <ajmitch at debian.org>  Sat, 22 Jul 2006 15:56:22 +1200
+
+pyflakes (0.2.1-1) unstable; urgency=low
+
+  * Initial Debian release (Closes: #330896)
+
+ -- Andrew Mitchell <ajmitch at debian.org>  Wed,  3 May 2006 18:12:15 +1200
+
+pyflakes (0.2.1-0ubuntu1) breezy; urgency=low
+
+  * New upstream release
+  * Changed Section to python
+	
+ -- Andrew Mitchell <ajmitch at ubuntu.com>  Thu, 13 Oct 2005 02:37:05 +1300
+
+pyflakes (0.2.0-0ubuntu1) breezy; urgency=low
+
+  * Initial release
+
+ -- Andrew Mitchell <ajmitch at ubuntu.com>  Fri, 30 Sep 2005 00:54:25 +1200
+

Added: packages/pyflakes/trunk/debian/compat
===================================================================
--- packages/pyflakes/trunk/debian/compat	                        (rev 0)
+++ packages/pyflakes/trunk/debian/compat	2007-12-12 18:42:13 UTC (rev 420)
@@ -0,0 +1 @@
+5

Added: packages/pyflakes/trunk/debian/control
===================================================================
--- packages/pyflakes/trunk/debian/control	                        (rev 0)
+++ packages/pyflakes/trunk/debian/control	2007-12-12 18:42:13 UTC (rev 420)
@@ -0,0 +1,22 @@
+Source: pyflakes
+Section: python
+Priority: optional
+Maintainer: Debian QA Group <packages at qa.debian.org>
+Build-Depends: debhelper (>= 5.0.37.2), cdbs (>= 0.4.43), python-central (>= 0.5), python, python-dev, quilt
+XS-Python-Version: current
+Standards-Version: 3.7.3
+Homepage: http://divmod.org/trac/wiki/DivmodPyflakes
+
+Package: pyflakes
+Architecture: all
+XB-Python-Version: ${python:Versions}
+Depends: ${python:Depends}
+Description: simple python source checker
+ Pyflakes is a simple program which checks Python source files for errors.
+ It is similar to PyChecker in scope, but differs in that it does not execute
+ the modules to check them. This is both safer and faster, although it does 
+ not perform as many checks. Unlike PyLint, Pyflakes checks only for logical
+ errors in programs; it does not perform any checks on style.
+
+
+

Added: packages/pyflakes/trunk/debian/copyright
===================================================================
--- packages/pyflakes/trunk/debian/copyright	                        (rev 0)
+++ packages/pyflakes/trunk/debian/copyright	2007-12-12 18:42:13 UTC (rev 420)
@@ -0,0 +1,27 @@
+Original source may be found at http://divmod.org/projects/pyflakes
+
+Files: debian/*
+Copyright: © 2005 - 2006, Andrew Mitchell <ajmitch at ubuntu.com>
+
+Files: *
+Copyright: © 2004 - 2005 Phil Frost
+	   © 2005, Moe Aboulkheir <moe at divmod.com>
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Added: packages/pyflakes/trunk/debian/manpages
===================================================================
--- packages/pyflakes/trunk/debian/manpages	                        (rev 0)
+++ packages/pyflakes/trunk/debian/manpages	2007-12-12 18:42:13 UTC (rev 420)
@@ -0,0 +1 @@
+debian/pyflakes.1

Added: packages/pyflakes/trunk/debian/patches/add_main_function.diff
===================================================================
--- packages/pyflakes/trunk/debian/patches/add_main_function.diff	                        (rev 0)
+++ packages/pyflakes/trunk/debian/patches/add_main_function.diff	2007-12-12 18:42:13 UTC (rev 420)
@@ -0,0 +1,40 @@
+Index: b/bin/pyflakes
+===================================================================
+--- a/bin/pyflakes
++++ b/bin/pyflakes
+@@ -32,18 +32,21 @@
+     if os.path.exists(filename):
+         return check(file(filename, 'U').read(), filename)
+ 
+-warnings = 0
+-args = sys.argv[1:]
+-if args:
+-    for arg in args:
+-        if os.path.isdir(arg):
+-            for dirpath, dirnames, filenames in os.walk(arg):
+-                for filename in filenames:
+-                    if filename.endswith('.py'):
+-                        warnings += checkPath(os.path.join(dirpath, filename))
+-        else:
+-            warnings += checkPath(arg)
+-else:
+-    warnings += check(sys.stdin.read(), '<stdin>')
++def main(args):
++    warnings = 0
++    if args:
++        for arg in args:
++            if os.path.isdir(arg):
++                for dirpath, dirnames, filenames in os.walk(arg):
++                    for filename in filenames:
++                        if filename.endswith('.py'):
++                            warnings += checkPath(os.path.join(dirpath, filename))
++            else:
++                warnings += checkPath(arg)
++    else:
++        warnings += check(sys.stdin.read(), '<stdin>')
++    
++    raise SystemExit(warnings > 0)
+ 
+-raise SystemExit(warnings > 0)
++if __name__ == '__main__':
++    main(sys.argv[1:])

Added: packages/pyflakes/trunk/debian/patches/always_close_fd.diff
===================================================================
--- packages/pyflakes/trunk/debian/patches/always_close_fd.diff	                        (rev 0)
+++ packages/pyflakes/trunk/debian/patches/always_close_fd.diff	2007-12-12 18:42:13 UTC (rev 420)
@@ -0,0 +1,17 @@
+Index: b/bin/pyflakes
+===================================================================
+--- a/bin/pyflakes
++++ b/bin/pyflakes
+@@ -30,7 +30,11 @@
+ 
+ def checkPath(filename):
+     if os.path.exists(filename):
+-        return check(file(filename, 'U').read(), filename)
++        fd = file(filename, 'U')
++        try:
++            return check(fd.read(), filename)
++        finally:
++            fd.close()
+ 
+ def main(args):
+     warnings = 0

Added: packages/pyflakes/trunk/debian/patches/check_encoding_errors.diff
===================================================================
--- packages/pyflakes/trunk/debian/patches/check_encoding_errors.diff	                        (rev 0)
+++ packages/pyflakes/trunk/debian/patches/check_encoding_errors.diff	2007-12-12 18:42:13 UTC (rev 420)
@@ -0,0 +1,14 @@
+Index: b/bin/pyflakes
+===================================================================
+--- a/bin/pyflakes
++++ b/bin/pyflakes
+@@ -24,6 +24,9 @@
+         print >> sys.stderr, line
+         print >> sys.stderr, " " * (offset-2), "^"
+         status = 2
++    except UnicodeError, msg:
++        print >> sys.stderr, 'encoding error at %r: %s' % (filename, msg)
++        status = 2
+     else:
+         w = checker.Checker(tree, filename)
+         w.messages.sort(lambda a, b: cmp(a.lineno, b.lineno))

Added: packages/pyflakes/trunk/debian/patches/pyflakes_unicode.diff
===================================================================
--- packages/pyflakes/trunk/debian/patches/pyflakes_unicode.diff	                        (rev 0)
+++ packages/pyflakes/trunk/debian/patches/pyflakes_unicode.diff	2007-12-12 18:42:13 UTC (rev 420)
@@ -0,0 +1,14 @@
+Index: b/bin/pyflakes
+===================================================================
+--- a/bin/pyflakes
++++ b/bin/pyflakes
+@@ -26,6 +26,9 @@
+         status = 2
+     except UnicodeError, msg:
+         print >> sys.stderr, 'encoding error at %r: %s' % (filename, msg)
++
++    except UnicodeError, msg:
++        print >> sys.stderr, 'encoding error at %r: %s' % (filename, msg)
+         status = 2
+     else:
+         w = checker.Checker(tree, filename)

Added: packages/pyflakes/trunk/debian/patches/series
===================================================================
--- packages/pyflakes/trunk/debian/patches/series	                        (rev 0)
+++ packages/pyflakes/trunk/debian/patches/series	2007-12-12 18:42:13 UTC (rev 420)
@@ -0,0 +1,5 @@
+add_main_function.diff
+always_close_fd.diff
+set_exit_status.diff
+check_encoding_errors.diff
+pyflakes_unicode.diff

Added: packages/pyflakes/trunk/debian/patches/set_exit_status.diff
===================================================================
--- packages/pyflakes/trunk/debian/patches/set_exit_status.diff	                        (rev 0)
+++ packages/pyflakes/trunk/debian/patches/set_exit_status.diff	2007-12-12 18:42:13 UTC (rev 420)
@@ -0,0 +1,39 @@
+Index: b/bin/pyflakes
+===================================================================
+--- a/bin/pyflakes
++++ b/bin/pyflakes
+@@ -4,7 +4,11 @@
+ import os
+ from pyflakes import checker
+ 
++# exit status
++status = 0
++
+ def check(codeString, filename):
++    global status
+     try:
+         tree = compiler.parse(codeString)
+     except (SyntaxError, IndentationError):
+@@ -19,12 +23,16 @@
+         print >> sys.stderr, '%s:%d: could not compile' % (filename, lineno)
+         print >> sys.stderr, line
+         print >> sys.stderr, " " * (offset-2), "^"
+-        return 1
++        status = 2
+     else:
+         w = checker.Checker(tree, filename)
+         w.messages.sort(lambda a, b: cmp(a.lineno, b.lineno))
+         for warning in w.messages:
+             print warning
++            if status == 0:
++                status = 1
++            for warning in w.messages:
++                print warning
+         return len(w.messages)
+ 
+ 
+@@ -54,3 +62,4 @@
+ 
+ if __name__ == '__main__':
+     main(sys.argv[1:])
++    sys.exit(status)

Added: packages/pyflakes/trunk/debian/pycompat
===================================================================
--- packages/pyflakes/trunk/debian/pycompat	                        (rev 0)
+++ packages/pyflakes/trunk/debian/pycompat	2007-12-12 18:42:13 UTC (rev 420)
@@ -0,0 +1 @@
+2
\ No newline at end of file

Added: packages/pyflakes/trunk/debian/pyflakes.1
===================================================================
--- packages/pyflakes/trunk/debian/pyflakes.1	                        (rev 0)
+++ packages/pyflakes/trunk/debian/pyflakes.1	2007-12-12 18:42:13 UTC (rev 420)
@@ -0,0 +1,34 @@
+.TH "PYFLAKES" "1" "10/01/2007" "" ""
+.\" disable hyphenation
+.nh
+.\" disable justification (adjust text to left margin only)
+.ad l
+.SH "NAME"
+pyflakes - simple Python source checker
+.SH "SYNOPSIS"
+.PP
+\fBpyflakes\fR [\fIfile-or-directory\fR ...]
+.SH "DESCRIPTION"
+Pyflakes is a simple program which checks Python source files for errors.
+It is similar to PyChecker in scope, but differs in that it does not
+execute the modules to check them. This is both safer and faster, although
+it does not perform as many checks. Unlike PyLint, Pyflakes checks only
+for logical errors in programs; it does not perform any checks on style.
+.sp
+All commandline arguments are checked, which have to be either regular files
+or directories. If a directory is given, every \fB.py\fR file within
+will be checked.
+.sp
+When no commandline arguments are given, data will be read from standard input.
+.SH "OUTPUT"
+Found warnings including unused importes, undefined variables
+and unnecessary reimports, are printed on standard output.
+Found errors including compile or encoding errors, are printed
+on standard error.
+.SH "EXIT STATUS"
+The exit status is 0 when no warnings or errors are found. When errors are
+found the exit status is 2. When warnings (but no errors) are found the
+exit status is 1.
+.SH "AUTHOR"
+This manual page was originally written by Bastian Kleineidam <calvin at debian\.org>
+for the Debian distribution of pyflakes (but can be used by others)\.

Added: packages/pyflakes/trunk/debian/rules
===================================================================
--- packages/pyflakes/trunk/debian/rules	                        (rev 0)
+++ packages/pyflakes/trunk/debian/rules	2007-12-12 18:42:13 UTC (rev 420)
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DEB_PYTHON_SYSTEM=pycentral
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+DEB_PYTHON_INSTALL_ARGS_ALL += --prefix=/usr 
+
+#DEB_INSTALL_PYTHON_gnue-common = /usr/lib/gnue/python
+
+binary-predeb/pyflakes::
+	rmdir $(DEB_DESTDIR)usr/lib
+
+clean::
+	find . -name \*pyc -exec rm '{}' \;


Property changes on: packages/pyflakes/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *




More information about the Python-apps-commits mailing list