[arch-commits] Commit in python-fastjsonschema/repos/community-any (PKGBUILD PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Tue Jul 19 21:56:38 UTC 2022
Date: Tuesday, July 19, 2022 @ 21:56:38
Author: dvzrv
Revision: 1254765
archrelease: copy trunk to community-any
Added:
python-fastjsonschema/repos/community-any/PKGBUILD
(from rev 1254764, python-fastjsonschema/trunk/PKGBUILD)
Deleted:
python-fastjsonschema/repos/community-any/PKGBUILD
----------+
PKGBUILD | 104 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 53 insertions(+), 51 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-07-19 21:55:46 UTC (rev 1254764)
+++ PKGBUILD 2022-07-19 21:56:38 UTC (rev 1254765)
@@ -1,51 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=fastjsonschema
-pkgname=python-fastjsonschema
-_commit=d03f3835da4899bdeb597a9d3f30a709e7c3254f # refs/tags/v2.15.3
-pkgver=2.15.3
-pkgrel=1
-pkgdesc="Fast JSON schema validator for Python"
-arch=(any)
-url="https://github.com/horejsek/python-fastjsonschema"
-license=(BSD)
-depends=(python)
-makedepends=(git python-setuptools)
-checkdepends=(python-pytest)
-# tests and additional assets not in sdist tarball: https://github.com/horejsek/python-fastjsonschema/issues/138
-# source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-source=(
- "git+https://github.com/horejsek/python-fastjsonschema#commit=$_commit"
- "git+https://github.com/json-schema-org/JSON-Schema-Test-Suite"
-)
-sha512sums=('SKIP'
- 'SKIP')
-b2sums=('SKIP'
- 'SKIP')
-
-prepare() {
- cd $pkgname
- git submodule init
- git config submodule.JSON-Schema-Test-Suite.url ../JSON-Schema-Test-Suite
- git submodule update
-}
-
-build() {
- cd $pkgname
- python setup.py build
-}
-
-check() {
- cd $pkgname
- PYTHONPATH="build:$PYTHONPATH"
- # disable failing test (probably related to missing pytest-cache):
- # https://github.com/horejsek/python-fastjsonschema/issues/139
- pytest -v -m "not benchmark" -k "not test_compile_to_code_custom_format_with_refs"
-}
-
-package() {
- cd $pkgname
- python setup.py install --optimize=1 --root="$pkgdir"
- install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname"
- install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
-}
Copied: python-fastjsonschema/repos/community-any/PKGBUILD (from rev 1254764, python-fastjsonschema/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-07-19 21:56:38 UTC (rev 1254765)
@@ -0,0 +1,53 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=fastjsonschema
+pkgname=python-fastjsonschema
+_commit=98399bb4029b2d7020d8abd9770661a5b2c4f9f8 # refs/tags/v2.16.1
+pkgver=2.16.1
+pkgrel=1
+pkgdesc="Fast JSON schema validator for Python"
+arch=(any)
+url="https://github.com/horejsek/python-fastjsonschema"
+license=(BSD)
+depends=(python)
+makedepends=(git python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest)
+# tests and additional assets not in sdist tarball: https://github.com/horejsek/python-fastjsonschema/issues/138
+# source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+source=(
+ "git+https://github.com/horejsek/python-fastjsonschema#commit=$_commit"
+ "git+https://github.com/json-schema-org/JSON-Schema-Test-Suite"
+)
+sha512sums=('SKIP'
+ 'SKIP')
+b2sums=('SKIP'
+ 'SKIP')
+
+prepare() {
+ cd $pkgname
+ git submodule init
+ git config submodule.JSON-Schema-Test-Suite.url ../JSON-Schema-Test-Suite
+ git submodule update
+}
+
+build() {
+ cd $pkgname
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ local _deselected=(
+ # https://github.com/horejsek/python-fastjsonschema/issues/154
+ --deselect tests/test_compile_to_code.py::test_compile_to_code_custom_format
+ )
+
+ cd $pkgname
+ pytest -vv -m "not benchmark" "${_deselected[@]}"
+}
+
+package() {
+ cd $pkgname
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname"
+ install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}
More information about the arch-commits
mailing list