aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2021-11-23 08:26:49 +0100
committerKevin Daudt <kdaudt@alpinelinux.org>2021-12-26 12:59:03 +0000
commit2a45a588cc4951d2b3237c542ff6557dfd0a798d (patch)
treec7ee392b4a249440deb2d7fe3a00941ec6ddbeaa
parent687211e9f64be1f2da2d4aae383d6999ac27c70f (diff)
downloadaports-patches/3767.tar.gz
aports-patches/3767.tar.bz2
aports-patches/3767.tar.xz
community/py3-tinycss2: upgrade to 1.1.1patches/3767
-rw-r--r--community/py3-tinycss2/APKBUILD22
1 files changed, 14 insertions, 8 deletions
diff --git a/community/py3-tinycss2/APKBUILD b/community/py3-tinycss2/APKBUILD
index b29ade7ca6..1b6580d53a 100644
--- a/community/py3-tinycss2/APKBUILD
+++ b/community/py3-tinycss2/APKBUILD
@@ -2,31 +2,37 @@
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-tinycss2
_pyname=tinycss2
-pkgver=1.1.0
-pkgrel=2
+pkgver=1.1.1
+pkgrel=0
pkgdesc="Low-level CSS parser for Python"
url="https://pypi.python.org/pypi/tinycss2"
arch="noarch"
license="BSD-3-Clause"
depends="py3-webencodings"
checkdepends="py3-pytest py3-pytest-flake8 py3-pytest-isort py3-pytest-cov"
-makedepends="python3-dev py3-setuptools"
+makedepends="python3-dev py3-setuptools pyproject2setuppy"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
replaces="py-tinycss py2-tinycss py3-tinycss"
-options="!check" # upstream tests are broken
+
+prepare() {
+ # Run your damn test suite BEFORE you ship your package
+ sed -i pyproject.toml -e 's/--isort //'
+}
build() {
- python3 setup.py build
+ python3 -m pyproject2setuppy.main build
}
check() {
- python3 setup.py pytest
+ pytest
}
package() {
- python3 setup.py install --prefix=/usr --root="$pkgdir"
+ python3 -m pyproject2setuppy.main install --prefix=/usr --root="$pkgdir"
}
-sha512sums="218d28511802afc89a608def03084f5d460512a41d47280b5c8bfe72314c8ab3b14c98fbb0200bea6b8509c4d6f0107410d340e2d7f1830aaa92669a2699211e tinycss2-1.1.0.tar.gz"
+sha512sums="
+297ac51cf4eb9a063e88d677b8cf2511ff6c459c7a385ee8ba6bb4b9d9b0d8482f5caa1cc6511d3edefbe8e8ee284d72fedc154a5372880cd7d9a9a26aab1a62 tinycss2-1.1.1.tar.gz
+"