[arch-commits] Commit in python-solidpython/trunk (PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Mon Aug 1 07:34:31 UTC 2022


    Date: Monday, August 1, 2022 @ 07:34:30
  Author: arojas
Revision: 1259586

upgpkg: python-solidpython 1.1.3-1: Update to 1.1.3, drop dephell usage

Modified:
  python-solidpython/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-01 07:32:56 UTC (rev 1259585)
+++ PKGBUILD	2022-08-01 07:34:30 UTC (rev 1259586)
@@ -2,39 +2,39 @@
 
 _pkgname=SolidPython
 pkgname=python-solidpython
-pkgver=1.1.1
-pkgrel=3
+pkgver=1.1.3
+pkgrel=1
+_commit=0a4f539c31a25df52a42bab2ceeffafd45596f73 # missing tag for 1.1.3
 pkgdesc='Python frontend for solid modelling that compiles to OpenSCAD'
 arch=('any')
 url='https://github.com/SolidCode/SolidPython'
 license=('LGPL')
-depends=('python-euclid3' 'python-pypng' 'python-prettytable' 'python-regex')
-makedepends=('python-setuptools' 'python-dephell')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha512sums=('fa8b28e6d0adf9cdfa762a85adcd5f8dea3ea5a4136d51dc836b333dc701475b82802af226edbef785185a3e124d778d02f1fecee931475e96e88facbfb4e79e')
+depends=('python-euclid3' 'python-pypng' 'python-prettytable')
+makedepends=('python-build' 'python-installer' 'python-poetry' 'python-setuptools-scm' 'python-wheel')
+checkdepends=('python-pytest-runner')
+source=("https://github.com/SolidCode/SolidPython/archive/$_commit.tar.gz")
+sha512sums=('d0f701e9508721e3f7f5a2b65dfe5692cac425374f3b0136a5792c5fa93ba7c3295288149cc07ad9c902df7b973e1c80f1023d44ec6919c33f52590a15573f6d')
 
 prepare() {
-  cd $_pkgname-$pkgver
+  cd $_pkgname-*
 
-  sed -i -e '/tox/d' -e 's|regex = "^2019.4"|regex = ">=2019.4"|' pyproject.toml
-
-  dephell deps convert --from pyproject.toml --to setup.py
+  sed -i -e '/tox/d' -e 's|setuptools>=.*|setuptools\",|' pyproject.toml
 }
 
 build() {
-  cd $_pkgname-$pkgver
+  cd $_pkgname-*
 
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
-  cd $_pkgname-$pkgver
+  cd $_pkgname-*
 
   PYTHONPATH=$(pwd) solid/test/run_all_tests.sh
 }
 
 package() {
-  cd $_pkgname-$pkgver
+  cd $_pkgname-*
 
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
 }



More information about the arch-commits mailing list