diff options
Diffstat (limited to 'python/mypy')
-rw-r--r-- | python/mypy/README | 2 | ||||
-rw-r--r-- | python/mypy/mypy.SlackBuild | 20 | ||||
-rw-r--r-- | python/mypy/mypy.info | 8 |
3 files changed, 19 insertions, 11 deletions
diff --git a/python/mypy/README b/python/mypy/README index fc2ac581d9..aac9064f09 100644 --- a/python/mypy/README +++ b/python/mypy/README @@ -7,5 +7,3 @@ fall back to dynamic typing when static typing is not convenient, such as for legacy code. This (source) is downloaded from pypi.org/projects/mypy as the mypi github site does not have a complete sourcecode zip. - -This requires typing-extensions created with python3 present. diff --git a/python/mypy/mypy.SlackBuild b/python/mypy/mypy.SlackBuild index fbc48133ae..db07edb032 100644 --- a/python/mypy/mypy.SlackBuild +++ b/python/mypy/mypy.SlackBuild @@ -1,9 +1,9 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for mypy # Written by Tim Dickson dickson.tim@googlemail.com -# Copyright (c) 2018-20 Tim Dickson, Scotland +# Copyright (c) 2018-24 Tim Dickson, Scotland # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,10 +26,13 @@ # note to self. github source tar.gz misses out typeshed directory contents, # so use pypi.org/project/mypy download source tar.gz instead. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=mypy -VERSION=${VERSION:-0.800} +VERSION=${VERSION:-1.10.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -39,7 +42,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} @@ -86,4 +96,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/mypy/mypy.info b/python/mypy/mypy.info index 6fed889910..075f53638a 100644 --- a/python/mypy/mypy.info +++ b/python/mypy/mypy.info @@ -1,10 +1,10 @@ PRGNAM="mypy" -VERSION="0.800" +VERSION="1.10.0" HOMEPAGE="https://github.com/python/mypy" -DOWNLOAD="https://files.pythonhosted.org/packages/80/5b/8b3ed91920fe20ffa4b6473966b4a98e9759f7245e2232faf29c6c56d150/mypy-0.800.tar.gz" -MD5SUM="94ac9077ad82ad919662c8167a83c10d" +DOWNLOAD="https://files.pythonhosted.org/packages/c3/b6/297734bb9f20ddf5e831cf4a83f422ddef5a29a33463999f0959d9cdc2df/mypy-1.10.0.tar.gz" +MD5SUM="fc3dad1171168682b7ddd185cba15cca" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="typed_ast typing-extensions mypy_extensions %README%" +REQUIRES="typing-extensions mypy_extensions" MAINTAINER="Tim Dickson" EMAIL="dickson.tim@googlemail.com" |