Skip to content
Snippets Groups Projects
Commit 421343f8 authored by Leo's avatar Leo Committed by Kevin Daudt
Browse files

testing/py-openapi-codec: modernize

Closes GH-8116
parent 92d5072e
No related branches found
No related tags found
No related merge requests found
...@@ -8,8 +8,8 @@ url="https://github.com/core-api/python-openapi-codec" ...@@ -8,8 +8,8 @@ url="https://github.com/core-api/python-openapi-codec"
arch="noarch" arch="noarch"
license="BSD-2-Clause" license="BSD-2-Clause"
depends="py-core-api" depends="py-core-api"
makedepends="python3-dev python2-dev py2-setuptools" makedepends="py3-setuptools py2-setuptools"
checkdepends="py-coverage pytest py-core-api py-jinja2 py-pycodestyle py-pyflakes" checkdepends="py-coverage pytest py-jinja2 py-pycodestyle py-pyflakes"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="$pkgname-$pkgver.tar.gz::https://github.com/core-api/python-openapi-codec/archive/$pkgver.tar.gz source="$pkgname-$pkgver.tar.gz::https://github.com/core-api/python-openapi-codec/archive/$pkgver.tar.gz
disable-flake8-tests-that-requires-pyflake15.patch disable-flake8-tests-that-requires-pyflake15.patch
...@@ -17,18 +17,15 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/core-api/python-openapi-code ...@@ -17,18 +17,15 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/core-api/python-openapi-code
builddir="$srcdir"/python-openapi-codec-$pkgver builddir="$srcdir"/python-openapi-codec-$pkgver
build() { build() {
cd "$builddir"
python2 setup.py --quiet build python2 setup.py --quiet build
python3 setup.py --quiet build python3 setup.py --quiet build
} }
package() { package() {
cd "$builddir"
mkdir -p "$pkgdir"/usr/bin mkdir -p "$pkgdir"/usr/bin
} }
check() { check() {
cd "$builddir"
python2 runtests python2 runtests
python3 runtests python3 runtests
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment