[arch-commits] Commit in python-flit/repos (community-any community-any/PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Fri May 29 19:20:31 UTC 2020
Date: Friday, May 29, 2020 @ 19:20:30
Author: ffy00
Revision: 637279
archrelease: copy trunk to community-any
Added:
python-flit/repos/community-any/
python-flit/repos/community-any/PKGBUILD
(from rev 637278, python-flit/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-flit/repos/community-any/PKGBUILD (from rev 637278, python-flit/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2020-05-29 19:20:30 UTC (rev 637279)
@@ -0,0 +1,52 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=flit
+pkgbase=python-$_pkgname
+#pkgname=($pkgbase{,-core})
+pkgname=$pkgbase-core
+pkgver=2.3.0
+pkgrel=1
+pkgdesc='Simplified packaging of Python modules'
+arch=('any')
+url='https://github.com/takluyver/flit'
+license=('BSD')
+makedepends=('python-build' 'python-install') # 'python-pyproject2setuppy'
+# 'python-requests' 'python-docutils' 'python-pytoml')
+#checkdepends=('python-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('d60ad9ac7d5a0af7a5f8ed095c3f828a714b7f1aa27609e4baa89cd4d9a51da37749bccb9b794c0c3c37cee3cc073b9a251d49b2c18f5b1b2902c7a0838b527c')
+
+build() {
+ cd $_pkgname-$pkgver
+
+ # blocked by pyproject2setuppy not supporting flit.scripts
+ #PYTHONPATH=flit_core python -m pyproject2setuppy.main build
+
+ cd flit_core
+
+ python -m build
+ python -m install --cache dist/*.whl
+}
+
+#check() {
+# cd $_pkgname-$pkgver
+#
+# python -m pyproject2setuppy.main pytest
+#}
+
+#package_python-flit() {
+# dependencies=('python-flit-core' 'python-requests' 'python-docutils' 'python-pytoml')
+#
+# cd $_pkgname-$pkgver
+#
+# python -m pyproject2setuppy.main install --root="$pkgdir" --optimize=1 --skip-build
+#}
+
+package_python-flit-core() {
+ pkgdesc+=' (core backend)'
+
+ cd $_pkgname-$pkgver/flit_core
+
+ python -m install --skip-build -d "$pkgdir" dist/*.whl
+}
+
More information about the arch-commits
mailing list