[arch-commits] Commit in (4 files)

Eli Schwartz eschwartz at archlinux.org
Tue May 28 20:34:03 UTC 2019


    Date: Tuesday, May 28, 2019 @ 20:34:03
  Author: eschwartz
Revision: 473065

addpkg: python-dephell-venvs 0.1.16-1

part of "dephell" tool

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

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

Added: python-dephell-venvs/trunk/PKGBUILD
===================================================================
--- python-dephell-venvs/trunk/PKGBUILD	                        (rev 0)
+++ python-dephell-venvs/trunk/PKGBUILD	2019-05-28 20:34:03 UTC (rev 473065)
@@ -0,0 +1,42 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=dephell_venvs
+pkgname=python-dephell-venvs
+pkgver=0.1.16
+pkgrel=1
+pkgdesc="Manage Python virtual environments"
+arch=('any')
+url="https://github.com/dephell/${_pkgname}"
+license=('MIT')
+depends=('python-attrs' 'python-dephell-pythons')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('3675c0a905a5c29516937c686713d9387b8f8d3f3243dccec5e203e294c9b549')
+b2sums=('7e422393772902dacfe8d8eb26257065b39fc76ea0b58f0c057f9290ec911117a2d7c45303091cbe9c61f1c8928b4c5243e7e21cde880b87245756fedeb438d3')
+
+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