[arch-commits] Commit in (4 files)

Eli Schwartz eschwartz at archlinux.org
Sun Dec 15 05:18:57 UTC 2019


    Date: Sunday, December 15, 2019 @ 05:18:57
  Author: eschwartz
Revision: 537713

addpkg: python-dephell-setuptools 0.2.1-1

needed for python-dephell

Added:
  python-dephell-setuptools/
  python-dephell-setuptools/repos/
  python-dephell-setuptools/trunk/
  python-dephell-setuptools/trunk/PKGBUILD

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

Added: python-dephell-setuptools/trunk/PKGBUILD
===================================================================
--- python-dephell-setuptools/trunk/PKGBUILD	                        (rev 0)
+++ python-dephell-setuptools/trunk/PKGBUILD	2019-12-15 05:18:57 UTC (rev 537713)
@@ -0,0 +1,41 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=dephell_setuptools
+pkgname=python-dephell-setuptools
+pkgver=0.2.1
+pkgrel=1
+pkgdesc="Extract meta information from setup.py"
+arch=('any')
+url="https://github.com/dephell/${_pkgname}"
+license=('MIT')
+depends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('bd4d4d063b5ad718bed87b6e1d901feadc60f0122bfdb87f8bb9e124b5a5d5d9')
+b2sums=('e1d04abef1508bf5e8d8aa54890b85cd3f4f88ca57c5263a92e42ee07666fbd7ea7032a8e21dc1b7d951c152da508ce0271e071ef65d1cf6297637ebb58c770b')
+
+prepare() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    # pycache slipped into release tarballs
+    find . -name \*.pyc -delete
+}
+
+build(){
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py build
+}
+
+check() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python -m pytest
+}
+
+package() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}



More information about the arch-commits mailing list