[Python-apps-commits] r12201 - in packages/prospector/trunk (18 files)

danstender-guest at users.alioth.debian.org danstender-guest at users.alioth.debian.org
Fri Aug 7 18:36:31 UTC 2015


    Date: Friday, August 7, 2015 @ 18:36:30
  Author: danstender-guest
Revision: 12201

[svn-inject] Applying Debian modifications (0.10.2+git20150706.a00e191-1) to trunk

Added:
  packages/prospector/trunk/debian/
  packages/prospector/trunk/debian/changelog
  packages/prospector/trunk/debian/compat
  packages/prospector/trunk/debian/control
  packages/prospector/trunk/debian/copyright
  packages/prospector/trunk/debian/links
  packages/prospector/trunk/debian/patches/
  packages/prospector/trunk/debian/patches/docs-correct-some-flaws.patch
  packages/prospector/trunk/debian/patches/docs-no-sphinx-argparse.patch
  packages/prospector/trunk/debian/patches/docs-privacy-breaches.patch
  packages/prospector/trunk/debian/patches/rename-console-script.patch
  packages/prospector/trunk/debian/patches/series
  packages/prospector/trunk/debian/prospector.doc-base
  packages/prospector/trunk/debian/prospector.txt
  packages/prospector/trunk/debian/rules
  packages/prospector/trunk/debian/source/
  packages/prospector/trunk/debian/source/format
  packages/prospector/trunk/debian/watch


Property changes on: packages/prospector/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages/prospector/trunk/debian/changelog
===================================================================
--- packages/prospector/trunk/debian/changelog	                        (rev 0)
+++ packages/prospector/trunk/debian/changelog	2015-08-07 18:36:30 UTC (rev 12201)
@@ -0,0 +1,5 @@
+prospector (0.10.2+git20150706.a00e191-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #781165).
+
+ -- Daniel Stender <debian at danielstender.com>  Wed, 05 Aug 2015 17:52:20 +0200

Added: packages/prospector/trunk/debian/compat
===================================================================
--- packages/prospector/trunk/debian/compat	                        (rev 0)
+++ packages/prospector/trunk/debian/compat	2015-08-07 18:36:30 UTC (rev 12201)
@@ -0,0 +1 @@
+9

Added: packages/prospector/trunk/debian/control
===================================================================
--- packages/prospector/trunk/debian/control	                        (rev 0)
+++ packages/prospector/trunk/debian/control	2015-08-07 18:36:30 UTC (rev 12201)
@@ -0,0 +1,60 @@
+Source: prospector
+Section: python
+Priority: optional
+Maintainer: Daniel Stender <debian at danielstender.com>
+Uploaders:
+ Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
+Build-Depends:
+ debhelper (>= 9),
+ dh-python,
+ python (>= 2.7),
+ python-setuptools,
+ python-sphinx,
+ pandoc,
+ txt2man,
+ python-nose,
+ python-yaml,
+ python-requirements-detector,
+ python-setoptconf,
+ pyflakes (>= 0.8.1),
+ pylint (>= 1.4),
+ python-pylint-common,
+ python-pylint-celery,
+ python-pylint-django,
+ python-pylint-plugin-utils,
+ pep8 (>= 1.6.0),
+ python-pep8-naming,
+ pep257,
+ python-mccabe,
+ dodgy
+Standards-Version: 3.9.6
+Homepage: http://prospector.readthedocs.org/en/master/
+Vcs-Svn: svn://anonscm.debian.org/python-apps/packages/prospector/trunk/
+Vcs-Browser: http://anonscm.debian.org/viewvc/python-apps/packages/prospector/trunk/
+
+Package: prospector
+Architecture: all
+Depends:
+ ${misc:Depends},
+ ${python:Depends},
+ ${sphinxdoc:Depends}
+Description: comprehensive static Python code analyzer
+ Prospector analyzes Python source files and puts out information about
+ coding errors, potential problems, convention violation and unnecessary
+ complexity.
+ It provides an uniform and flexible interface for these tools:
+  - Pylint (extensive Python code checker)
+  - Pyflakes (another full Python code checker)
+  - Pep8 (checks for Python code style guide conventions)
+  - Pep8-naming (checks for naming conventions not covered by Pep8)
+  - McCabe (checks for cyclomatic code complexity)
+  - Pep257 (checks for compliance with the docstring conventions)
+  - Dodgy (checks for hard coded passwords, VCS diff checkins etc.)
+ .
+ Prospector detects if code employs specific frameworks and libraries
+ like currently Django (web application framework)
+ and Celery (asynchronous task/job queue),
+ and checks them by corresponding pylint-plugins.
+ .
+ Optionally, it also makes use of the analyzers Pyroma, Vulture, and Frosted
+ (however, not completely available in Debian so far).

Added: packages/prospector/trunk/debian/copyright
===================================================================
--- packages/prospector/trunk/debian/copyright	                        (rev 0)
+++ packages/prospector/trunk/debian/copyright	2015-08-07 18:36:30 UTC (rev 12201)
@@ -0,0 +1,32 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: prospector
+Upstream-Contact: Carl Crowder <emailme at carlcrowder.com>
+Source: https://github.com/landscapeio/prospector
+
+Files: *
+Copyright: 2013-2015 Carl Crowder
+                     Jeff Quast <contact at jeffquast.com>
+                     Jason Simeone <jay at classless.net>
+	             Sam Spilsbury <smspillaz at gmail.com>
+License: GPL-2
+
+Files: debian/*
+Copyright: 2015 Daniel Stender <debian at danielstender.com>
+License: GPL-2
+
+License: GPL-2
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License version 2 as
+ published by the Free Software Foundation.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ .
+ On Debian systems, the complete text of the GNU General Public License version
+ 2 can be found in `/usr/share/common-licenses/GPL-2'.

Added: packages/prospector/trunk/debian/links
===================================================================
--- packages/prospector/trunk/debian/links	                        (rev 0)
+++ packages/prospector/trunk/debian/links	2015-08-07 18:36:30 UTC (rev 12201)
@@ -0,0 +1 @@
+/usr/share/prospector/console_script /usr/bin/prospector
\ No newline at end of file

Added: packages/prospector/trunk/debian/patches/docs-correct-some-flaws.patch
===================================================================
--- packages/prospector/trunk/debian/patches/docs-correct-some-flaws.patch	                        (rev 0)
+++ packages/prospector/trunk/debian/patches/docs-correct-some-flaws.patch	2015-08-07 18:36:30 UTC (rev 12201)
@@ -0,0 +1,49 @@
+Description: corrent some flaws in the docs (Sphinx warnings)
+Author: Daniel Stender <debian at danielstender.com>
+Forwarded: https://github.com/landscapeio/prospector/pull/137
+
+--- a/docs/profiles.rst
++++ b/docs/profiles.rst
+@@ -195,7 +195,7 @@ of the inheritance tree and overwriting values with those found lower.
+ 
+ The example profile above inherits from another profile provided by the user,
+ ``my/other/profile.yml``. This allows you to have, for example, a project wide
+- default profile with specific overrides for each individual repository or library.
++default profile with specific overrides for each individual repository or library.
+ 
+ It is possible to inherit from the built-in prospector profiles as well, although
+ there are shortcuts for most of the built-ins, see below.::
+@@ -231,7 +231,7 @@ specific file. For example, ``docs`` would ignore a directory in the repository
+ Secondly, ``ignore-patterns`` is a list of regular expressions. The relative path of files and directories is *searched*
+ for each regular expression, and ignored if any matches are found. If the expression matches a directory, the directory
+ contents and all subdirectories are ignored. For example, ``^example/doc_.*\.py$`` would ignore any files in the
+-"example" directory beginning with "doc_". Another example: ``(^|/)docs(/|$)`` would ignore all directories called
++"example" directory beginning with "doc\_". Another example: ``(^|/)docs(/|$)`` would ignore all directories called
+ "docs" in the entire repository.
+ 
+ Note that a further option called ``ignore`` is available. This is equivalent to ``ignore-patterns``, and is from
+diff --git a/docs/usage.rst b/docs/usage.rst
+index 2e5175d..e60b372 100644
+--- a/docs/usage.rst
++++ b/docs/usage.rst
+@@ -27,7 +27,7 @@ The default output format of ``prospector`` is designed to be human readable. Yo
+ +-------------+----------------------------------------------------------------------------+
+ | Format Name | Notes                                                                      |
+ +=============+============================================================================+
+-| ``emacs``   | | Support for emacs compilation output mode, see `issue_16`_.                |
++| ``emacs``   | | Support for emacs compilation output mode, see `issue_16`_.              |
+ +-------------+----------------------------------------------------------------------------+
+ | ``grouped`` | | Similar to ``text``, but groups all message on the same line together    |
+ |             | | rather than having a separate entry per message.                         |
+@@ -41,9 +41,9 @@ The default output format of ``prospector`` is designed to be human readable. Yo
+ | ``json``    | | Produces a structured, parseable output of the messages and summary. See |
+ |             | | below for more information about the structure.                          |
+ +-------------+----------------------------------------------------------------------------+
+-| ``yaml``    | | Same as JSON except produces YAML output.                                  |
++| ``yaml``    | | Same as JSON except produces YAML output.                                |
+ +-------------+----------------------------------------------------------------------------+
+-| ``text``    | | The default output format, a simple human readable format.                 |
++| ``text``    | | The default output format, a simple human readable format.               |
+ +-------------+----------------------------------------------------------------------------+
+ 
+ 

Added: packages/prospector/trunk/debian/patches/docs-no-sphinx-argparse.patch
===================================================================
--- packages/prospector/trunk/debian/patches/docs-no-sphinx-argparse.patch	                        (rev 0)
+++ packages/prospector/trunk/debian/patches/docs-no-sphinx-argparse.patch	2015-08-07 18:36:30 UTC (rev 12201)
@@ -0,0 +1,18 @@
+Description: sphinx-argparse not yet available in Debian (plainbox has
+ plainbox.vendor.sphinxarg.ext, but in Python 3 path)
+Author: Daniel Stender <debian at danielstender.com>
+Bug: https://bugs.debian.org/794776
+Forwarded: not-needed
+Last-Update: 2015-08-06
+
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -28,7 +28,7 @@
+ # Add any Sphinx extension module names here, as strings. They can be
+ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
+ # ones.
+-extensions = ['sphinxarg.ext']
++# extensions = ['sphinxarg.ext']
+ 
+ # Add any paths that contain templates here, relative to this directory.
+ templates_path = ['_templates']

Added: packages/prospector/trunk/debian/patches/docs-privacy-breaches.patch
===================================================================
--- packages/prospector/trunk/debian/patches/docs-privacy-breaches.patch	                        (rev 0)
+++ packages/prospector/trunk/debian/patches/docs-privacy-breaches.patch	2015-08-07 18:36:30 UTC (rev 12201)
@@ -0,0 +1,28 @@
+Description: patch privacy breaches out of the docs
+Author: Daniel Stender <debian at danielstender.com>
+Forwarded: not-needed
+Last-Update: 2015-08-06
+
+--- a/docs/index.rst
++++ b/docs/index.rst
+@@ -7,20 +7,6 @@
+ About
+ -----
+ 
+-.. image:: https://pypip.in/version/prospector/badge.svg?text=version&style=flat
+-   :target: https://pypi.python.org/pypi/prospector
+-   :alt: Latest Version of Prospector
+-.. image:: https://travis-ci.org/landscapeio/prospector.png?branch=master
+-   :target: https://travis-ci.org/landscapeio/prospector
+-   :alt: Build Status
+-.. image:: https://landscape.io/github/landscapeio/prospector/master/landscape.png?style=flat
+-   :target: https://landscape.io/github/landscapeio/prospector/master
+-   :alt: Code Health
+-.. image:: https://img.shields.io/coveralls/landscapeio/prospector.svg?style=flat
+-   :target: https://coveralls.io/r/landscapeio/prospector
+-   :alt: Test Coverage
+-
+-
+ Prospector is a tool to analyse Python code and output information about errors, potential problems, convention violations and complexity.
+ 
+ It brings together the functionality of other Python analysis tools such as 

Added: packages/prospector/trunk/debian/patches/rename-console-script.patch
===================================================================
--- packages/prospector/trunk/debian/patches/rename-console-script.patch	                        (rev 0)
+++ packages/prospector/trunk/debian/patches/rename-console-script.patch	2015-08-07 18:36:30 UTC (rev 12201)
@@ -0,0 +1,18 @@
+Description: workaround for that a console script "prospector"
+ can't be generated into "/usr/share/prospector" (private modules setup),
+ works together with debian/links.
+Author: Daniel Stender <debian at danielstender.com>
+Forwarded: not-needed
+Last-Update: 2015-08-06
+
+--- a/setup.py
++++ b/setup.py
+@@ -91,7 +91,7 @@
+     packages=_PACKAGES,
+     entry_points={
+         'console_scripts': [
+-            'prospector = prospector.run:main',
++            'console_script = prospector.run:main',
+         ],
+     },
+     install_requires=_INSTALL_REQUIRES,

Added: packages/prospector/trunk/debian/patches/series
===================================================================
--- packages/prospector/trunk/debian/patches/series	                        (rev 0)
+++ packages/prospector/trunk/debian/patches/series	2015-08-07 18:36:30 UTC (rev 12201)
@@ -0,0 +1,4 @@
+docs-correct-some-flaws.patch
+docs-privacy-breaches.patch
+docs-no-sphinx-argparse.patch
+rename-console-script.patch

Added: packages/prospector/trunk/debian/prospector.doc-base
===================================================================
--- packages/prospector/trunk/debian/prospector.doc-base	                        (rev 0)
+++ packages/prospector/trunk/debian/prospector.doc-base	2015-08-07 18:36:30 UTC (rev 12201)
@@ -0,0 +1,10 @@
+Document: prospector-docs
+Title: documentation of the Python code analyzer Prospector
+Author: Carl Crowder <emailme at carlcrowder.com>
+Abstract: Prospector is a tool to analyze Python code and output information
+ about errors, potential problems, convention violations, and complexity.
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/prospector/html/index.html
+Files: /usr/share/doc/prospector/html/*.html
\ No newline at end of file

Added: packages/prospector/trunk/debian/prospector.txt
===================================================================
--- packages/prospector/trunk/debian/prospector.txt	                        (rev 0)
+++ packages/prospector/trunk/debian/prospector.txt	2015-08-07 18:36:30 UTC (rev 12201)
@@ -0,0 +1,49 @@
+NAME
+  prospector - static Python code analyzer
+
+SYNOPSIS
+  $ prospector
+
+  $ prospector <path/to/project>
+
+  $ prospector <path/to/module.py path/to/another/module.py>
+
+DESCRIPTION
+ Prospector analyzes Python source files and puts out information about
+ coding errors, potential problems, convention violation and unnecessary
+ complexity. It provides an uniform and flexible interface to a number of
+ tools for static Python code checking.
+
+ By default, Prospector runs the following tools: dodgy, mccabe, pep257,
+ pep8, pep8-naming, profile-validator, pyflakes, and pylint. Prospector
+ auto detects libraries a project uses, to which it could adapt
+ (currently, Celery and Django are supported individually).
+
+ Prospector could be adjusted very detailed to personal coding styles
+ through profiles. For comprehensive information on this application,
+ please see: /usr/share/doc/prospector/html/index.html.
+
+OPTIONS
+  -s,--strictness <veryhigh,high,medium,low,verylow>
+
+     switch reporting level (default: medium)
+
+  -o,--output-format <emacs,grouped,json,pylint,text,xunit,yaml>
+
+     switch output format (default: text)
+
+  -P,--profile <profile>
+
+     one or more profiles to be used (configuration files in YAML format)
+      
+  --help
+
+     show a full list of command line options and flags
+
+SEE ALSO
+  dodgy(1), pep257(1), pep8(1), pyflakes(1), pylint(1) 
+
+AUTHORS
+  prospector was written for Lanscape.io by
+  by Carl Crowder <emailme at carlcrowder.com>, Jeff Quast <contact at jeffquast.com>,
+  Jason Simeone <jay at classless.net>, and Sam Spilsbury <smspillaz at gmail.com>

Added: packages/prospector/trunk/debian/rules
===================================================================
--- packages/prospector/trunk/debian/rules	                        (rev 0)
+++ packages/prospector/trunk/debian/rules	2015-08-07 18:36:30 UTC (rev 12201)
@@ -0,0 +1,32 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+export DEB_BUILD_OPTIONS=nocheck # needs fix to run w/o optionals (vulture, frosted, pyroma)
+
+export PYBUILD_NAME=prospector
+export PYBUILD_TEST_NOSE=1
+
+VERSION := $(shell dpkg-parsechangelog -Sversion | cut -d- -f1)
+DEBDATE := $(shell dpkg-parsechangelog -Sdate | date -u +%F -f -)
+
+%:
+	dh $@ --with python2,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_build:
+
+override_dh_auto_install:
+	python setup.py install --root=debian/prospector --install-layout=deb --install-lib=/usr/share/prospector --install-scripts=/usr/share/prospector
+
+override_dh_installdocs:
+ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
+	pandoc -f markdown_github -t plain -o .pybuild/README README.md
+	dh_installdocs .pybuild/README
+	PYTHONPATH=. sphinx-build -N -bhtml docs/ debian/prospector/usr/share/doc/prospector/html/
+endif
+
+override_dh_installchangelogs:
+	pandoc -f markdown_github -t plain -o .pybuild/CHANGELOG CHANGELOG.md
+	dh_installchangelogs .pybuild/CHANGELOG
+
+override_dh_installman:
+	txt2man -s 1 -v "prospector" -t "prospector" -r "$(VERSION)" -d "$(DEBDATE)" debian/prospector.txt > .pybuild/prospector.1
+	dh_installman .pybuild/prospector.1


Property changes on: packages/prospector/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/prospector/trunk/debian/source/format
===================================================================
--- packages/prospector/trunk/debian/source/format	                        (rev 0)
+++ packages/prospector/trunk/debian/source/format	2015-08-07 18:36:30 UTC (rev 12201)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: packages/prospector/trunk/debian/watch
===================================================================
--- packages/prospector/trunk/debian/watch	                        (rev 0)
+++ packages/prospector/trunk/debian/watch	2015-08-07 18:36:30 UTC (rev 12201)
@@ -0,0 +1,4 @@
+version=3
+opts="filenamemangle=s/(?:.*\/)?(\d[\d\.]+)\.tar\.gz/prospector-$1.tar.gz/" \
+https://github.com/landscapeio/prospector/releases (?:.*/)?(\d[\d\.]+)\.tar\.gz
+# Github tarball ships with tests and doc source




More information about the Python-apps-commits mailing list