Date: Monday, January 2, 2023 @ 16:02:18
Author: dvzrv
Revision: 1372954
upgpkg: python-aiomysql 0.1.1-2: Rebuild to drop
python-setuptools-scm-git-archive.
Modified:
python-aiomysql/trunk/PKGBUILD
----------+
PKGBUILD | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-02 16:02:14 UTC (rev 1372953)
+++ PKGBUILD 2023-01-02 16:02:18 UTC (rev 1372954)
@@ -3,7 +3,7 @@
_pkgname=aiomysql
pkgname=python-$_pkgname
pkgver=0.1.1
-pkgrel=1
+pkgrel=2
pkgdesc='library for accessing a MySQL database from the asyncio'
arch=('any')
url='https://github.com/aio-libs/aiomysql'
@@ -10,13 +10,16 @@
license=('MIT')
depends=('python' 'python-pymysql')
makedepends=('python-build' 'python-installer' 'python-wheel'
- 'python-setuptools' 'python-setuptools-scm'
'python-setuptools-scm-git-archive')
+ 'python-setuptools' 'python-setuptools-scm')
optdepends=('python-sqlalchemy: SQLAlchemy support')
#checkdepends=('python-pytest' 'python-ipdb' 'python-docker'
'python-sqlalchemy' 'python-uvloop')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('b83a91465caf756f8a3046651d90b5a39d9b2714d96d8bb1c6df4fa6b47189c24979d88901d7f7fb1d2dd235c4a19e2d9ed3f73c8ace42950d12e1cdbb0e46ac')
-# TODO: fix tests
+prepare() {
+ # remove the use of python-setuptools-scm-git-archive:
https://github.com/aio-libs/aiomysql/pull/872
+ sed -e '/setuptools_scm_git_archive/d' -i $_pkgname-$pkgver/pyproject.toml
+}
build() {
cd $_pkgname-$pkgver
@@ -24,6 +27,7 @@
python -m build -nw
}
+## NOTE: most tests require a running mysql instance
#check() {
# cd $_pkgname-$pkgver
#