[arch-commits] Commit in python-pygal/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri May 8 12:03:35 UTC 2020
Date: Friday, May 8, 2020 @ 12:03:35
Author: felixonmars
Revision: 625608
archrelease: copy trunk to community-any
Added:
python-pygal/repos/community-any/PKGBUILD
(from rev 625607, python-pygal/trunk/PKGBUILD)
Deleted:
python-pygal/repos/community-any/PKGBUILD
----------+
PKGBUILD | 98 +++++++++++++++++++++++--------------------------------------
1 file changed, 38 insertions(+), 60 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-08 12:03:18 UTC (rev 625607)
+++ PKGBUILD 2020-05-08 12:03:35 UTC (rev 625608)
@@ -1,60 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Chris Warrick <aur at chriswarrick.com>
-
-pkgbase=python-pygal
-pkgname=('python-pygal' 'python2-pygal')
-epoch=1
-pkgver=2.4.0
-pkgrel=4
-pkgdesc='A Python SVG graph plotting library'
-arch=('any')
-url='http://pygal.org/'
-license=('LGPL3')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pytest-runner' 'python2-pytest-runner')
-checkdepends=('python-pytest' 'python2-pytest' 'python-lxml' 'python2-lxml'
- 'python-pyquery' 'python2-pyquery' 'python-cairosvg' 'python-flask'
- 'python2-flask')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/Kozea/pygal/archive/$pkgver.tar.gz")
-md5sums=('5c688d30f8e75dced194bfa612f45589')
-
-prepare() {
- sed -i 's/\[pytest\]/[tool:pytest]/' pygal-$pkgver/setup.cfg
- cp -a pygal-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir"/pygal-$pkgver
- python setup.py build
-
- cd "$srcdir"/pygal-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir"/pygal-$pkgver
- LC_CTYPE=en_US.UTF-8 py.test pygal/
-
- cd "$srcdir"/pygal-$pkgver-py2
- py.test2 pygal/
-}
-
-package_python-pygal() {
- depends=('python-setuptools')
- optdepends=('python-lxml: for XML output through lxml instead of xml.etree'
- 'python-cairosvg: for PNG output')
-
- cd pygal-$pkgver
- python3 setup.py install --root="$pkgdir" --optimize=1
-}
-
-package_python2-pygal() {
- depends=('python2-setuptools')
- optdepends=('python2-lxml: for XML output through lxml instead of xml.etree')
-
- cd pygal-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
-
- mv "$pkgdir"/usr/bin/pygal_gen{,2}.py
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-pygal/repos/community-any/PKGBUILD (from rev 625607, python-pygal/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-05-08 12:03:35 UTC (rev 625608)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Chris Warrick <aur at chriswarrick.com>
+
+pkgname=python-pygal
+epoch=1
+pkgver=2.4.0
+pkgrel=5
+pkgdesc='A Python SVG graph plotting library'
+arch=('any')
+url='http://pygal.org/'
+license=('LGPL3')
+depends=('python-setuptools')
+optdepends=('python-lxml: for XML output through lxml instead of xml.etree'
+ 'python-cairosvg: for PNG output')
+checkdepends=('python-pytest' 'python-lxml' 'python-pyquery' 'python-cairosvg' 'python-flask')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Kozea/pygal/archive/$pkgver.tar.gz")
+md5sums=('5c688d30f8e75dced194bfa612f45589')
+
+prepare() {
+ sed -i 's/\[pytest\]/[tool:pytest]/' pygal-$pkgver/setup.cfg
+}
+
+build() {
+ cd pygal-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd pygal-$pkgver
+ pytest pygal/
+}
+
+package() {
+ cd pygal-$pkgver
+ python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list