[arch-commits] Commit in python-dephell-pythons/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 16:54:46 UTC 2020
Date: Monday, November 9, 2020 @ 16:54:46
Author: felixonmars
Revision: 747688
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 747687, python-dephell-pythons/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-dephell-pythons/repos/community-staging-any/PKGBUILD (from rev 747687, python-dephell-pythons/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 16:54:46 UTC (rev 747688)
@@ -0,0 +1,35 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=dephell_pythons
+pkgname=python-dephell-pythons
+pkgver=0.1.14
+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=('a2da1ba905084f0935392be6e1fee019b98f45439429e45278a181174cff93a9')
+b2sums=('e705f239cea702690607409e45ab766c4766ea13c3c3b2854b3ccddb33a40f9cacf70a744dc8a2339f86070045eba12f9b4e3292eb39d4ad893550d841262151')
+
+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