Package Details: python-skia-pathops 0.8.0.post1-1

Git Clone URL: https://aur.archlinux.org/python-skia-pathops.git (read-only, click to copy)
Package Base: python-skia-pathops
Description: Python bindings for the Skia library’s Path Ops (wheel)
Upstream URL: https://github.com/fonttools/skia-pathops
Licenses: BSD
Submitter: thrasibule
Maintainer: thrasibule (alerque)
Last Packager: alerque
Votes: 5
Popularity: 0.000229
First Submitted: 2019-08-19 18:25 (UTC)
Last Updated: 2024-04-19 07:14 (UTC)

Latest Comments

alerque commented on 2021-12-16 10:12 (UTC)

@shavenne The upstream is broken at the moment, I don't think there is anything we can do but wait for them to rebuild and post appropriate packages.

shavenne commented on 2021-12-15 11:22 (UTC) (edited on 2021-12-15 17:11 (UTC) by shavenne)

I'm getting this =>
ERROR: skia_pathops-0.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl is not a supported wheel on this platform.
while package(). Any idea?

alerque commented on 2021-10-01 19:01 (UTC)

With the latest release of 0.7.0, the upstream has at least bumped to a current Chromium tree and hence build from source should be possible without python2 and other crud that Arch has been removing. I would be happy to see this switch to a source build again. That being said I haven't had the time to sit down and sort it out. If anybody does just know that I'm up for patches here in comments (via git format-patch) or as a PR to this repo on GitHub.

thrasibule commented on 2020-10-07 14:48 (UTC)

The issue is with pytest-cython. I've submitted a fix upstream https://github.com/lgpage/pytest-cython/commit/43f3d148738f77f8579caae49f74f8d548d3f0a9, but they need to make a new release.

alerque commented on 2020-10-07 12:06 (UTC)

I have bumped this to 0.5.1, but the check function is still failing the same way it started to in 0.4.1. You can build it with --nocheck for now, but I have reported the issue upstream because something in the test framework seems to be using something that has been deprecated (either in pytest or one of the other check dependencies).

eliminator commented on 2020-09-22 02:32 (UTC)

fail to build dont pass all tests.

alerque commented on 2020-03-26 07:57 (UTC)

Thanks for bumping this. I'd like to suggest a couple of tweaks in line with the Arch Python package guidelines. I happened to catch PyPI in maintenance mode and the URL recommended on the Wiki is more stable. Also I broke up the package() function into build() and package() steps and made a few other tweeks such as ordering keys and dropping empty ones. Please consider this patch (should apply via git am):

From 0c1a15937e357282b0ddebbb47f6d2d3d0bf7a3e Mon Sep 17 00:00:00 2001
From: Caleb Maclennan <caleb@alerque.com>
Date: Thu, 26 Mar 2020 10:55:48 +0300
Subject: [PATCH] Use stable URL, split build() and package(), cleanup per
 guidelines

Signed-off-by: Caleb Maclennan <caleb@alerque.com>
---
 .SRCINFO |  6 +++---
 PKGBUILD | 38 ++++++++++++++++++++++----------------
 2 files changed, 25 insertions(+), 19 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index 23dffcd..eb357d8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = python-skia-pathops
-   pkgdesc = Python bindings for the Skia library's Path Ops.
+   pkgdesc = Python bindings for the Skia library’s Path Ops
    pkgver = 0.3.0
-   pkgrel = 1
+   pkgrel = 2
    url = https://github.com/fonttools/skia-pathops
    arch = x86_64
    license = BSD
@@ -10,7 +10,7 @@ pkgbase = python-skia-pathops
    makedepends = cython
    makedepends = python-setuptools
    depends = python
-   source = https://pypi.org/packages/source/s/skia-pathops/skia-pathops-0.3.0.zip
+   source = https://files.pythonhosted.org/packages/source/s/skia-pathops/skia-pathops-0.3.0.zip
    sha256sums = 9d5ad3d0e7be0e6ba542ad769a8149f97bf0d431520167840ad3fc4472d16585

 pkgname = python-skia-pathops
diff --git a/PKGBUILD b/PKGBUILD
index ebd2f19..88a2017 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,32 @@
 # Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
-pkgname='python-skia-pathops'
-_pkgname='skia-pathops'
-pkgver='0.3.0'
-pkgrel=1
-pkgdesc="Python bindings for the Skia library's Path Ops."
-url="https://github.com/fonttools/skia-pathops"
-checkdepends=('python-pytest' 'python-pytest-cython')
+# Contributor: Caleb Maclennan <caleb@alerque.com>
+
+pkgname=python-skia-pathops
+_pkgname=${pkgname#python-}
+pkgver=0.3.0
+pkgrel=2
+pkgdesc='Python bindings for the Skia library’s Path Ops'
+arch=('x86_64')
+url="https://github.com/fonttools/$_pkgname"
+license=('BSD')
 depends=('python')
 makedepends=('cython' 'python-setuptools')
-optdepends=()
-license=('BSD')
-arch=('x86_64')
-source=("https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.zip")
+checkdepends=('python-pytest' 'python-pytest-cython')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.zip")
 sha256sums=('9d5ad3d0e7be0e6ba542ad769a8149f97bf0d431520167840ad3fc4472d16585')

-package() {
-    cd "${srcdir}/${_pkgname}-${pkgver}"
-    python setup.py install --root="${pkgdir}" --optimize=1
+build() {
+    cd "$_pkgname-$pkgver"
+    python setup.py build
+    python setup.py build_ext --inplace
 }

 check() {
-    cd "$srcdir/$_pkgname-${pkgver}"
-    python setup.py build_ext --inplace
+    cd "$_pkgname-$pkgver"
     PYTHONPATH="src/python" pytest
 }
+
+package() {
+    cd "$_pkgname-$pkgver"
+    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
-- 
2.26.0