[arch-commits] Commit in python-rangehttpserver/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Sat Nov 9 17:10:01 UTC 2019
Date: Saturday, November 9, 2019 @ 17:10:01
Author: jelle
Revision: 524849
remove unused python2 module
Modified:
python-rangehttpserver/trunk/PKGBUILD
----------+
PKGBUILD | 32 +++++---------------------------
1 file changed, 5 insertions(+), 27 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-09 15:59:44 UTC (rev 524848)
+++ PKGBUILD 2019-11-09 17:10:01 UTC (rev 524849)
@@ -1,8 +1,7 @@
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
_pkgname=RangeHTTPServer
-pkgbase=python-rangehttpserver
-pkgname=(python-rangehttpserver python2-rangehttpserver)
+pkgname=python-rangehttpserver
pkgver=1.2.0
pkgrel=4
pkgdesc='SimpleHTTPServer with support for Range requests'
@@ -9,25 +8,17 @@
url='https://github.com/danvk/RangeHTTPServer/'
arch=('any')
license=('Apache')
-makedepends=('python' 'python-setuptools'
- 'python2' 'python2-setuptools')
-checkdepends=('python-nose' 'python-requests'
- 'python2-nose' 'python2-requests')
+depends=('python')
+makedepends=('python' 'python-setuptools')
+checkdepends=('python-nose' 'python-requests')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/danvk/RangeHTTPServer//archive/${pkgver}.tar.gz)
sha256sums=('17aad58bec8ccd95f9d5bc9cff2bf3597d002eff08e1ced558c8756b61467a94')
sha512sums=('5964687bb3e8524ab3eea0b71eaefe189f795ce73ba438510936480bbdfda3dcfafe97ace66b35b3b235864f71744fe20c8fb90f881628ad67a53162e22b59bb')
-prepare() {
- cp -a ${_pkgname}-${pkgver}{,-py2}
-}
-
build() {
(cd ${_pkgname}-${pkgver}
python setup.py build
)
- (cd ${_pkgname}-${pkgver}-py2
- python2 setup.py build
- )
}
check() {
@@ -34,23 +25,10 @@
(cd ${_pkgname}-${pkgver}
nosetests
)
- (cd ${_pkgname}-${pkgver}-py2
- nosetests2
- )
}
-package_python-rangehttpserver() {
- depends=('python')
+package() {
cd ${_pkgname}-${pkgver}
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm 644 README -t "${pkgdir}/usr/share/doc/${pkgname}"
}
-
-package_python2-rangehttpserver() {
- depends=('python2')
- cd ${_pkgname}-${pkgver}-py2
- python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
- install -Dm 644 README -t "${pkgdir}/usr/share/doc/${pkgname}"
-}
-
-# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list