[arch-commits] Commit in python-furl/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Sat Sep 1 14:14:59 UTC 2018
Date: Saturday, September 1, 2018 @ 14:14:58
Author: dvzrv
Revision: 375945
upgpkg: python-furl 1.2.1-1
Upgrading to 1.2.1. Switching to github as source, as tests are removed from pypi package.
Modified:
python-furl/trunk/PKGBUILD
----------+
PKGBUILD | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-09-01 14:09:23 UTC (rev 375944)
+++ PKGBUILD 2018-09-01 14:14:58 UTC (rev 375945)
@@ -5,8 +5,8 @@
_name=furl
pkgbase=python-furl
pkgname=('python-furl' 'python2-furl')
-pkgver=1.2
-pkgrel=2
+pkgver=1.2.1
+pkgrel=1
pkgdesc="A small Python library that makes parsing and manipulating URLs easy"
url="https://github.com/gruns/furl"
makedepends=('python-orderedmultidict' 'python-setuptools' 'python-six' 'python2-orderedmultidict' 'python2-setuptools' 'python2-six')
@@ -13,31 +13,30 @@
checkdepends=('flake8' 'python-pycodestyle' 'python-pyflakes' 'python2-flake8' 'python2-pycodestyle' 'python2-pyflakes')
license=('custom:Unlicense')
arch=('any')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('dc14048dda61e7f33466f9547b3185bc482a27ad3ff4701a97364ca5e845e8ea7cca7747588d50478d37acf3b8ef641427957f3a63775bed24ace2de55a1fb65')
+# pypi upstream lost the tests temporarily: https://github.com/gruns/furl/issues/105
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/gruns/${_name}/archive/${pkgver}.tar.gz")
+#source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('0c62cca8bbffcaaa5d2144aad6072a6e3e88c0ce7e04d33999a46c894edacc43be61ca46f4e4e5b009f9c957dc878208ebde289046c321b005d40f5e5d59f135')
prepare() {
- mv -v "${_name}-${pkgver}" "${pkgname[0]}-${pkgver}"
- cp -av "${pkgname[0]}-${pkgver}" "${pkgname[1]}-${pkgver}"
+ mv -v "${_name}-${pkgver}" "${pkgbase}-${pkgver}"
}
build() {
- cd "${pkgname[0]}-${pkgver}"
+ cd "${pkgbase}-${pkgver}"
python setup.py build
- cd ../"${pkgname[1]}-${pkgver}"
python2 setup.py build
}
check() {
- cd "${pkgname[0]}-${pkgver}"
+ cd "${pkgbase}-${pkgver}"
python setup.py test
- cd ../"${pkgname[1]}-${pkgver}"
python2 setup.py test
}
package_python-furl() {
depends=('python-six' 'python-orderedmultidict')
- cd "${pkgname}-${pkgver}"
+ cd "${pkgbase}-${pkgver}"
python setup.py install --skip-build \
--optimize=1 \
--prefix=/usr \
@@ -48,7 +47,7 @@
package_python2-furl() {
depends=('python2-six' 'python2-orderedmultidict')
- cd "${pkgname}-${pkgver}"
+ cd "${pkgbase}-${pkgver}"
python2 setup.py install --skip-build \
--optimize=1 \
--prefix=/usr \
More information about the arch-commits
mailing list