mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
python/python3-pydocstyle: Update for 6.3.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
2c3879e850
commit
486b437431
2 changed files with 12 additions and 5 deletions
|
@ -25,7 +25,7 @@
|
|||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=python3-pydocstyle
|
||||
VERSION=${VERSION:-6.2.0}
|
||||
VERSION=${VERSION:-6.3.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
@ -66,7 +66,14 @@ find -L . \
|
|||
|
||||
# Fix version number within metadata (code taken from the Arch Linux PKGBUILD):
|
||||
# https://gitlab.archlinux.org/archlinux/packaging/packages/python-pydocstyle/-/blob/main/PKGBUILD
|
||||
sed -e "s|^version = .*|version = \"$VERSION\"|" -i pyproject.toml
|
||||
sed -e "s|version = \"0.0.0-dev\"|version = \"$VERSION\"|" -i pyproject.toml
|
||||
|
||||
# The source (optionally) requires tomli at >=1.2.3 for reading .toml configs.
|
||||
# However, the only change between tomli 1.2.2 and 1.2.3 is a fix that allows lower case "t" and "z" within datetimes:
|
||||
# https://github.com/hukkin/tomli/compare/1.2.2...1.2.3
|
||||
# These edits allow python3-pydocstyle to use tomli 1.2.2 (the version installed in Slackware 15.0) instead.
|
||||
sed -e "s|version = \">=1.2.3\"|version = \">=1.2.2\"|" -i pyproject.toml
|
||||
sed "s/tomli>=1.2.3/tomli>=1.2.2/g" -i requirements/runtime.txt
|
||||
|
||||
python3 -m build --no-isolation
|
||||
python3 -m installer -d "$PKG" dist/*.whl
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="python3-pydocstyle"
|
||||
VERSION="6.2.0"
|
||||
VERSION="6.3.0"
|
||||
HOMEPAGE="http://www.pydocstyle.org/"
|
||||
DOWNLOAD="https://github.com/PyCQA/pydocstyle/archive/6.2.0/pydocstyle-6.2.0.tar.gz"
|
||||
MD5SUM="aa1ed3b326ffed8f4e857aa0f79bfa44"
|
||||
DOWNLOAD="https://github.com/PyCQA/pydocstyle/archive/6.3.0/pydocstyle-6.3.0.tar.gz"
|
||||
MD5SUM="2327b2a8d30cc1f293339b9c1ee53956"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="python3-poetry-core snowballstemmer"
|
||||
|
|
Loading…
Reference in a new issue