Date: Tuesday, March 7, 2023 @ 20:42:00
Author: alerque
Revision: 1416752
archrelease: copy trunk to community-x86_64
Added:
python-pyclipper/repos/community-x86_64/
python-pyclipper/repos/community-x86_64/PKGBUILD
(from rev 1416751, python-pyclipper/trunk/PKGBUILD)
python-pyclipper/repos/community-x86_64/update-scm-version.patch
(from rev 1416751, python-pyclipper/trunk/update-scm-version.patch)
--------------------------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
update-scm-version.patch | 28 ++++++++++++++++++++++++++++
2 files changed, 65 insertions(+)
Copied: python-pyclipper/repos/community-x86_64/PKGBUILD (from rev 1416751,
python-pyclipper/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2023-03-07 20:42:00 UTC (rev 1416752)
@@ -0,0 +1,37 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: grandchild
+
+pkgbase=python-pyclipper
+_pyname=pyclipper
+pkgname="python-$_pyname"
+pkgver=1.3.0.post4
+pkgrel=3
+pkgdesc='Cython wrapper for the C++ translation of the Angus Johnson’s Clipper
library'
+url="https://github.com/fonttools/$_pyname"
+arch=(x86_64 i686)
+license=(MIT)
+depends=(python)
+makedepends=(cython
+ python-{build,installer,wheel}
+ python-setuptools-scm)
+_archive="$_pyname-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz"
+ update-scm-version.patch)
+sha256sums=('b73b19d2a1b895edcacaf4acb441e13e99b9e5fd53b9c0dfd2e1326e2bf68a7a'
+ '0e3cf27a376ba54c15c05b2cc6bbacd55ca7984ebe326ce4d825058a69c1a087')
+
+prepare() {
+ cd "$_archive"
+ patch -p1 -i "$srcdir/${source[1]}"
+}
+
+build() {
+ cd "$_archive"
+ python -m build -wn
+}
+
+package() {
+ cd "$_archive"
+ python -m installer -d "$pkgdir" dist/*.whl
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}
Copied: python-pyclipper/repos/community-x86_64/update-scm-version.patch (from
rev 1416751, python-pyclipper/trunk/update-scm-version.patch)
===================================================================
--- community-x86_64/update-scm-version.patch (rev 0)
+++ community-x86_64/update-scm-version.patch 2023-03-07 20:42:00 UTC (rev
1416752)
@@ -0,0 +1,28 @@
+From 06bdb265967fdb581336578a45e1bbcdd6594920 Mon Sep 17 00:00:00 2001
+From: Marco Rubin <[email protected]>
+Date: Wed, 11 Jan 2023 13:04:06 +0000
+Subject: [PATCH] Remove setuptools_scm_git_archive as it's obsolete
+
+From the project
[README](https://github.com/Changaco/setuptools_scm_git_archive):
+
+```
+This plugin is obsolete. ``setuptools_scm >= 7.0.0`` supports Git archives by
itself.
+```
+---
+ pyproject.toml | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index b99dd09..0f68b82 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -2,8 +2,7 @@
+ requires = [
+ "setuptools",
+ "wheel",
+- "setuptools_scm",
+- "setuptools_scm_git_archive",
++ "setuptools_scm>=7.0.0",
+ "cython",
+ ]
+