pytest: Update to 6.2.1

And add required toml/iniconfig packages
This commit is contained in:
Christoph Reiter 2020-12-19 22:51:05 +01:00
parent dbe8b61c68
commit ce35046594
3 changed files with 61 additions and 7 deletions

30
python-iniconfig/PKGBUILD Normal file
View File

@ -0,0 +1,30 @@
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
pkgbase=python-iniconfig
pkgname=(python-iniconfig)
pkgver=1.1.1
pkgrel=1
pkgdesc="brain-dead simple config-ini parsing"
url="https://github.com/RonnyPfannschmidt/iniconfig"
license=('MIT')
arch=('any')
depends=('python')
makedepends=('python-setuptools'
'python-setuptools-scm')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/RonnyPfannschmidt/iniconfig/archive/v$pkgver.tar.gz")
sha256sums=('a4489e91242e035cb58700d9a3c4bf49e0b106a85fefefe48025e333ea5ee49c')
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
build() {
cd "$srcdir"/iniconfig-$pkgver
/usr/bin/python setup.py build
}
package() {
cd iniconfig-$pkgver
/usr/bin/python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

View File

@ -2,7 +2,7 @@
pkgbase=python-pytest
pkgname=('python-pytest')
pkgver=6.1.1
pkgver=6.2.1
pkgrel=1
provides=("python3-pytest")
replaces=("python3-pytest")
@ -18,15 +18,13 @@ depends=('python'
'python-pluggy'
'python-py'
'python-setuptools'
'python-packaging'
'python-iniconfig'
'python-toml'
'python-six')
makedepends=('python-setuptools-scm')
source=("pytest-${pkgver}.tar.gz::https://github.com/pytest-dev/pytest/archive/${pkgver}.tar.gz")
sha512sums=('642782eb3f07756c11c7552c908031e83d888d7dbdd11f5b7aa349b6406724349468c6beee5f1ef770a4522710301659db7f9d6100f8da4b43c72d79d077f2aa')
prepare() {
sed -i "s/'_pytest.vendored_packages'//" pytest-${pkgver}/setup.py
sed -i 's/assert numentries == 0/assert numentries == 26/' pytest-${pkgver}/testing/python/collect.py
}
sha256sums=('efc60ff9d50f63a6cc1571f5f121155cd1775905a29dbc58b55612ac5a81f530')
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}

26
python-toml/PKGBUILD Normal file
View File

@ -0,0 +1,26 @@
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_realname=toml
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=0.10.2
pkgrel=1
pkgdesc="A Python library for parsing and creating TOML"
arch=('any')
license=('MIT')
url="https://github.com/uiri/toml"
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
sha256sums=('b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f')
build() {
cd "${srcdir}/${_realname}-${pkgver}"
/usr/bin/python setup.py build
}
package() {
cd "${srcdir}/${_realname}-${pkgver}"
/usr/bin/python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}