diff options
-rw-r--r-- | python/mock/README | 15 | ||||
-rw-r--r-- | python/mock/mock.SlackBuild | 20 | ||||
-rw-r--r-- | python/mock/mock.info | 14 | ||||
-rw-r--r-- | python/mock/slack-desc | 16 |
4 files changed, 33 insertions, 32 deletions
diff --git a/python/mock/README b/python/mock/README index 78559c943f..448beb6f81 100644 --- a/python/mock/README +++ b/python/mock/README @@ -1,10 +1,9 @@ -mock implements a Mocking and Testing Library in Python +mock (unit test library for Python 2) -mock is a Python module that provides a core Mock class. It removes -the need to create a host of stubs throughout your test suite. -The mock module also provides a patch() decorator that handles -patching module and class level attributes within the scope of a -test, along with sentinel for creating unique objects. -mock is tested on Python versions 2.4-2.7 and Python 3. +mock is a library for testing in Python 2. It allows you to replace parts of +your system under test with mock objects, and to make assertions about how they +have been used. -This is required by tahoe-lafs +IMPORTANT: For Python3 you do not need this module. Please use the standard +library instead (unittest.mock). This package contains a rolling backport of +the standard library compatible with Python 2.7. diff --git a/python/mock/mock.SlackBuild b/python/mock/mock.SlackBuild index 35f595a613..49a29091b0 100644 --- a/python/mock/mock.SlackBuild +++ b/python/mock/mock.SlackBuild @@ -1,6 +1,9 @@ #!/bin/sh -# Slackware build script for mock. +# Slackware build script for mock + +# Created by Markus Reichelt, slackbuilds@mareichelt.de, 0xCCEEF115 +# Updated for version 2.0.0 by David Spencer <baildon.research@googlemail.com> # Copyright 2011-2013 Markus Reichelt, Stolberg (Rhld.), DE # All rights reserved. @@ -22,16 +25,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Markus Reichelt, slackbuilds@mareichelt.de, 0xCCEEF115 PRGNAM=mock -VERSION=${VERSION:-1.0.1} +VERSION=${VERSION:-2.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -42,8 +44,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -67,9 +69,9 @@ cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; python setup.py install --root=$PKG @@ -78,7 +80,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - README.txt LICENSE.txt \ + AUTHORS ChangeLog LICENSE.txt NEWS README.rst \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/python/mock/mock.info b/python/mock/mock.info index f420253344..30c1bef094 100644 --- a/python/mock/mock.info +++ b/python/mock/mock.info @@ -1,10 +1,10 @@ PRGNAM="mock" -VERSION="1.0.1" -HOMEPAGE="http://www.voidspace.org.uk/python/mock/" -DOWNLOAD="https://pypi.python.org/packages/source/m/mock/mock-1.0.1.tar.gz" -MD5SUM="c3971991738caa55ec7c356bbc154ee2" +VERSION="2.0.0" +HOMEPAGE="https://github.com/testing-cabal/mock" +DOWNLOAD="https://files.pythonhosted.org/packages/0c/53/014354fc93c591ccc4abff12c473ad565a2eb24dcd82490fae33dbf2539f/mock-2.0.0.tar.gz" +MD5SUM="0febfafd14330c9dcaa40de2d82d40ad" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Markus Reichelt" -EMAIL="slackbuilds@mareichelt.de" +REQUIRES="pbr" +MAINTAINER="David Spencer" +EMAIL="baildon.research@googlemail.com" diff --git a/python/mock/slack-desc b/python/mock/slack-desc index 9d0fba0934..c417d2346b 100644 --- a/python/mock/slack-desc +++ b/python/mock/slack-desc @@ -6,14 +6,14 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -mock: mock (implements a Mocking and Testing Library in Python) +mock: mock (unit test library for Python 2) mock: -mock: mock is a Python module that provides a core Mock class. It removes -mock: the need to create a host of stubs throughout your test suite. -mock: The mock module also provides a patch() decorator that handles -mock: patching module and class level attributes within the scope of a -mock: test, along with sentinel for creating unique objects. -mock: mock is tested on Python versions 2.4-2.7 and Python 3. +mock: mock is a library for testing in Python 2. It allows you to replace +mock: parts of your system under test with mock objects and make assertions +mock: about how they have been used. +mock: +mock: IMPORTANT: For Python3 you do not need this module. Please use the +mock: standard library instead (unittest.mock). This package contains a +mock: rolling backport of the standard library compatible with Python 2.7. mock: -mock: Homepage: http://www.voidspace.org.uk/python/mock/ mock: |