[arch-commits] Commit in python-solidpython/repos (2 files)

Filipe Laíns ffy00 at archlinux.org
Thu Aug 27 19:15:09 UTC 2020


    Date: Thursday, August 27, 2020 @ 19:15:09
  Author: ffy00
Revision: 689938

archrelease: copy trunk to community-any

Added:
  python-solidpython/repos/community-any/
  python-solidpython/repos/community-any/PKGBUILD
    (from rev 689937, python-solidpython/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: python-solidpython/repos/community-any/PKGBUILD (from rev 689937, python-solidpython/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-08-27 19:15:09 UTC (rev 689938)
@@ -0,0 +1,41 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=SolidPython
+pkgname=python-solidpython
+pkgver=1.0.1
+pkgrel=1
+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=('4b2c9193be5389b12759f94fd9aa448dfa96b860fd182e6b17bb9106c83bdff1627a858eeaa46fcfd30b41c418f3986adc9d06cd5bbf2ecf18e31a44abce0816')
+
+prepare() {
+  cd $_pkgname-$pkgver
+
+  sed -i '/tox/d' pyproject.toml
+
+  dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  PYTHONPATH=$(pwd) solid/test/run_all_tests.sh
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+



More information about the arch-commits mailing list