mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 02:47:14 +08:00
python-pytest: update various pytest related pkgs [skip ci]
This commit is contained in:
parent
ba63efd8de
commit
669c65de70
@ -4,7 +4,7 @@
|
||||
|
||||
pkgbase=python-py
|
||||
pkgname=('python2-py' 'python3-py')
|
||||
pkgver=1.4.34
|
||||
pkgver=1.5.2
|
||||
pkgrel=1
|
||||
pkgdesc="Python rapid development tools"
|
||||
arch=('any')
|
||||
@ -13,7 +13,7 @@ url="http://pylib.readthedocs.org/en/latest/"
|
||||
makedepends=("python2-setuptools" "python3-setuptools" )
|
||||
checkdepends=('python2-pytest' 'python3-pytest')
|
||||
source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/py/archive/$pkgver.tar.gz")
|
||||
sha256sums=('522e37eb34a4decf1cc43f1522d4c18c9a6aa8caaddc401627aba5432ee08970')
|
||||
sha256sums=('c1a23fb4c6cc181dbb207117190adefcad757e742c2a25ba8fed63bd55712634')
|
||||
|
||||
prepare() {
|
||||
cp -a py-$pkgver{,-py2}
|
||||
|
@ -1,6 +1,6 @@
|
||||
pkgbase=python-pytest-mock
|
||||
pkgname=('python3-pytest-mock' 'python2-pytest-mock')
|
||||
pkgver=1.6.3
|
||||
pkgver=1.7.1
|
||||
pkgrel=1
|
||||
pkgdesc="Thin-wrapper around the mock package for easier use with py.test"
|
||||
arch=('any')
|
||||
@ -9,7 +9,7 @@ url="https://github.com/pytest-dev/pytest-mock/"
|
||||
makedepends=('python3-pytest' 'python2-pytest' 'python2-mock' 'python3-setuptools-scm'
|
||||
'python2-setuptools-scm')
|
||||
source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-mock/archive/v$pkgver.tar.gz")
|
||||
sha512sums=('6eaabb397b4c8fdf59164c78be127b9d55d8299d14414efacf25b082defa2cf53412456ccaa6d0b1735e027b76e7bf610670c448ad2cf1d6a11c81496f34c9f5')
|
||||
sha512sums=('74b1217d208a2e6488ceead0cbbe7e7b126f953cb20b34adbefe0daaafaf9a0ba63ccee9b29a86c7e4f678dd90d719eefa742f1abb42427373d839b425c2b3fb')
|
||||
|
||||
prepare() {
|
||||
cp -a pytest-mock-$pkgver{,-py2}
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
pkgbase=python-pytest-runner
|
||||
pkgname=('python3-pytest-runner' 'python2-pytest-runner')
|
||||
pkgver=3.0
|
||||
pkgver=4.0
|
||||
pkgrel=1
|
||||
pkgdesc="Invoke py.test as distutils command with dependency resolution"
|
||||
arch=('any')
|
||||
|
@ -1,6 +1,6 @@
|
||||
pkgbase=python-pytest-xdist
|
||||
pkgname=('python3-pytest-xdist' 'python2-pytest-xdist')
|
||||
pkgver=1.20.1
|
||||
pkgver=1.22.2
|
||||
pkgrel=1
|
||||
pkgdesc='py.test xdist plugin for distributed testing and loop-on-failing modes'
|
||||
arch=('any')
|
||||
@ -9,7 +9,7 @@ url='https://bitbucket.org/pytest-dev/pytest-xdist'
|
||||
makedepends=('python3-pytest' 'python2-pytest' 'python3-setuptools-scm' 'python2-setuptools-scm'
|
||||
'python3-execnet' 'python2-execnet' 'python3-pytest-forked' 'python2-pytest-forked')
|
||||
source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-xdist/archive/v$pkgver.tar.gz")
|
||||
sha512sums=('0be76529df57ad63e13242a6efb9a35c706c4440a63969cb9da5173bdaa849a85d41bd44abfe3b47c0107cd81ac24ca9759302257fda64bb5bb4565c727f297e')
|
||||
sha512sums=('22de52876bdbcfdeb5ee14d4159ed8535d3f3afa1c2d67116f4d249cced24627163b34f3e1629b2198eb6f5672e4a7db7c864f6e45a37759be01ab2753a20dce')
|
||||
|
||||
prepare() {
|
||||
cp -a pytest-xdist-$pkgver{,-py2}
|
||||
|
@ -1,25 +1,29 @@
|
||||
pkgbase=python-pytest
|
||||
pkgname=('python2-pytest' 'python3-pytest')
|
||||
pkgver=3.2.3
|
||||
pkgver=3.4.2
|
||||
pkgrel=1
|
||||
pkgdesc="Simple powerful testing with Python"
|
||||
arch=('any')
|
||||
license=('MIT')
|
||||
url="http://pytest.org/"
|
||||
makedepends=('python3-setuptools' 'python2-setuptools' 'python3-py' 'python2-py' 'python3-pluggy'
|
||||
'python2-pluggy')
|
||||
checkdepends=('lsof' 'python3-nose' 'python2-nose' 'python3-mock' 'python2-mock' 'python3-tox'
|
||||
'python2-tox' 'python3-yaml' 'python2-yaml' 'python3-pytest-xdist'
|
||||
'python2-pytest-xdist' 'python3-twisted' 'python2-twisted' 'python3-requests'
|
||||
'python2-requests' 'python3-hypothesis' 'python2-hypothesis')
|
||||
makedepends=('python2-setuptools' 'python3-setuptools'
|
||||
'python2-py' 'python3-py'
|
||||
'python2-pluggy' 'python3-pluggy'
|
||||
'python2-attrs' 'python3-attrs'
|
||||
'python2-funcsigs')
|
||||
checkdepends=('lsof'
|
||||
'python3-nose' 'python2-nose'
|
||||
'python3-mock' 'python2-mock'
|
||||
'python3-tox' 'python2-tox'
|
||||
'python3-yaml' 'python2-yaml'
|
||||
'python3-pytest-xdist' 'python2-pytest-xdist'
|
||||
'python3-twisted' 'python2-twisted'
|
||||
'python3-requests' 'python2-requests'
|
||||
'python3-hypothesis' 'python2-hypothesis')
|
||||
source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest/archive/$pkgver.tar.gz")
|
||||
sha512sums=('SKIP')
|
||||
sha512sums=('6765325353122ebfe1cc03798d64009ef05dbcaa9d8d5dfa6b9d63f8b81282e73c7e95cd17c7668f70f2cb50e222dbf93a31dc39947c1d2552a352fab7b192b3')
|
||||
|
||||
prepare() {
|
||||
rm -r pytest-$pkgver/_pytest/vendored_packages
|
||||
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
|
||||
|
||||
cp -a pytest-$pkgver{,-py2}
|
||||
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
||||
@ -42,7 +46,7 @@ build() {
|
||||
#}
|
||||
|
||||
package_python3-pytest() {
|
||||
depends=('python3-py' 'python3-setuptools' 'python3-pluggy')
|
||||
depends=('python3-py' 'python3-setuptools' 'python3-pluggy' 'python3-attrs')
|
||||
|
||||
cd pytest-$pkgver
|
||||
python3 setup.py install --root="$pkgdir" --optimize=1
|
||||
@ -50,7 +54,7 @@ package_python3-pytest() {
|
||||
}
|
||||
|
||||
package_python2-pytest() {
|
||||
depends=('python2-py' 'python2-setuptools' 'python2-pluggy')
|
||||
depends=('python2-py' 'python2-setuptools' 'python2-pluggy' 'python2-attrs' 'python2-funcsigs')
|
||||
|
||||
cd pytest-$pkgver-py2
|
||||
python2 setup.py install --root="$pkgdir" --optimize=1
|
||||
|
Loading…
Reference in New Issue
Block a user