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:
parent
9c3a063237
commit
0a2f00feac
1 changed files with 6 additions and 3 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue