Browse Source

l/python-flake8: Upgraded to python-flake8-3.7.9.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
4dc30774a4
  1. 1
      l/python-flake8/flake8-3.7.8.tar.gz.sha256
  2. 1
      l/python-flake8/flake8-3.7.9.tar.gz.sha256
  3. 22
      l/python-flake8/python-flake8.SlackBuild

1
l/python-flake8/flake8-3.7.8.tar.gz.sha256

@ -1 +0,0 @@
19241c1cbc971b9962473e4438a2ca19749a7dd002dd1a946eaba171b4114548 flake8-3.7.8.tar.gz

1
l/python-flake8/flake8-3.7.9.tar.gz.sha256

@ -0,0 +1 @@
45681a117ecc81e870cbf1262835ae4af5e7a8b08e40b944a8a6e6b895914cfb flake8-3.7.9.tar.gz

22
l/python-flake8/python-flake8.SlackBuild

@ -24,15 +24,15 @@
#
# Latest flake8 sourcecode is available at: <https://gitlab.com/pycqa/flake8>.
#
# Depends: l/python-entrypoints, l/pyflakes, l/pycodestyle
# Depends: l/python-mccabe, l/python-enum34, l/python-typing
# Depends: l/python-backports, l/python-functools32
# Depends: l/python-entrypoints, l/python-mccabe, l/pycodestyle, l/pyflakes
# Optional: l/python-backports, l/python-enum34, l/python-functools32
#
# Note: The optional dependencies above are only needed for Python 2.
# Source package infos
NAMESRC=${NAMESRC:-flake8}
VERSION=${VERSION:-3.7.8}
VERSION=${VERSION:-3.7.9}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/8d/a7/99222c9200af533c1ecb1120d99adbd1c033b57296ac5cb39d121db007a8/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-flake8}
@ -61,8 +61,7 @@ fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
@ -72,8 +71,9 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
# Build for Python 3 only.
python3 setup.py build
python3 setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
@ -87,12 +87,8 @@ install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
cat <<EOF > $PKG/install/slack-required
pycodestyle
pyflakes
python-backports
python-entrypoints
python-enum34
python-functools32
python-mccabe
python-typing
EOF
# Package the tree

Loading…
Cancel
Save