diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-03-10 18:52:21 +0100 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-03-10 18:53:19 +0100 |
commit | 1c0f4d7ddf44ea29464cd18ea8444f95f0eb6ae3 (patch) | |
tree | 635222a6ce6806dcb6280fc60057e3ed13acddac /apks/py3-jsonpickle | |
parent | 02be4323ddeee691a5dcba864b93ec9aa3d47f38 (diff) | |
download | apkbuilds-1c0f4d7ddf44ea29464cd18ea8444f95f0eb6ae3.tar.gz apkbuilds-1c0f4d7ddf44ea29464cd18ea8444f95f0eb6ae3.tar.bz2 apkbuilds-1c0f4d7ddf44ea29464cd18ea8444f95f0eb6ae3.zip |
chore: Update py3-jsonpickle
Diffstat (limited to 'apks/py3-jsonpickle')
-rw-r--r-- | apks/py3-jsonpickle/APKBUILD | 39 | ||||
-rw-r--r-- | apks/py3-jsonpickle/noaddopts.patch | 12 | ||||
-rw-r--r-- | apks/py3-jsonpickle/tests.patch | 15 |
3 files changed, 30 insertions, 36 deletions
diff --git a/apks/py3-jsonpickle/APKBUILD b/apks/py3-jsonpickle/APKBUILD index a23c480..bb33ec8 100644 --- a/apks/py3-jsonpickle/APKBUILD +++ b/apks/py3-jsonpickle/APKBUILD @@ -1,44 +1,41 @@ -# Maintainer: +# Maintainer: psykose <alice@ayaya.dev> pkgname=py3-jsonpickle -pkgver=2.2.0 +pkgver=3.0.1 pkgrel=1 pkgdesc="Serializing any arbitrary object graph into JSON" -url="https://pypi.python.org/pypi/jsonpickle/" +url="https://pypi.org/project/jsonpickle/" arch="noarch" license="BSD-3-Clause" -depends="python3 py3-numpy py3-pandas" -makedepends="py3-setuptools py3-setuptools_scm" -checkdepends="py3-pytest" +depends="python3" +makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel" +checkdepends="py3-pytest py3-numpy py3-pandas" source="https://files.pythonhosted.org/packages/source/j/jsonpickle/jsonpickle-$pkgver.tar.gz - tests.patch + noaddopts.patch " builddir="$srcdir/jsonpickle-$pkgver" -options="!check" # needs update for 3.11 replaces="py-jsonpickle" # Backwards compatibility provides="py-jsonpickle=$pkgver-r$pkgrel" # Backwards compatibility -prepare() { - default_prepare - - sed -e '/setuptools_scm/d' \ - -e "/^\[metadata\]/a verison = $pkgver" \ - -i setup.cfg -} - build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 3 3>&1 >&2 } check() { - PYTHONPATH=$PWD/build/lib pytest-3 -c /dev/null + python3 -m venv --clear --without-pip --system-site-packages testenv + testenv/bin/python3 -m installer dist/*.whl + # no gmpy + testenv/bin/python3 -m pytest --deselect tests/ecdsa_test.py } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + dist/*.whl } sha512sums=" -b6cb35316e32f38875cbfa3784a3930f669d4ea730ead6117242070590647987383e9f933c193b8c246c40dba87ad56600a65db89c45c18a790b3c1f9232b245 jsonpickle-2.2.0.tar.gz -8df533695556bc7b329211dfbb5ad667fbd8f9b569721a054f9dead9402ac365666f50ff4343feda536e679a58f1244708ab10fa2f6f8b33b2469dfdc57c576c tests.patch +88634acb751a0bac2c9d2ca9872dd92aeab3245ec7c1b0dced0272dc9104923b2143898fd3f7f2666bd2b220ab2396e0b2f065853256b5995695ca56534a5ea5 jsonpickle-3.0.1.tar.gz +4e95e2abd347cf221c33e919dba9cbe0886ae18c76e1ef221e0764d05e6f0e8d80731c9d84a0e0ddee94a9638784415a61bab2986d46ea54f7c9d5dc8e1226e1 noaddopts.patch " diff --git a/apks/py3-jsonpickle/noaddopts.patch b/apks/py3-jsonpickle/noaddopts.patch new file mode 100644 index 0000000..3c57fff --- /dev/null +++ b/apks/py3-jsonpickle/noaddopts.patch @@ -0,0 +1,12 @@ +skip nontests +diff --git a/pytest.ini b/pytest.ini +index 3cfaa92..b87cccd 100644 +--- a/pytest.ini ++++ b/pytest.ini +@@ -1,6 +1,5 @@ + [pytest] + norecursedirs=dist build .tox .eggs +-addopts=--doctest-modules --cov + doctest_optionflags=ALLOW_UNICODE ELLIPSIS + filterwarnings= + # https://github.com/pytest-dev/pytest/issues/6928 diff --git a/apks/py3-jsonpickle/tests.patch b/apks/py3-jsonpickle/tests.patch deleted file mode 100644 index 99d78af..0000000 --- a/apks/py3-jsonpickle/tests.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/jsonpickle/pickler.py b/jsonpickle/pickler.py -index ce64592..62ba575 100644 ---- a/jsonpickle/pickler.py -+++ b/jsonpickle/pickler.py -@@ -462,6 +462,9 @@ class Pickler(object): - if has_getinitargs: - data[tags.INITARGS] = self._flatten(obj.__getinitargs__()) - -+ if type(obj).__name__ == 'TextIOWrapper': -+ return None -+ - if has_getstate: - try: - state = obj.__getstate__() - |