From 59130a356a3eff250cd9a1273bb347bf775e7148 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Sun, 24 Oct 2021 13:35:03 -0400 Subject: [PATCH] python3-frozendict: update to 2.0.7. --- .../python3-frozendict/patches/broken-test.patch | 11 +++++++++++ srcpkgs/python3-frozendict/patches/build-py.patch | 13 ------------- srcpkgs/python3-frozendict/template | 14 ++++---------- 3 files changed, 15 insertions(+), 23 deletions(-) create mode 100644 srcpkgs/python3-frozendict/patches/broken-test.patch delete mode 100644 srcpkgs/python3-frozendict/patches/build-py.patch diff --git a/srcpkgs/python3-frozendict/patches/broken-test.patch b/srcpkgs/python3-frozendict/patches/broken-test.patch new file mode 100644 index 000000000000..a335c91246c2 --- /dev/null +++ b/srcpkgs/python3-frozendict/patches/broken-test.patch @@ -0,0 +1,11 @@ +diff --git a/test/subclass_only.py b/test/subclass_only.py +index 07b26e0..fb48bfd 100644 +--- a/test/subclass_only.py ++++ b/test/subclass_only.py +@@ -1,6 +1,3 @@ +-def test_empty_sub(fd_empty): +- assert fd_empty == frozendict_class({}) == frozendict_class([]) == frozendict_class({}, **{}) +- + def test_constructor_self_sub(fd): + assert fd == frozendict_class(fd) + diff --git a/srcpkgs/python3-frozendict/patches/build-py.patch b/srcpkgs/python3-frozendict/patches/build-py.patch deleted file mode 100644 index 4ec531e6aa66..000000000000 --- a/srcpkgs/python3-frozendict/patches/build-py.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/setup.py b/setup.py -index 462ee99..c287130 100755 ---- a/setup.py -+++ b/setup.py -@@ -157,7 +157,7 @@ common_setup_args = dict( - keywords = keywords, - ) - --custom_arg = None -+custom_arg = "py" - - if len(argv) > 1 and (argv[1] == "py" or argv[1] == "c_debug"): - custom_arg = argv[1] diff --git a/srcpkgs/python3-frozendict/template b/srcpkgs/python3-frozendict/template index 479b6b47a656..d8281a43c795 100644 --- a/srcpkgs/python3-frozendict/template +++ b/srcpkgs/python3-frozendict/template @@ -1,6 +1,6 @@ # Template file for 'python3-frozendict' pkgname=python3-frozendict -version=2.0.6 +version=2.0.7 revision=1 wrksrc="frozendict-${version}" build_style=python3-module @@ -12,14 +12,8 @@ maintainer="Orphaned " license="LGPL-3.0-only" homepage="https://github.com/Marco-Sulla/python-frozendict" distfiles="${PYPI_SITE}/f/frozendict/frozendict-${version}.tar.gz" -checksum=3f00de72805cf4c9e81b334f3f04809278b967d2fed84552313a0fcce511beb1 +checksum=a68f609d1af67da80b45519fdcfca2d60249c0a8c96e68279c1b6ddd92128204 -pre_patch() { - # remove c implementation tests - cd test - rm c_only.py - rm test_frozendict_c.py - rm test_frozendict_c_subclass.py - rm test_coold.py - rm test_coold_subclass.py +do_check() { + PYTHONPATH="$(cd build/lib* && pwd)" pytest3 }