Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: python-sphinxcontrib-towncrier 0.3.2a0-2: Rebuild to fix make…
Browse files Browse the repository at this point in the history
…depends.

Remove python-setuptools-scm-git-archive from makedepends by applying upstreamed patch:
sphinx-contrib/sphinxcontrib-towncrier#80

git-svn-id: file:///srv/repos/svn-community/svn@1382179 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
dvzrv authored and svntogit committed Jan 9, 2023
1 parent e47fba5 commit fa30f96
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 4 deletions.
35 changes: 35 additions & 0 deletions trunk/0001-Update-build-system-dependencies.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
From 37de362cd2852057e08123920c6f14fac2f02ba4 Mon Sep 17 00:00:00 2001
From: David Runge <dave@sleepmap.de>
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

14 changes: 10 additions & 4 deletions trunk/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,26 @@

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')
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
}

Expand Down

0 comments on commit fa30f96

Please # to comment.