Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: python-discid 1.2.0-3: Rebuild to include docs.
Browse files Browse the repository at this point in the history
Remove unused validpgpkeys (the mentioned key was DSA 1024bit anyways - JonnyJD/python-discid#50).
Run tests in check() using pytest to be more future proof and report issues upstream.
Skip build in package and install docs.
Update maintainer info.

git-svn-id: file:///srv/repos/svn-community/svn@696981 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
dvzrv committed Sep 2, 2020
1 parent 734f771 commit 75dd1fd
Showing 1 changed file with 29 additions and 12 deletions.
41 changes: 29 additions & 12 deletions python-discid/trunk/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,24 +1,41 @@
# Contributor: Johannes Dewender arch at JonnyJD dot net
# Maintainer: Gaetan Bisson <[email protected]>
# Maintainer: David Runge <[email protected]>
# Contributor: Gaetan Bisson <[email protected]>
# Contributor: Johannes Dewender arch at JonnyJD dot net

_name=discid
pkgname=python-discid
pkgver=1.2.0
pkgrel=2
pkgdesc='Python binding of MusicBrainz libdiscid'
url='https://python-discid.readthedocs.org/'
pkgrel=3
pkgdesc="Python binding of MusicBrainz libdiscid"
url="https://github.com/JonnyJD/python-discid"
license=('LGPL3')
arch=('any')
depends=('libdiscid' 'python')
#validpgpkeys=('8BB230F6C5C308B31FE7C82568304838CC686607')
source=("https://github.com/JonnyJD/python-discid/archive/v${pkgver}.tar.gz")
sha256sums=('4eec56f054d960b66c4e42c711c317e987dd50c9e7267a29f7adadd9ceee664f')
checkdepends=('python-pytest')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha512sums=('d004b7e4b5416310c8fb21bb9e686b5e5f5651366fb78785e299dcd17aaa99e7c2e115cc1c5175d8fbf853d3f7b8813555be32bf387d7ce82271b5e57bdff0dd')
b2sums=('4ea53ab28c6404ae1890b74757bbc1812043096eb251db1d0183eda9b0f3becb6e4f3108a2ea715604de02fd0b30ec5ff76c2e1a1af3ea28eeaa6df6a197a15a')

prepare() {
mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
}

build() {
cd "${pkgname}-${pkgver}"
python setup.py build
}

check() {
cd "${srcdir}/${pkgname}-${pkgver}"
python setup.py test
cd "${pkgname}-${pkgver}"
# disable tests relying on /dev/cdrom:
# https://github.com/JonnyJD/python-discid/issues/51
pytest -v -k "not test_read_features and not test_read_put and not test_read_simple"
}

package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1
cd "${pkgname}-${pkgver}"
python setup.py install --skip-build \
--optimize=1 \
--root="${pkgdir}"
install -vDm 644 {CHANGES,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
}

0 comments on commit 75dd1fd

Please sign in to comment.