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

Felix Yan felixonmars at archlinux.org
Fri Oct 25 20:05:22 UTC 2019


    Date: Friday, October 25, 2019 @ 20:05:21
  Author: felixonmars
Revision: 519718

archrelease: copy trunk to community-staging-any

Added:
  python-dephell-pythons/repos/community-staging-any/
  python-dephell-pythons/repos/community-staging-any/PKGBUILD
    (from rev 519716, python-dephell-pythons/trunk/PKGBUILD)

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

Copied: python-dephell-pythons/repos/community-staging-any/PKGBUILD (from rev 519716, python-dephell-pythons/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 20:05:21 UTC (rev 519718)
@@ -0,0 +1,42 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=dephell_pythons
+pkgname=python-dephell-pythons
+pkgver=0.1.12
+pkgrel=2
+pkgdesc="Work with python versions"
+arch=('any')
+url="https://github.com/dephell/${_pkgname}"
+license=('MIT')
+depends=('python-attrs' 'python-dephell-specifier' 'python-packaging')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('6831c41204d6487dc2a1042ea2dc4ae57dbf36cf58d24b247eb2bf31b310d8a5')
+b2sums=('4bf5f8fa9cf0201be9e09ae56fa196c2920959733f976e9cad5e02cb8f3b2638509caa9efdfea285424ee6e45243ff6c5dbdf85cea7d0f8d2eb94980feb33853')
+
+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