[arch-commits] Commit in python-imdbpy/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Fri Sep 25 15:44:02 UTC 2020
Date: Friday, September 25, 2020 @ 15:44:01
Author: dvzrv
Revision: 712026
upgpkg: python-imdbpy 2020.9.25-1: Upgrade to 2020.9.25.
Remove unused fixes.
Remove unused python-pytest-cov from checkdepends.
Modified:
python-imdbpy/trunk/PKGBUILD
----------+
PKGBUILD | 28 ++++++++++------------------
1 file changed, 10 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-09-25 15:38:57 UTC (rev 712025)
+++ PKGBUILD 2020-09-25 15:44:01 UTC (rev 712026)
@@ -1,24 +1,22 @@
-# Maintainer: David Runge <dave at sleepmap.de>
+# Maintainer: David Runge <dvzrv at archlinux.org>
_name=IMDbPY
pkgname=python-imdbpy
-pkgver=6.8
-pkgrel=3
+pkgver=2020.9.25
+pkgrel=1
pkgdesc="Python bindings for the Internet Movie Database (IMDb)"
url="https://imdbpy.sourceforge.io/"
arch=('any')
license=('GPL2')
depends=('python-lxml' 'python-sqlalchemy' 'python-setuptools')
-checkdepends=('python-pytest' 'python-pytest-cov')
+checkdepends=('python-pytest')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('64b0ab95ca848530d9df3d0da2319497cb1af779d229cb64c1bf59db3cd3e42331cfa854a24222cab5558b9d9af8616098d794756dece463bfefdb3ebdaf42c5')
+sha512sums=('5cea5146ace93b525be97ce5f3d8bb037be2e43280b3893c5475b8b2f84265e61db72ef935b1a50c341577a22ce4c98ac6d052eb047868fa88fb2dd3fab6d86a')
+b2sums=('a703682d11d798c182bb4fe0a93f8dd50c9e673ff8bb6f1acbea768121c32ec6c3293a559b48381e547c21b12103732d537c6402f0f9c3851016ae0d36376d32')
prepare() {
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
}
build() {
@@ -26,24 +24,18 @@
python setup.py build
}
+# flaky tests are flaky: https://github.com/alberanid/imdbpy/issues/240
check() {
cd "${pkgname}-${pkgver}"
export PYTHONPATH="build:${PYTHONPATH}"
- # flaky tests are flaky: https://github.com/alberanid/imdbpy/issues/240
- py.test -k 'not test_movie_genres_if_single_should_be_a_list_of_genre_names \
- and not test_movie_runtimes_with_countries_should_include_context \
- and not test_movie_full_credits_for_tv_show \
- and not test_person_height_should_be_in_inches_and_meters \
- and not test_movie_sound_mix_if_multiple_with_notes_should_include_notes \
- and not test_selected_unreleased_movie_should_have_correct_state'
+ pytest -v
}
package() {
cd "${pkgname}-${pkgver}"
python setup.py install --skip-build \
- --optimize=1 \
- --prefix=/usr \
- --root="${pkgdir}/"
+ --optimize=1 \
+ --root="${pkgdir}/"
install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}/"
}
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list