David Runge pushed to branch main at Arch Linux / Packaging / Packages / 
python-svglib


Commits:
715773ba by David Runge at 2024-04-05T20:20:48+02:00
Add nvchecker integration

Signed-off-by: David Runge <[email protected]>

- - - - -
fb7a80c6 by David Runge at 2024-04-05T20:25:04+02:00
Use bash arrays with one entry per line for easier handling

Signed-off-by: David Runge <[email protected]>

- - - - -
3040ad5b by David Runge at 2024-04-05T20:28:39+02:00
More broadly disable tests downloading the internet

Signed-off-by: David Runge <[email protected]>

- - - - -
a0d96bab by David Runge at 2024-04-05T20:30:08+02:00
Switch to upstream provided auto-generated source tarball

Signed-off-by: David Runge <[email protected]>

- - - - -
40579040 by David Runge at 2024-04-05T20:30:24+02:00
Switch to correct SPDX license identifier

Signed-off-by: David Runge <[email protected]>

- - - - -
d4eee64f by David Runge at 2024-04-05T20:30:45+02:00
upgpkg: 1.5.1-3: Rebuild against Python 3.12

- - - - -


3 changed files:

- + .SRCINFO
- + .nvchecker.toml
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,23 @@
+pkgbase = python-svglib
+       pkgdesc = Read SVG files and convert them to other formats
+       pkgver = 1.5.1
+       pkgrel = 3
+       url = https://github.com/deeplook/svglib
+       arch = any
+       license = LGPL-3.0-only
+       checkdepends = python-pillow
+       checkdepends = python-pytest
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-setuptools
+       makedepends = python-wheel
+       depends = python
+       depends = python-lxml
+       depends = python-reportlab
+       depends = python-tinycss2
+       depends = python-cssselect2
+       source = 
python-svglib-1.5.1.tar.gz::https://github.com/deeplook/svglib/archive/refs/tags/v1.5.1.tar.gz
+       sha512sums = 
5cd93db39078c7598a51e08afee08b689c4c95e5ac6340d1a51f85b6459fa4635b8edf45add3b39d0a079f0177a99b3d4786e40fb6276aa5ba80c9b5513e6d4c
+       b2sums = 
e147df6c5326f0ed27ffa56a158442b7727946cd9f51577df36b05b04ffa7ee6b8112736eab92e214ef26b7d055506844820b323e5342e04efbd615a7b8f982f
+
+pkgname = python-svglib


=====================================
.nvchecker.toml
=====================================
@@ -0,0 +1,3 @@
+[python-svglib]
+source = "pypi"
+pypi = "svglib"


=====================================
PKGBUILD
=====================================
@@ -1,19 +1,33 @@
 # Maintainer: David Runge <[email protected]>
 
-_name=svglib
 pkgname=python-svglib
+_name="${pkgname#python-}"
 pkgver=1.5.1
-pkgrel=2
+pkgrel=3
 pkgdesc="Read SVG files and convert them to other formats"
 arch=(any)
 url="https://github.com/deeplook/svglib";
-license=(LGPL3)
-depends=(python-lxml python-reportlab python-tinycss2 python-cssselect2)
-makedepends=(python-build python-installer python-setuptools python-wheel)
-checkdepends=(python-pillow python-pytest)
-source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
-sha512sums=('5f0f21e1be59b3d6e4e9f58893f35e4cd268c25cf5d422487c7f58723286c114206d0d6f212bf0e1e52d7b192de0ed870e52a5d1423e90ddd962e00f41e5048d')
-b2sums=('06f3b04b750b31b9238ada9f40659b1ab0999a645c111524d750eeadc5f9e0a5c9f522f98f9066ec0042859ad8c15c6bcd90bb2501590b6f2d1cf1946f515c50')
+license=(LGPL-3.0-only)
+depends=(
+  python
+  python-lxml
+  python-reportlab
+  python-tinycss2
+  python-cssselect2
+)
+makedepends=(
+  python-build
+  python-installer
+  python-setuptools
+  python-wheel
+)
+checkdepends=(
+  python-pillow
+  python-pytest
+)
+source=($pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz)
+sha512sums=('5cd93db39078c7598a51e08afee08b689c4c95e5ac6340d1a51f85b6459fa4635b8edf45add3b39d0a079f0177a99b3d4786e40fb6276aa5ba80c9b5513e6d4c')
+b2sums=('e147df6c5326f0ed27ffa56a158442b7727946cd9f51577df36b05b04ffa7ee6b8112736eab92e214ef26b7d055506844820b323e5342e04efbd615a7b8f982f')
 
 build() {
   cd $_name-$pkgver
@@ -21,10 +35,15 @@ build() {
 }
 
 check() {
+  local pytest_options=(
+    -vv
+    # disable tests that need remote resources
+    --ignore tests/test_samples.py
+  )
+
   cd $_name-$pkgver
   export PYTHONPATH="build:$PYTHONPATH"
-  # disable tests that need remote resources
-  pytest -vv -k "not TestWikipediaSymbols and not TestWikipediaFlags"
+  pytest "${pytest_options[@]}"
 }
 
 package() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-svglib/-/compare/3bddb1d13c5faac21f6445ac9be5cf42a057860f...d4eee64f70d084aa2425133a996f7eb07eb04355

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-svglib/-/compare/3bddb1d13c5faac21f6445ac9be5cf42a057860f...d4eee64f70d084aa2425133a996f7eb07eb04355
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to