[arch-commits] Commit in python-imdbpy/repos/community-testing-any (PKGBUILD PKGBUILD)
David Runge
dvzrv at archlinux.org
Sun Aug 5 18:40:02 UTC 2018
Date: Sunday, August 5, 2018 @ 18:40:01
Author: dvzrv
Revision: 368410
archrelease: copy trunk to community-testing-any
Added:
python-imdbpy/repos/community-testing-any/PKGBUILD
(from rev 368409, python-imdbpy/trunk/PKGBUILD)
Deleted:
python-imdbpy/repos/community-testing-any/PKGBUILD
----------+
PKGBUILD | 107 ++++++++++++++++++++++++++++---------------------------------
1 file changed, 50 insertions(+), 57 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-05 18:39:54 UTC (rev 368409)
+++ PKGBUILD 2018-08-05 18:40:01 UTC (rev 368410)
@@ -1,57 +0,0 @@
-# $Id$
-# Maintainer: David Runge <dave at sleepmap.de>
-
-pkgname=python-imdbpy
-pkgver=6.5
-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=("${pkgname}-${pkgver}.tar.gz::https://github.com/alberanid/${pkgname/python-/}/archive/${pkgver}.tar.gz")
-sha512sums=('4147088c2558fcd2e30f6e338b72ebd4b1c3917a54df5a6e0ee8fb51ba2b9fe370b32553a899e74108fa089aaa1fff4ff248ab6b14ca959b80c6b5aade7b58a7')
-
-prepare() {
- mv -v "${pkgname/python-/}-${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() {
- cd "${pkgname}-${pkgver}"
- python setup.py build
-}
-
-check() {
- cd "${pkgname}-${pkgver}"
- export PYTHONPATH=${srcdir}/${pkgname}-${pkgver}/build:${PYTHONPATH}
- py.test
-}
-
-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-testing-any/PKGBUILD (from rev 368409, python-imdbpy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-08-05 18:40:01 UTC (rev 368410)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: David Runge <dave at sleepmap.de>
+
+# pypi upstream name is differnt
+#_name=IMDbPY
+_name=imdbpy
+pkgname=python-imdbpy
+pkgver=6.6
+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')
+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 "${_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=${srcdir}/${pkgname}-${pkgver}/build:${PYTHONPATH}
+ py.test
+}
+
+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:
More information about the arch-commits
mailing list