[arch-commits] Commit in python-webcolors/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Jun 2 18:41:12 UTC 2019


    Date: Sunday, June 2, 2019 @ 18:41:10
  Author: felixonmars
Revision: 476657

archrelease: copy trunk to community-testing-any

Added:
  python-webcolors/repos/community-testing-any/
  python-webcolors/repos/community-testing-any/PKGBUILD
    (from rev 476656, python-webcolors/trunk/PKGBUILD)

----------+
 PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

Copied: python-webcolors/repos/community-testing-any/PKGBUILD (from rev 476656, python-webcolors/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-06-02 18:41:10 UTC (rev 476657)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-webcolors
+pkgname=(python-webcolors python2-webcolors)
+pkgver=1.9
+pkgrel=1
+pkgdesc="A library for working with color names and color value formats defined by the HTML and CSS specifications for use in documents on the Web"
+url="https://github.com/ubernostrum/webcolors"
+license=('BSD')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("https://pypi.io/packages/source/w/webcolors/webcolors-$pkgver.tar.gz")
+sha512sums=('7644ed5447e665b33a09878070a0e35ce5e93b27b784380e7329b33c405034456707fab6f70074f0dee3819827fca637c0baf08201f66609cf914b8f7664c300')
+
+prepare() {
+  cp -a webcolors-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/webcolors-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/webcolors-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/webcolors-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/webcolors-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-webcolors() {
+  depends=('python')
+
+  cd webcolors-$pkgver
+  python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-webcolors() {
+  depends=('python2')
+
+  cd webcolors-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}


More information about the arch-commits mailing list