debian/0000755000000000000000000000000011716245174007176 5ustar debian/postinst0000644000000000000000000000170111702226314010771 0ustar #!/bin/sh # postinst script for pymetrics # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/dirs0000644000000000000000000000001011702226314010037 0ustar usr/bin debian/rules0000755000000000000000000000324211716243566010262 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. touch configure-stamp build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. python setup.py build touch $@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp # Add here commands to clean up after the build process. python setup.py clean dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs # Add here commands to install the package into debian/pymetrics. python setup.py install --prefix=/usr --root=$(CURDIR)/debian/pymetrics # Build architecture-independent files here. binary-indep: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installexamples # dh_install dh_pysupport dh_installman debian/pymetrics.1 dh_link dh_strip dh_compress dh_fixperms # dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb # Build architecture-dependent files here. binary-arch: build install # We have nothing to do by default. binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/watch0000644000000000000000000000043211702226314010214 0ustar # Example watch control file for uscan # Rename this file to "watch" and then you can run the "uscan" command # to check for upstream updates and more. # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 http://sf.net/pymetrics/pymetrics-(.*)\.tar\.gz debian/pymetrics.10000644000000000000000000001036311702226314011270 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH PYMETRICS "1" "September 2009" "pymetrics 0.8.1" "User Commands" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME pymetrics \- Python source code metrics .SH SYNOPSIS .B pymetrics .RI [ options ] " files" ... .SH DESCRIPTION This manual page documents briefly the .B pymetrics command .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBpymetrics\fP is a program that produces metrics for Python programs. Metrics include McCabe's Cyclomatic Complexity metric, LoC, %Comments, etc. Users can also define their own metrics using data from PyMetrics. PyMetrics optionally outputs to stdout, SQL command files and CSV files. .SH OPTIONS These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-s\fR SQLFILENAME, \fB\-\-sql\fR=\fISQLFILENAME\fR name of output SQL command file. (Default is metricData.sql) .TP \fB\-t\fR SQLTOKENTABLENAME, \fB\-\-tokentable\fR=\fISQLTOKENTABLENAME\fR name of output SQL token table. (Default is metricTokens) .TP \fB\-m\fR SQLMETRICSTABLENAME, \fB\-\-metricstable\fR=\fISQLMETRICSTABLENAME\fR name of output SQL metrics table. (Default is metricData) .TP \fB\-c\fR CSVFILENAME, \fB\-\-csv\fR=\fICSVFILENAME\fR name of output CSV data file. (Default is metricData.csv) .TP \fB\-f\fR INFILELIST, \fB\-\-files\fR=\fIINFILELIST\fR File containing list of path names to modules for analysis. .TP \fB\-i\fR INCLUDEMETRICSSTR, \fB\-\-include\fR=\fIINCLUDEMETRICSSTR\fR list of metrics to include in run. This is a comma separated list of metric module names with no whitespace. Optionally, you can specify the class name of the metric by following the module name with a colon (:) and the metric class name. (Default metrics are 'simple:SimpleMetric,mccabe:McCabeMetric,sloc:SLOC Metric'. Default metric class name for metric module \&'wxYz' is 'WxYzMetric' when only module name given \fB\-\-\fR note capitalized metric class name.) .TP \fB\-l\fR LIBNAME, \fB\-\-library\fR=\fILIBNAME\fR user\-defined name applied to collection of modules (Default is '') .TP \fB\-e\fR, \fB\-\-exists\fR assume SQL tables exist and does not generate creation code. Using this option sets option \fB\-N\fR. (Default is False) .TP \fB\-N\fR, \fB\-\-noold\fR create new command output files and tables after deleting old results, if any. Ignored if \fB\-e\fR is set. (Default is False) .TP \fB\-B\fR, \fB\-\-nobasic\fR suppress production of Basic metrics (Default is False) .TP \fB\-S\fR, \fB\-\-nosql\fR suppress production of output SQL command text file. (Default is False) .TP \fB\-C\fR, \fB\-\-nocsv\fR suppress production of CSV output text file. (Default is False) .TP \fB\-H\fR, \fB\-\-noheadings\fR suppress heading line in csv file. (Default is False) .TP \fB\-k\fR, \fB\-\-kwcnt\fR generate keyword counts. (Default is False) .TP \fB\-K\fR, \fB\-\-nokwcnt\fR suppress keyword counts. (Default is True) .TP \fB\-q\fR, \fB\-\-quiet\fR suppress normal summary output to stdout. (Default is False) .TP \fB\-z\fR, \fB\-\-zero\fR display zero or empty values in output to stdout. (Default is to suppress zero/empty output) .TP \fB\-v\fR, \fB\-\-verbose\fR Produce verbose output \- more \fB\-v\fR's produce more output. (Default is no verbose output to stdout) .TP \fB\-d\fR, \fB\-\-debug\fR Provide debug output, not usually generated \- internal use only .SH AUTHOR pymetrics was written by Reg. Charney. .PP This manual page was written by Andrew Pollock , for the Debian project (but may be used by others). debian/docs0000644000000000000000000000000711702226314010034 0ustar README debian/control0000644000000000000000000000117611716244217010603 0ustar Source: pymetrics Section: python Priority: extra Maintainer: Andrew Pollock Build-Depends: python, python-support (>= 0.6), debhelper(>= 7) Standards-Version: 3.9.2 Homepage: http://pymetrics.sourceforge.net/ Package: pymetrics Architecture: all Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends} Description: Python code metric reporting tool PyMetrics produces metrics for Python programs. Metrics include McCabe's Cyclomatic Complexity metric, LoC, %Comments, etc. Users can also define their own metrics using data from PyMetrics. PyMetrics optionally outputs stdout, SQL command files and CSV debian/changelog0000644000000000000000000000253211716245174011052 0ustar pymetrics (0.8.1-6) unstable; urgency=low * Convert to 3.0 (quilt) source format -- Andrew Pollock Mon, 13 Feb 2012 09:37:56 -0800 pymetrics (0.8.1-5) unstable; urgency=low * debian/rules: add build-{arch,indep} targets * debian/control: Bump Standards-Version (no changes) -- Andrew Pollock Mon, 13 Feb 2012 09:25:13 -0800 pymetrics (0.8.1-4) unstable; urgency=low * debian/rules: pass --prefix=/usr to setup.py at install time to install in the correct location for Python 2.6 (closes: #557920) -- Andrew Pollock Wed, 25 Nov 2009 07:31:13 -0800 pymetrics (0.8.1-3) unstable; urgency=low * debian/control: switch to Architecture: all * Add a man page * debian/rules: move all of the action to binary-arch-indep instead of binary-arch -- Andrew Pollock Tue, 22 Sep 2009 22:01:06 -0700 pymetrics (0.8.1-2) unstable; urgency=low * debian/copyright: add additional copyright holder and mention GPL-2+ * debian/rules: use dh_prep in favour of dh_clean -k * debian/control: bump standards-version to 3.8.3 -- Andrew Pollock Tue, 22 Sep 2009 07:47:31 -0700 pymetrics (0.8.1-1) unstable; urgency=low * Initial release (Closes: #547617) -- Andrew Pollock Sun, 20 Sep 2009 21:42:21 -0700 debian/prerm0000644000000000000000000000156111702226314010237 0ustar #!/bin/sh # prerm script for pymetrics # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in remove|upgrade|deconfigure) ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/compat0000644000000000000000000000000211702226314010362 0ustar 7 debian/source/0000755000000000000000000000000011716245155010475 5ustar debian/source/format0000644000000000000000000000001411716245155011703 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000101611702226314011115 0ustar This package was debianized by Andrew Pollock on Sun, 20 Sep 2009 21:42:21 -0700. It was downloaded from http://sourceforge.net/projects/pymetrics Upstream Author: Reg. Charney Copyright: Copyright (c) 2001 by Jurgen Hermann Copyright (c) 2005 by Reg. Charney License: GPL-2+ The Debian packaging is (C) 2009, Andrew Pollock and is licensed under the GPL, see `/usr/share/common-licenses/GPL'.