summaryrefslogtreecommitdiff
path: root/development/pep8
diff options
context:
space:
mode:
authorAudrius Kažukauskas <audrius@neutrino.lt>2010-08-22 19:21:43 -0500
committerErik Hanson <erik@slackbuilds.org>2010-08-23 00:53:50 -0500
commitde92d1d88f6e10113d1130c3a99d9546b9f4b78a (patch)
tree5d55891563924b8b75b2b93a1adab1e6e649b653 /development/pep8
parent1aca52b6a7b157424fbead459d3d7f909c447ac0 (diff)
downloadslackbuilds-de92d1d88f6e10113d1130c3a99d9546b9f4b78a.tar.gz
development/pep8: Added (Check Python source code formatting)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'development/pep8')
-rw-r--r--development/pep8/LICENSE.txt21
-rw-r--r--development/pep8/README2
-rw-r--r--development/pep8/pep8.SlackBuild50
-rw-r--r--development/pep8/pep8.info10
-rw-r--r--development/pep8/slack-desc19
5 files changed, 102 insertions, 0 deletions
diff --git a/development/pep8/LICENSE.txt b/development/pep8/LICENSE.txt
new file mode 100644
index 0000000000..c4610a9f6d
--- /dev/null
+++ b/development/pep8/LICENSE.txt
@@ -0,0 +1,21 @@
+Copyright (C) 2006 Johann C. Rocholl <johann@rocholl.net>
+
+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.
diff --git a/development/pep8/README b/development/pep8/README
new file mode 100644
index 0000000000..d5aafb4594
--- /dev/null
+++ b/development/pep8/README
@@ -0,0 +1,2 @@
+pep8 is a tool to check your Python code against some of the style conventions
+in PEP 8 <http://www.python.org/dev/peps/pep-0008/>.
diff --git a/development/pep8/pep8.SlackBuild b/development/pep8/pep8.SlackBuild
new file mode 100644
index 0000000000..ae1ba76138
--- /dev/null
+++ b/development/pep8/pep8.SlackBuild
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+# Slackware build script for pep8
+# Written by Audrius Kažukauskas <audrius@neutrino.lt>
+
+PRGNAM=pep8
+VERSION=${VERSION:-0.5.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -eu
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+python setup.py install --root=$PKG
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGES.txt README.rst $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/LICENSE.txt > $PKG/usr/doc/$PRGNAM-$VERSION/LICENSE.txt
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/development/pep8/pep8.info b/development/pep8/pep8.info
new file mode 100644
index 0000000000..de7631bb7b
--- /dev/null
+++ b/development/pep8/pep8.info
@@ -0,0 +1,10 @@
+PRGNAM="pep8"
+VERSION="0.5.0"
+HOMEPAGE="http://pypi.python.org/pypi/pep8"
+DOWNLOAD="http://pypi.python.org/packages/source/p/pep8/pep8-0.5.0.tar.gz"
+MD5SUM="512a818af9979290cd619cce8e9c2e2b"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Audrius Kažukauskas"
+EMAIL="audrius@neutrino.lt"
+APPROVED="Erik Hanson"
diff --git a/development/pep8/slack-desc b/development/pep8/slack-desc
new file mode 100644
index 0000000000..016ed3f89e
--- /dev/null
+++ b/development/pep8/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|' on
+# the right side marks the last column you can put a character in. You must make
+# exactly 11 lines for the formatting to be correct. It's also customary to
+# leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+pep8: pep8 (Check Python source code formatting)
+pep8:
+pep8: pep8 is a tool to check your Python code against some of the style
+pep8: conventions in PEP 8 <http://www.python.org/dev/peps/pep-0008/>.
+pep8:
+pep8: Homepage: http://pypi.python.org/pypi/pep8
+pep8:
+pep8:
+pep8:
+pep8:
+pep8: