Date: Monday, January 9, 2023 @ 21:19:12 Author: dvzrv Revision: 1382179
upgpkg: python-sphinxcontrib-towncrier 0.3.2a0-2: Rebuild to fix makedepends. Remove python-setuptools-scm-git-archive from makedepends by applying upstreamed patch: https://github.com/sphinx-contrib/sphinxcontrib-towncrier/pull/80 Added: python-sphinxcontrib-towncrier/trunk/0001-Update-build-system-dependencies.patch Modified: python-sphinxcontrib-towncrier/trunk/PKGBUILD ---------------------------------------------+ 0001-Update-build-system-dependencies.patch | 35 ++++++++++++++++++++++++++ PKGBUILD | 14 +++++++--- 2 files changed, 45 insertions(+), 4 deletions(-) Added: 0001-Update-build-system-dependencies.patch =================================================================== --- 0001-Update-build-system-dependencies.patch (rev 0) +++ 0001-Update-build-system-dependencies.patch 2023-01-09 21:19:12 UTC (rev 1382179) @@ -0,0 +1,35 @@ +From 37de362cd2852057e08123920c6f14fac2f02ba4 Mon Sep 17 00:00:00 2001 +From: David Runge <[email protected]> +Date: Mon, 9 Jan 2023 22:13:32 +0100 +Subject: [PATCH] Update build-system dependencies + +pyproject.toml: +Update setuptools-scm to >= 7.1.0 to drop the requirement for +setuptools-scm-git-archive (since the functionality is included since +7.0.0). +Update requirement for setuptools accordingly. +--- + pyproject.toml | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index f53bdb2..768de59 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,11 +1,10 @@ + [build-system] + requires = [ + # Essentials +- "setuptools>=40.6.0", ++ "setuptools>=45", + + # Plugins +- "setuptools_scm[toml] >= 3.5", # version is required for "no-local-version" scheme + toml extra is needed for supporting config in this file +- "setuptools_scm_git_archive >= 1.1", ++ "setuptools_scm[toml] >= 7.1.0", # version is required for "no-local-version" scheme + toml extra is needed for supporting config in this file + ] + build-backend = "setuptools.build_meta" + +-- +2.39.0 + Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-01-09 20:24:22 UTC (rev 1382178) +++ PKGBUILD 2023-01-09 21:19:12 UTC (rev 1382179) @@ -2,7 +2,7 @@ pkgname=python-sphinxcontrib-towncrier pkgver=0.3.2a0 -pkgrel=1 +pkgrel=2 pkgdesc="An RST directive for injecting a Towncrier-generated changelog draft containing fragments for the unreleased (next) project version" url="https://github.com/sphinx-contrib/sphinxcontrib-towncrier" license=('BSD') @@ -9,13 +9,19 @@ arch=('any') depends=('python-sphinx' 'towncrier') makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-setuptools-scm' - 'python-setuptools-scm-git-archive' 'python-wheel') + 'python-wheel') checkdepends=('python-pytest-xdist') -source=("https://github.com/sphinx-contrib/sphinxcontrib-towncrier/archive/v$pkgver/$pkgname-$pkgver.tar.gz") -sha512sums=('3194136b8758b2881687af5a4fe56d1524fb6c0fe77745b25632895a6c7b6ed4a052d5cf000acabf9fb7c2ebce2e7e0a907d143d014d7be275f61547c0c76122') +source=( + "https://github.com/sphinx-contrib/sphinxcontrib-towncrier/archive/v$pkgver/$pkgname-$pkgver.tar.gz" + 0001-Update-build-system-dependencies.patch +) +sha512sums=('3194136b8758b2881687af5a4fe56d1524fb6c0fe77745b25632895a6c7b6ed4a052d5cf000acabf9fb7c2ebce2e7e0a907d143d014d7be275f61547c0c76122' + 'e8c5f943e4ad8990a97a6aa8e493a1346cd9725a08c2b3e6ab0f3eb9371b9a63a55bad242060916f8a5ebfefe2a4c5c96b9a73291996fe3a4693c9b0920ca6b8') prepare() { cd sphinxcontrib-towncrier-$pkgver + # remove requirement for python-setuptools-scm-git-archive: https://github.com/sphinx-contrib/sphinxcontrib-towncrier/pull/80 + patch -Np1 -i ../0001-Update-build-system-dependencies.patch sed -i '/pytest_cov/d;/--cov/d' pytest.ini }
