From 0a2f00feacfa1909984ae80130937de20f825d23 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 30 Dec 2018 16:26:37 +0100 Subject: [PATCH] python-Cheroot: update fix Upstream moved to declarative configuration. See https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files. --- srcpkgs/python-Cheroot/template | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python-Cheroot/template b/srcpkgs/python-Cheroot/template index a2a6bdd9a3..0c339ecfac 100644 --- a/srcpkgs/python-Cheroot/template +++ b/srcpkgs/python-Cheroot/template @@ -1,7 +1,7 @@ # Template file for 'python-Cheroot' pkgname=python-Cheroot version=6.5.3 -revision=1 +revision=2 noarch=yes wrksrc="cheroot-${version}" build_style=python-module @@ -18,9 +18,12 @@ checksum=e40936ed5d8e88a2e6ddb8c3b7d9e93b898e898bc6d2f5dbdd560ecb3d62c734 alternatives="cheroot:cheroot:/usr/bin/cheroot2" pre_build() { - sed -i setup.py \ + sed -i setup.cfg \ -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() {