Date: Friday, April 7, 2023 @ 04:31:05
Author: felixonmars
Revision: 1440530
archrelease: copy trunk to community-staging-any
Added:
python-sphinxcontrib-towncrier/repos/community-staging-any/
python-sphinxcontrib-towncrier/repos/community-staging-any/0001-Update-build-system-dependencies.patch
(from rev 1440529,
python-sphinxcontrib-towncrier/trunk/0001-Update-build-system-dependencies.patch)
python-sphinxcontrib-towncrier/repos/community-staging-any/PKGBUILD
(from rev 1440529, python-sphinxcontrib-towncrier/trunk/PKGBUILD)
---------------------------------------------+
0001-Update-build-system-dependencies.patch | 35 +++++++++++++++++++++
PKGBUILD | 42 ++++++++++++++++++++++++++
2 files changed, 77 insertions(+)
Copied:
python-sphinxcontrib-towncrier/repos/community-staging-any/0001-Update-build-system-dependencies.patch
(from rev 1440529,
python-sphinxcontrib-towncrier/trunk/0001-Update-build-system-dependencies.patch)
===================================================================
--- community-staging-any/0001-Update-build-system-dependencies.patch
(rev 0)
+++ community-staging-any/0001-Update-build-system-dependencies.patch
2023-04-07 04:31:05 UTC (rev 1440530)
@@ -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
+
Copied: python-sphinxcontrib-towncrier/repos/community-staging-any/PKGBUILD
(from rev 1440529, python-sphinxcontrib-towncrier/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-07 04:31:05 UTC (rev 1440530)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-sphinxcontrib-towncrier
+pkgver=0.3.2a0
+pkgrel=3
+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-wheel')
+checkdepends=('python-pytest-xdist')
+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
+}
+
+build() {
+ cd sphinxcontrib-towncrier-$pkgver
+ python -m build -nw
+}
+
+check() {
+ cd sphinxcontrib-towncrier-$pkgver
+ PYTHONPATH="$PWD"/src pytest
+}
+
+package() {
+ cd sphinxcontrib-towncrier-$pkgver
+ python -m installer -d "$pkgdir" dist/*.whl
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}