[arch-commits] Commit in python-installer/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Dec 9 02:09:38 UTC 2021
Date: Thursday, December 9, 2021 @ 02:09:38
Author: felixonmars
Revision: 1065765
archrelease: copy trunk to community-staging-any
Added:
python-installer/repos/community-staging-any/
python-installer/repos/community-staging-any/PKGBUILD
(from rev 1065764, python-installer/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-installer/repos/community-staging-any/PKGBUILD (from rev 1065764, python-installer/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-09 02:09:38 UTC (rev 1065765)
@@ -0,0 +1,52 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=installer
+pkgname=python-$_pkgname
+pkgver=0.2.3
+pkgrel=2
+pkgdesc='Low-level library for installing a Python package from a wheel distribution'
+arch=('any')
+url='https://github.com/pradyunsg/installer'
+license=('MIT')
+depends=('python')
+makedepends=('git' 'python-setuptools' 'python-dephell'
+ 'python-sphinx' 'python-sphinx-furo' 'python-myst-parser')
+checkdepends=('python-pytest' 'python-mock')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
+sha512sums=('daa80c11e734ffa520779c7e08df4779f41dec429ebf642f024d575cfd952da0bbd0cc78190ca1b50bbcff3adf5cf5d97c4f1f605714d5f8fd40a21a64fbe623')
+
+prepare() {
+ cd $_pkgname-$pkgver
+
+ dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+ cd $_pkgname-$pkgver
+
+ python setup.py build
+
+ PYTHONPATH=src sphinx-build -b dirhtml -v docs docs/build/html
+}
+
+check() {
+ cd $_pkgname-$pkgver
+
+ PYTHONPATH=src pytest
+}
+
+package() {
+ cd $_pkgname-$pkgver
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ # remove windows entrypoint scripts executables
+ rm "$pkgdir"/usr/lib/python*/site-packages/installer/_scripts/*.exe
+
+ # install documentation
+ install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
+ cp -r -a --no-preserve=ownership docs/build/html "$pkgdir"/usr/share/doc/$pkgname
+ rm -rf "$pkgdir"/usr/share/doc/$pkgname/html/.doctrees
+
+ install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list