diff --git a/python-pytest-runner/.SRCINFO b/python-pytest-runner/.SRCINFO new file mode 100644 index 0000000..e6b5f27 --- /dev/null +++ b/python-pytest-runner/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python-pytest-runner + pkgdesc = Invoke py.test as distutils command with dependency resolution + pkgver = 6.0.1 + pkgrel = 2 + url = https://github.com/pytest-dev/pytest-runner + arch = any + license = MIT + makedepends = git + makedepends = python-build + makedepends = python-installer + makedepends = python-setuptools-scm + makedepends = python-wheel + depends = python-pytest + depends = python-setuptools + source = git+https://github.com/pytest-dev/pytest-runner.git#commit=9d13da8bd36ecd9634629b492315cb28eff44183 + sha512sums = SKIP + +pkgname = python-pytest-runner diff --git a/python-pytest-runner/PKGBUILD b/python-pytest-runner/PKGBUILD new file mode 100644 index 0000000..0b9ce8c --- /dev/null +++ b/python-pytest-runner/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Felix Yan + +# https://github.com/pytest-dev/pytest-runner#deprecation-notice +pkgname=python-pytest-runner +pkgver=6.0.1 +_commit=9d13da8bd36ecd9634629b492315cb28eff44183 +pkgrel=2 +pkgdesc="Invoke py.test as distutils command with dependency resolution" +arch=('any') +license=('MIT') +url="https://github.com/pytest-dev/pytest-runner" +depends=('python-pytest' 'python-setuptools') +makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel') +#checkdepends=('python-pytest-virtualenv' 'python-pytest-enabler') +source=("git+https://github.com/pytest-dev/pytest-runner.git#commit=$_commit") +sha512sums=('SKIP') + +build() { + cd pytest-runner + python -m build --wheel --no-isolation +} + +# Tries to import barbazquux2 +#check() { +# cd pytest-runner +# PYTHONPATH="$PWD" pytest +#} + +package() { + cd pytest-runner + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ +} diff --git a/python-webtest-aiohttp/.SRCINFO b/python-webtest-aiohttp/.SRCINFO new file mode 100644 index 0000000..ccb00a0 --- /dev/null +++ b/python-webtest-aiohttp/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = python-webtest-aiohttp + pkgdesc = Provides integration of WebTest with aiohttp.web applications + pkgver = 2.0.0 + pkgrel = 5 + url = https://pypi.org/project/webtest-aiohttp + arch = any + license = MIT + checkdepends = python-pytest + checkdepends = python-pytest-aiohttp + checkdepends = python-pytest-asyncio + checkdepends = python-pytest-loop + makedepends = python-build + makedepends = python-installer + makedepends = python-setuptools + makedepends = python-wheel + depends = python-aiohttp + depends = python-webob + depends = python-webtest + source = webtest-aiohttp-2.0.0.tar.gz::https://github.com/sloria/webtest-aiohttp/archive/refs/tags/2.0.0.tar.gz + source = webtest-aiohttp-PR7-fix-tests-Python311.patch::https://github.com/sloria/webtest-aiohttp/pull/7.patch + b2sums = 38e782a465f929efd455109a3108499bfe605a4c5434dd9dc5945147138f8b7fb8159bae7bb8ef5a9a85423fc77028b6012f159b07fe9d3da81f851f0ce07deb + b2sums = 52c3dd7824eab79080ce2c79c05da725bf7054b13a4edc19fc1d98946846c1c2ae6038f64e0fc5c23750169b2dba7748b029ba0f1b2ce42a24698e6414e88ba7 + +pkgname = python-webtest-aiohttp diff --git a/python-webtest-aiohttp/.nvchecker.toml b/python-webtest-aiohttp/.nvchecker.toml new file mode 100644 index 0000000..0e21044 --- /dev/null +++ b/python-webtest-aiohttp/.nvchecker.toml @@ -0,0 +1,3 @@ +[python-webtest-aiohttp] +source="pypi" +pypi="webtest-aiohttp" diff --git a/python-webtest-aiohttp/PKGBUILD b/python-webtest-aiohttp/PKGBUILD new file mode 100644 index 0000000..da31813 --- /dev/null +++ b/python-webtest-aiohttp/PKGBUILD @@ -0,0 +1,57 @@ +# Maintainer: envolution +# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu > +# shellcheck shell=bash disable=SC2034,SC2154 + +_distname=webtest-aiohttp +pkgname="python-${_distname}" +pkgver=2.0.0 +pkgrel=5 +pkgdesc='Provides integration of WebTest with aiohttp.web applications' +arch=(any) +url="https://pypi.org/project/${_distname}" +_repourl="https://github.com/sloria/${_distname}" +license=(MIT) +depends=( + python-aiohttp + python-webob + python-webtest +) +makedepends=( + python-build + python-installer + python-setuptools + python-wheel +) +checkdepends=( + python-pytest + python-pytest-aiohttp + python-pytest-asyncio + python-pytest-loop +) +source=("${_distname}-${pkgver}.tar.gz::${_repourl}/archive/refs/tags/${pkgver}.tar.gz" + "${_distname}-PR7-fix-tests-Python311.patch::${_repourl}/pull/7.patch") +b2sums=('38e782a465f929efd455109a3108499bfe605a4c5434dd9dc5945147138f8b7fb8159bae7bb8ef5a9a85423fc77028b6012f159b07fe9d3da81f851f0ce07deb' + '52c3dd7824eab79080ce2c79c05da725bf7054b13a4edc19fc1d98946846c1c2ae6038f64e0fc5c23750169b2dba7748b029ba0f1b2ce42a24698e6414e88ba7') + +prepare() { + cd "$_distname-$pkgver" + patch --forward --strip=1 -i ../"${_distname}-PR7-fix-tests-Python311.patch" +} + +build() { + cd "$_distname-$pkgver" + python -m build --wheel --no-isolation +} + +check() { + cd "$_distname-$pkgver" + python -m pytest -v +} + +package() { + cd "$_distname-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl + + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname +} +# vim:set ts=2 sw=2 et: