python-Cheroot: update fix

Upstream moved to declarative configuration.
See https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files.
This commit is contained in:
Alessio Sergi 2018-12-30 16:26:37 +01:00
parent 9c3a063237
commit 0a2f00feac

View file

@ -1,7 +1,7 @@
# Template file for 'python-Cheroot' # Template file for 'python-Cheroot'
pkgname=python-Cheroot pkgname=python-Cheroot
version=6.5.3 version=6.5.3
revision=1 revision=2
noarch=yes noarch=yes
wrksrc="cheroot-${version}" wrksrc="cheroot-${version}"
build_style=python-module build_style=python-module
@ -18,9 +18,12 @@ checksum=e40936ed5d8e88a2e6ddb8c3b7d9e93b898e898bc6d2f5dbdd560ecb3d62c734
alternatives="cheroot:cheroot:/usr/bin/cheroot2" alternatives="cheroot:cheroot:/usr/bin/cheroot2"
pre_build() { pre_build() {
sed -i setup.py \ sed -i setup.cfg \
-e '/setuptools_scm/d' \ -e '/setuptools_scm/d' \
-e "s|use_scm_version=True|version='${version}'|" -e '/setuptools_scm_git_archive/d' \
-e '/use_scm_version/d' \
-e "/name = /a\
version = ${version}"
} }
post_install() { post_install() {