Date: Tuesday, March 28, 2023 @ 01:38:23
Author: felixonmars
Revision: 1429863
archrelease: copy trunk to community-any
Added:
python-webcolors/repos/community-any/PKGBUILD
(from rev 1429862, python-webcolors/trunk/PKGBUILD)
Deleted:
python-webcolors/repos/community-any/PKGBUILD
----------+
PKGBUILD | 58 +++++++++++++++++++++++++++++-----------------------------
1 file changed, 29 insertions(+), 29 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-03-28 01:38:15 UTC (rev 1429862)
+++ PKGBUILD 2023-03-28 01:38:23 UTC (rev 1429863)
@@ -1,29 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-webcolors
-pkgver=1.12
-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')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner')
-source=("https://pypi.io/packages/source/w/webcolors/webcolors-$pkgver.tar.gz")
-sha512sums=('2c1e46ba2036ff960a973b9f5b4cec06241e9385fa0de876f66a6cf742d5b11bc212fce262011968a612c1446b78a6f50b3e75d04584c3b2b47f3ac3d66fdd51')
-
-build() {
- cd webcolors-$pkgver
- python setup.py build
-}
-
-check() {
- cd webcolors-$pkgver
- python -B setup.py pytest
-}
-
-package() {
- cd webcolors-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
-}
Copied: python-webcolors/repos/community-any/PKGBUILD (from rev 1429862,
python-webcolors/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-03-28 01:38:23 UTC (rev 1429863)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-webcolors
+pkgver=1.13
+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')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
'python-wheel')
+checkdepends=('python-pytest')
+source=("https://pypi.io/packages/source/w/webcolors/webcolors-$pkgver.tar.gz")
+sha512sums=('074aaf135ac6b0025b88b731d1d6dfa4c539b4fff7195658cc58a4326bb9f0449a231685d312b4a1ec48ca535a838bfa5c680787fe0e61473a2a092c448937d0')
+
+build() {
+ cd webcolors-$pkgver
+ python -m build -nw
+}
+
+check() {
+ cd webcolors-$pkgver
+ PYTHONPATH="$PWD/build/lib" pytest
+}
+
+package() {
+ cd webcolors-$pkgver
+ python -m installer -d "$pkgdir" dist/*.whl
+}