diff options
Diffstat (limited to 'python/pytest')
-rw-r--r-- | python/pytest/README | 2 | ||||
-rw-r--r-- | python/pytest/pytest.SlackBuild | 18 | ||||
-rw-r--r-- | python/pytest/pytest.info | 4 |
3 files changed, 18 insertions, 6 deletions
diff --git a/python/pytest/README b/python/pytest/README index f0da7f419a..a9ff767d7e 100644 --- a/python/pytest/README +++ b/python/pytest/README @@ -1,2 +1,4 @@ The pytest testing tool makes it easy to write small tests, yet scales to support complex functional testing. + +This is the Python 2 build of pytest. diff --git a/python/pytest/pytest.SlackBuild b/python/pytest/pytest.SlackBuild index ed07064d6f..b3585030d0 100644 --- a/python/pytest/pytest.SlackBuild +++ b/python/pytest/pytest.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for pytest @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=pytest VERSION=${VERSION:-3.8.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -82,4 +92,4 @@ 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} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/python/pytest/pytest.info b/python/pytest/pytest.info index eca0b760fd..f66a59d9d4 100644 --- a/python/pytest/pytest.info +++ b/python/pytest/pytest.info @@ -1,10 +1,10 @@ PRGNAM="pytest" VERSION="3.8.2" HOMEPAGE="https://docs.pytest.org/en/latest/" -DOWNLOAD="https://files.pythonhosted.org/packages/5f/d2/7f77f406ac505abda02ab4afb50d06ebf304f6ea42fca34f8f37529106b2/pytest-3.8.2.tar.gz" +DOWNLOAD="https://files.pythonhosted.org/packages/source/p/pytest/pytest-3.8.2.tar.gz" MD5SUM="8e7d324528a63c2dab64a10ae028e0f2" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="setuptools-scm py six attrs pluggy more-itertools atomicwrites funcsigs pathlib2" +REQUIRES="python2-py python2-attrs python2-pluggy more-itertools python2-atomicwrites funcsigs python2-pathlib2" MAINTAINER="Dimitris Zlatanidis" EMAIL="d.zlatanidis@gmail.com" |