python3-jsonschema: repackage with updated pep517 build style
This commit is contained in:
parent
a8f781f6e5
commit
61847a358e
|
@ -3,6 +3,7 @@ pkgname=python3-jsonschema
|
|||
version=4.17.3
|
||||
revision=1
|
||||
build_style=python3-pep517
|
||||
make_check_args="--deselect jsonschema/tests/test_jsonschema_test_suite.py::test_suite_bug"
|
||||
hostmakedepends="hatchling hatch-vcs"
|
||||
depends="python3-attrs python3-pyrsistent"
|
||||
checkdepends="${depends} python3-pytest python3-pip"
|
||||
|
@ -14,16 +15,6 @@ changelog="https://raw.githubusercontent.com/Julian/jsonschema/master/CHANGELOG.
|
|||
distfiles="${PYPI_SITE}/j/jsonschema/jsonschema-${version}.tar.gz"
|
||||
checksum=0f864437ab8b6076ba6707453ef8f98a6a0d512a80e93f8abdb676f737ecb60d
|
||||
|
||||
do_check() {
|
||||
rm -rf *.dist-info tmp # remove artifacts from previous unsuccessful check run
|
||||
mkdir tmp
|
||||
bsdtar xf dist/jsonschema-$version-py3-none-any.whl -C tmp
|
||||
rm tmp/jsonschema/tests -rf
|
||||
mv tmp/*.dist-info .
|
||||
PYTHONPATH=. pytest --deselect jsonschema/tests/test_jsonschema_test_suite.py::test_suite_bug
|
||||
rm -rf *.dist-info tmp
|
||||
}
|
||||
|
||||
pre_build() {
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue