Skip to content

Commit

Permalink
add debian folder to build .deb package
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Graboys committed Apr 9, 2012
1 parent 7d0e6d2 commit 3d068af
Show file tree
Hide file tree
Showing 11 changed files with 295 additions and 0 deletions.
4 changes: 4 additions & 0 deletions debian/README.source
@@ -0,0 +1,4 @@
This package uses quilt as patch system, you can find some information
about it at:

/usr/share/doc/quilt/README.source
166 changes: 166 additions & 0 deletions debian/changelog
@@ -0,0 +1,166 @@
pyflakes (0.4.0b) unstable; urgency=low
* Support pyflakes.ignore comments

-- Vadim Graboys <vadim@chartbeat.com> Sun, 20 Jan 2012 23:15:18 +0100

pyflakes (0.4.0-1) unstable; urgency=low

* New upstream release
* debian/patches/always_close_fd.diff
- refreshed to reflect new code
* debian/{control, rules}
- use 'dh --with quilt $@', b-depending on the minimum version of quilt that
supports it, also adjusting XS-P-V to '>= 2.5' so it will be compatible
with Python 2.6; code changes inspired by Ubuntu diff

-- Sandro Tosi <morph@debian.org> Sun, 20 Dec 2009 23:15:18 +0100

pyflakes (0.3.0-2) unstable; urgency=low

* debian/control
- bump Standards-Version to 3.8.3 (no changes needed)
* debian/{control, rule, pyflakes.preinst}
- migrated from python-central to python-support

-- Sandro Tosi <morph@debian.org> Fri, 02 Oct 2009 21:15:41 +0200

pyflakes (0.3.0-1) unstable; urgency=low

[ Tristan Seligmann ]
* New upstream release.

[ Sandro Tosi ]
* debian/copyright
- added my contribution to packaging
- updated upstream copyright years
* debian/README.source
- removed paragraph about "./debian/rules get-orig-source"
* debian/control
- updated short and long descriptions

-- Tristan Seligmann <mithrandi@mithrandi.net> Fri, 30 Jan 2009 20:38:15 +0200

pyflakes (0.2.1+svn17054-1) unstable; urgency=low

[ Sandro Tosi ]
* New SVN snapshot; thanks to Julian Andres Klode for the patch;
Closes: #509984
- fixes new python features, like "with statement"
* debian/patches/install_scripts_package.diff
- removed, since merged upstream in this snapshot
* debian/patches/always_close_fd.diff
- refreshed
* debian/control
- switch Vcs-Browser field to viewsvn
* debian/{compat,control,rules}
- package converted to debhelper v7; thanks to Julian Andres Klode for the
patch
* debian/watch
- fixed to cope well with svn snapshots
* debian/patches/*.diff
- added descriptions

[ Marco Rodrigues ]
* debian/control:
+ Add ${misc:Depends} to Depends to remove lintian warning.
+ Add watch file.

-- Sandro Tosi <morph@debian.org> Sat, 10 Jan 2009 18:10:42 +0100

pyflakes (0.2.1+svn16699-1) unstable; urgency=low

[ Tristan Seligmann ]
* Remove redundant/broken python_unicode patch.
* Remove unneeded dependency on python-dev.

[ Sandro Tosi ]
* debian/control
- changed my email address
- bump Standards-Version to 3.8.0
+ added debian/README.source
* debian/rules
- added get-orig-source
* debian/copyright
- updated copyright information

[ Hervé Cauwelier ]
* Update to a recent SVN checkout; Closes: #499123
* Strip whitespace in debian/rules
* Refresh patches
* Fixed installation with debian/patches/install_scripts_package.diff

-- Sandro Tosi <morph@debian.org> Sun, 21 Sep 2008 00:17:47 +0200

pyflakes (0.2.1+svn14502-2) unstable; urgency=low

[ Varun Hiremath ]
* debian/control
- change Build-Depends: python-central (>= 0.6)
- fix lintian spelling-error-in-description: s/python/Python/
* debian/rules
- remove /usr/lib directory removal (Closes: #472021)
* debian/patches/set_exit_status.diff
- fixed duplicated output, thanks to Martin Geisler <mg@daimi.au.dk>
(Closes: #467135)

[ Sandro Tosi ]
* Adopting for PAPT (Closes: #453462)
* debian/control
- added Vcs-{Svn,Browser} fields
- set PAPT as maintainer
- set Tristan, Varun and me as uploaders
- removed empty lines at endfile

-- Varun Hiremath <varun@debian.org> Sun, 23 Mar 2008 21:42:53 +0530

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@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@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@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@ubuntu.com> Thu, 13 Oct 2005 02:37:05 +1300

pyflakes (0.2.0-0ubuntu1) breezy; urgency=low

* Initial release

-- Andrew Mitchell <ajmitch@ubuntu.com> Fri, 30 Sep 2005 00:54:25 +1200

1 change: 1 addition & 0 deletions debian/compat
@@ -0,0 +1 @@
7
19 changes: 19 additions & 0 deletions debian/control
@@ -0,0 +1,19 @@
Source: pyflakes
Section: python
Priority: optional
Maintainer: Vadim Graboys <vadim@chartbeat.com>
Build-Depends: debhelper (>= 7), python-support (>= 1.0.0), python, quilt (>= 0.46-7)
XS-Python-Version: >= 2.5
Standards-Version: 3.8.3

Package: pyflakes
Architecture: all
XB-Python-Version: ${python:Versions}
Depends: ${python:Depends}, ${misc:Depends}
Description: passive checker of Python programs
Pyflakes is program to analyze Python programs and detect various
errors. It works by parsing the source file, not importing it, so it
is safe to use on modules with side effects. It's also much faster.
.
Unlike PyLint, Pyflakes checks only for logical errors in programs;
it does not perform any checks on style.
27 changes: 27 additions & 0 deletions debian/copyright
@@ -0,0 +1,27 @@
Original source may be found at http://divmod.org/projects/pyflakes

Files: debian/*
Copyright: © 2005 - 2006, Andrew Mitchell <ajmitch@ubuntu.com>
Copyright: © 2008 - 2009, Sandro Tosi <morph@debian.org>

Files: *
Copyright: Copyright (c) 2005-2009 Divmod, Inc
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.
1 change: 1 addition & 0 deletions debian/manpages
@@ -0,0 +1 @@
debian/pyflakes.1
1 change: 1 addition & 0 deletions debian/pycompat
@@ -0,0 +1 @@
2
34 changes: 34 additions & 0 deletions debian/pyflakes.1
@@ -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@debian\.org>
for the Debian distribution of pyflakes (but can be used by others)\.
19 changes: 19 additions & 0 deletions debian/pyflakes.preinst
@@ -0,0 +1,19 @@
#!/bin/sh
# TODO: remove this file after releasing Squeeze
set -e

PYCENTRAL=/usr/bin/pycentral

if [ "$1" = upgrade ]
then
if dpkg --compare-versions "$2" lt 0.3.0-2 ; then
if [ -x $PYCENTRAL ]; then
# explicitly remove old python-central files
pycentral pkgremove pyflakes
fi
# be really sure also removing left-over files and dirs
rm -rf /usr/lib/python2.5/site-packages/pyflakes*
fi
fi

#DEBHELPER#
19 changes: 19 additions & 0 deletions debian/rules
@@ -0,0 +1,19 @@
#!/usr/bin/make -f

# Build instructions
%:
dh --with quilt $@

PACKAGE = pyflakes
SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p')
SVN_REVISION := $(shell echo $(SRC_VERSION) | awk -F"+" '{ print $$2 }' | sed 's/svn//' )
TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz
.PHONY: get-orig-source
get-orig-source:
rm -rf get-orig-source $(TARBALL)
mkdir get-orig-source
svn export -r $(SVN_REVISION) http://divmod.org/svn/Divmod/trunk/Pyflakes/ \
get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig
GZIP=--best tar czf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION).orig
rm -rf get-orig-source
# $(TARBALL) created; move it to the right destination to build the package
4 changes: 4 additions & 0 deletions debian/watch
@@ -0,0 +1,4 @@
version=3
opts=dversionmangle=s/\+svn\d+$// \
http://divmod.org/trac/wiki/DivmodPyflakes \
.*/pyflakes-(.*)\.tar\.gz\?format=raw

0 comments on commit 3d068af

Please sign in to comment.