Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages /
python-pyasyncore
Commits:
b4d495ae by Carl Smedstad at 2024-09-08T12:56:49+02:00
upgpkg: 1.0.4-2: Add tests
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,10 +1,11 @@
pkgbase = python-pyasyncore
pkgdesc = Make asyncore available for Python 3.12 onwards
pkgver = 1.0.4
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/simonrob/pyasyncore
arch = any
license = PSF-2.0
+ checkdepends = python-tests
makedepends = python-build
makedepends = python-installer
makedepends = python-setuptools
=====================================
PKGBUILD
=====================================
@@ -3,7 +3,7 @@
pkgname=python-pyasyncore
_pkgname=${pkgname#python-}
pkgver=1.0.4
-pkgrel=1
+pkgrel=2
pkgdesc="Make asyncore available for Python 3.12 onwards"
arch=(any)
url="https://github.com/simonrob/pyasyncore"
@@ -15,6 +15,7 @@ makedepends=(
python-setuptools
python-wheel
)
+checkdepends=(python-tests)
provides=(python-asyncore)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver/$pkgver.tar.gz")
sha256sums=('4d9d423ef3a3a601a9e6e638cb2951e1b49f7e94095818f25e439529fec34674')
@@ -24,12 +25,10 @@ build() {
python -m build --wheel --no-isolation
}
-# Tests are missing required modules.
-# See: https://github.com/simonrob/pyasyncore/issues/4
-# check() {
-# cd "$_pkgname-$pkgver"
-# python -m unittest discover -v
-# }
+check() {
+ cd "$_pkgname-$pkgver"
+ python -m unittest discover -v
+}
package() {
cd "$_pkgname-$pkgver"
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pyasyncore/-/commit/b4d495aed66a1d87a5b8ff599c78212ca761a103
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pyasyncore/-/commit/b4d495aed66a1d87a5b8ff599c78212ca761a103
You're receiving this email because of your account on gitlab.archlinux.org.