Date: Wednesday, January 19, 2022 @ 13:32:19
  Author: alex19ep
Revision: 1110483

upgpkg: python-matrix-common 1.0.0-2 fix package version

Modified:
  python-matrix-common/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-01-19 11:53:58 UTC (rev 1110482)
+++ PKGBUILD    2022-01-19 13:32:19 UTC (rev 1110483)
@@ -2,33 +2,28 @@
 
 pkgname=python-matrix-common
 pkgver=1.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Common code for Synapse, Sydent and Sygnal"
 arch=(any)
 url="https://github.com/matrix-org/matrix-python-common";
 license=('Apache')
-makedepends=('python-setuptools' "python-dephell")
+makedepends=('python-setuptools' 'python-build' 'python-install' 
'python-wheel')
 checkdepends=('python-twisted' 'python-service-identity' 'python-aiounittest')
 
source=($pkgname-$pkgver.tar.gz::"https://github.com/matrix-org/matrix-python-common/archive/refs/tags/v$pkgver.tar.gz";)
 
sha512sums=('0050243ce3930962934f94fe1c990dc97ce803e79998ee7e6c7dafdf5ca4736c8c06fd4f52223b81f2ceb91a8bcf70f6488559f7935a9bd087c33a11430af8cd')
 
b2sums=('04a9ccbd6d66bffdc21dec013e839783abb89c8565de9d2b5957c2620aa7357756519f0d0d0ae05c8ada4e50b63488188f50b44308c1ea6fc3e55c03882e8610')
 
-prepare() {
-       cd "matrix-python-common-$pkgver"
-       dephell deps convert --from pyproject.toml --to setup.py
-}
-
 build() {
        cd "matrix-python-common-$pkgver"
-       python setup.py build
+       python -m build --wheel --skip-dependency-check --no-isolation
 }
 
 check() {
        cd "matrix-python-common-$pkgver"
-       PYTHONPATH="$PWD" trial tests
+       PYTHONPATH=. trial tests
 }
 
 package() {
        cd "matrix-python-common-$pkgver"
-       python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+       python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
 }

Reply via email to