PSARC 2012/301 pep8 version 1.3.3 - Python Style Guide Checker s11-update
authorRich Burridge <rich.burridge@oracle.com>
Tue, 23 Apr 2013 06:59:16 -0700
branchs11-update
changeset 2582 bb7506e1881b
parent 2581 b927e39694f4
child 2584 ad7971db6ec0
PSARC 2012/301 pep8 version 1.3.3 - Python Style Guide Checker 16425619 Request to update pep8 to the latest version in s12 16425549 pep8 needs a man page.
components/python/pep8/Makefile
components/python/pep8/Oracle.copyright
components/python/pep8/files/pep8.1
components/python/pep8/pep8-GENFRAG.p5m
components/python/pep8/pep8-PYVER.p5m
components/python/pep8/pep8.license
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/pep8/Makefile	Tue Apr 23 06:59:16 2013 -0700
@@ -0,0 +1,67 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=		pep8
+COMPONENT_VERSION=	1.4.4
+COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
+COMPONENT_PROJECT_URL=  http://pypi.python.org/pypi/pep8
+COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
+COMPONENT_ARCHIVE_HASH=	\
+    sha256:a39adf83fdeab6072117087dd5b7daa8b6a5ec254730e1c4756f1d5687145258
+COMPONENT_ARCHIVE_URL=	http://pypi.python.org/packages/source/p/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
+COMPONENT_BUGDB=	python-mod/pep8
+
+include $(WS_TOP)/make-rules/prep.mk
+include $(WS_TOP)/make-rules/setup.py.mk
+include $(WS_TOP)/make-rules/ips.mk
+
+# Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones.
+COMPONENT_PRE_BUILD_ACTION = \
+	/usr/bin/find $(SOURCE_DIR) -name *.py \
+		-exec $(GSED) -i -e 's/env python/python$(PYTHON_VERSION)/' "{}" \; ;
+
+# Put the correct pep8 version number on the .TH line in the man page in
+# the proto area.
+COMPONENT_POST_INSTALL_ACTION += \
+	($(MKDIR) $(PROTO_DIR)/usr/share/man/man1; \
+	$(GSED) -e 's/XXX/$(COMPONENT_VERSION)/' \
+	    $(COMPONENT_DIR)/files/pep8.1 > \
+	    $(PROTO_DIR)/usr/share/man/man1/pep8.1);
+
+COMPONENT_POST_INSTALL_ACTION += \
+	(cd $(PROTO_DIR)/usr/bin ; $(MV) -f pep8 pep8-$(PYTHON_VERSION))
+
+# common targets
+build:		$(BUILD_32)
+
+install:	$(INSTALL_32)
+
+test:		$(NO_TESTS)
+
+BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
+
+include $(WS_TOP)/make-rules/depend.mk
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/pep8/Oracle.copyright	Tue Apr 23 06:59:16 2013 -0700
@@ -0,0 +1,1 @@
+Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/pep8/files/pep8.1	Tue Apr 23 06:59:16 2013 -0700
@@ -0,0 +1,50 @@
+.\" This manual page is derived from documentation obtained from
+.\" http://manpages.ubuntu.com/manpages/precise/en/man1/pep8.1.html
+.TH PEP8 "1" "March 2013" "pep8 XXX" "User Commands"
+.SH NAME
+pep8 \- A tool to check your Python code against some of the style conventions in PEP 8.
+.SH SYNOPSIS
+.B pep8
+[\fIoptions\fR] \fIinput \fR...
+.SH OPTIONS
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+show this help message and exit
+.TP
+\fB\-v\fR, \fB\-\-verbose\fR
+print status messages, or debug with \fB\-vv\fR
+.TP
+\fB\-q\fR, \fB\-\-quiet\fR
+report only file names, or nothing with \fB\-qq\fR
+.TP
+\fB\-\-exclude\fR=\fIpatterns\fR
+skip matches (default .svn,CVS,*.pyc,*.pyo)
+.TP
+\fB\-\-filename\fR=\fIpatterns\fR
+only check matching files (e.g. *.py)
+.TP
+\fB\-\-ignore\fR=\fIerrors\fR
+skip errors and warnings (e.g. E4,W)
+.TP
+\fB\-\-repeat\fR
+show all occurrences of the same error
+.TP
+\fB\-\-show\-source\fR
+show source code for each error
+.TP
+\fB\-\-show\-pep8\fR
+show text of PEP 8 for each error
+.TP
+\fB\-\-statistics\fR
+count errors and warnings
+.TP
+\fB\-\-benchmark\fR
+measure processing speed
+.TP
+\fB\-\-testsuite\fR=\fIdir\fR
+run regression tests from dir
+.TP
+\fB\-\-doctest\fR
+run doctest on myself
+.SH AUTHOR
+This manual page was written by David Watson <[email protected]>.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/pep8/pep8-GENFRAG.p5m	Tue Apr 23 06:59:16 2013 -0700
@@ -0,0 +1,27 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+#
+
+<transform file path=usr.*/man/.+ -> default mangler.man.stability uncommitted>
+
+file path=usr/share/man/man1/pep8.1
+license Oracle.copyright license="Oracle copyright"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/pep8/pep8-PYVER.p5m	Tue Apr 23 06:59:16 2013 -0700
@@ -0,0 +1,55 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+#
+
+set name=pkg.fmri \
+    value=pkg:/library/python-2/pep8-$(PYV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="pep8 - Python style guide checker"
+set name=pkg.description \
+    value="pep8 is a tool to check your Python code against some of the style conventions in PEP 8 (Style Guide for Python Code)."
+set name=com.oracle.info.description value="the pep8 Python style guide checker"
+set name=com.oracle.info.tpno value=12771
+set name=info.classification \
+    value=org.opensolaris.category.2008:Development/Python
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
+set name=org.opensolaris.arc-caseid value=PSARC/2012/301
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+link path=usr/bin/pep8 target=pep8-$(PYVER) mediator=python \
+    mediator-version=$(PYVER)
+file path=usr/bin/pep8-$(PYVER)
+file path=usr/lib/python$(PYVER)/vendor-packages/pep8-$(COMPONENT_VERSION)-py$(PYVER).egg-info/PKG-INFO
+file path=usr/lib/python$(PYVER)/vendor-packages/pep8-$(COMPONENT_VERSION)-py$(PYVER).egg-info/SOURCES.txt
+file path=usr/lib/python$(PYVER)/vendor-packages/pep8-$(COMPONENT_VERSION)-py$(PYVER).egg-info/dependency_links.txt
+file path=usr/lib/python$(PYVER)/vendor-packages/pep8-$(COMPONENT_VERSION)-py$(PYVER).egg-info/entry_points.txt
+file path=usr/lib/python$(PYVER)/vendor-packages/pep8-$(COMPONENT_VERSION)-py$(PYVER).egg-info/namespace_packages.txt
+file path=usr/lib/python$(PYVER)/vendor-packages/pep8-$(COMPONENT_VERSION)-py$(PYVER).egg-info/not-zip-safe
+file path=usr/lib/python$(PYVER)/vendor-packages/pep8-$(COMPONENT_VERSION)-py$(PYVER).egg-info/requires.txt
+file path=usr/lib/python$(PYVER)/vendor-packages/pep8-$(COMPONENT_VERSION)-py$(PYVER).egg-info/top_level.txt
+file path=usr/lib/python$(PYVER)/vendor-packages/pep8.py \
+    pkg.depend.bypass-generate=.*/configparser.* \
+    pkg.depend.bypass-generate=.*/test_pep8.*
+license pep8.license license="expat license"
+
+# force a dependency on the pep8 package
+depend type=require \
+    fmri=library/python-2/[email protected]$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/pep8/pep8.license	Tue Apr 23 06:59:16 2013 -0700
@@ -0,0 +1,21 @@
+Copyright (C) 2006 Johann C. Rocholl <[email protected]>
+
+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.