[arch-commits] Commit in python-imdbpy/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Fri Sep 25 15:47:37 UTC 2020


    Date: Friday, September 25, 2020 @ 15:47:37
  Author: dvzrv
Revision: 712029

archrelease: copy trunk to community-any

Added:
  python-imdbpy/repos/community-any/PKGBUILD
    (from rev 712028, python-imdbpy/trunk/PKGBUILD)
Deleted:
  python-imdbpy/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   90 +++++++++++++++++++++++++++----------------------------------
 1 file changed, 41 insertions(+), 49 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-25 15:47:18 UTC (rev 712028)
+++ PKGBUILD	2020-09-25 15:47:37 UTC (rev 712029)
@@ -1,49 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-
-_name=IMDbPY
-pkgname=python-imdbpy
-pkgver=6.8
-pkgrel=3
-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')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('64b0ab95ca848530d9df3d0da2319497cb1af779d229cb64c1bf59db3cd3e42331cfa854a24222cab5558b9d9af8616098d794756dece463bfefdb3ebdaf42c5')
-
-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() {
-  cd "${pkgname}-${pkgver}"
-  python setup.py build
-}
-
-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'
-}
-
-package() {
-  cd "${pkgname}-${pkgver}"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}/"
-  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}/"
-}
-# vim:set ts=2 sw=2 et:

Copied: python-imdbpy/repos/community-any/PKGBUILD (from rev 712028, python-imdbpy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-09-25 15:47:37 UTC (rev 712029)
@@ -0,0 +1,41 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=IMDbPY
+pkgname=python-imdbpy
+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')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('5cea5146ace93b525be97ce5f3d8bb037be2e43280b3893c5475b8b2f84265e61db72ef935b1a50c341577a22ce4c98ac6d052eb047868fa88fb2dd3fab6d86a')
+b2sums=('a703682d11d798c182bb4fe0a93f8dd50c9e673ff8bb6f1acbea768121c32ec6c3293a559b48381e547c21b12103732d537c6402f0f9c3851016ae0d36376d32')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py build
+}
+
+# flaky tests are flaky: https://github.com/alberanid/imdbpy/issues/240
+check() {
+  cd "${pkgname}-${pkgver}"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py install --skip-build \
+                          --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