[arch-commits] Commit in python-imdbpy/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Sun Aug 5 18:39:54 UTC 2018
Date: Sunday, August 5, 2018 @ 18:39:54
Author: dvzrv
Revision: 368409
upgpkg: python-imdbpy 6.6-1
Upgrading to 0.6.6. Streamlining source array use. Removing all (now unbroken) disabled tests.
Modified:
python-imdbpy/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++++++------------------
1 file changed, 11 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-05 18:21:14 UTC (rev 368408)
+++ PKGBUILD 2018-08-05 18:39:54 UTC (rev 368409)
@@ -1,9 +1,12 @@
# $Id$
# Maintainer: David Runge <dave at sleepmap.de>
+# pypi upstream name is differnt
+#_name=IMDbPY
+_name=imdbpy
pkgname=python-imdbpy
-pkgver=6.5
-pkgrel=3
+pkgver=6.6
+pkgrel=1
pkgdesc="Python bindings for the Internet Movie Database (IMDb)"
url="https://imdbpy.sourceforge.io/"
arch=('any')
@@ -10,28 +13,18 @@
license=('GPL2')
depends=('python-lxml' 'python-sqlalchemy' 'python-setuptools')
checkdepends=('python-pytest' 'python-pytest-cov')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/alberanid/${pkgname/python-/}/archive/${pkgver}.tar.gz")
-sha512sums=('4147088c2558fcd2e30f6e338b72ebd4b1c3917a54df5a6e0ee8fb51ba2b9fe370b32553a899e74108fa089aaa1fff4ff248ab6b14ca959b80c6b5aade7b58a7')
+source=("${_name}-${pkgver}.tar.gz::https://github.com/alberanid/${_name}/archive/${pkgver}.tar.gz")
+# pypi sources don't have tests yet:
+# https://github.com/alberanid/imdbpy/issues/180
+#source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('668ec0303e4b5cb5aa97dc3111ffd36bcf85b01713365ed5eb8f1bb76ddcb2d23f651d0f8ffcd07dea3a83f70de7cb2b196624659ba20e3faca1029a9512fa38')
prepare() {
- mv -v "${pkgname/python-/}-${pkgver}" "${pkgname}-${pkgver}"
+ mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
cd "${pkgname}-${pkgver}"
# fix install folder for docs and config
sed -e "s/'doc'/'share\/doc\/python-imdbpy\/'/" \
-e "s/'etc'/'\/etc'/" -i setup.py
- # disable flaky tests: https://github.com/alberanid/imdbpy/issues/177
- sed -e 's/test_movie_taglines_single_should_be_a_list_of_phrases/disabled_&/' \
- -i tests/test_http_movie_taglines.py
- sed -e 's/test_movie_ratings_demographics_should_be_19/disabled_&/' \
- -i tests/test_http_movie_votes.py
- sed -e 's/test_death_date_should_be_in_ymd_format/disabled_&/' \
- -e 's/test_birth_date_should_be_in_ymd_format/disabled_&/' \
- -e 's/test_trade_mark_should_be_a_list/disabled_&/' \
- -i tests/test_http_person_bio.py
- sed -e 's/test_found_many_result_should_contain_correct_number_of_movies/disabled_&/' \
- -i tests/test_http_search_movie.py
- sed -e 's/test_name_should_not_include_country/disabled_&/' \
- -i tests/test_http_company_main.py
}
build() {
More information about the arch-commits
mailing list