From fb6c584b7c0d368ec8979698391aedb87b6be28c Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Mon, 7 Sep 2020 09:11:36 -0400 Subject: [PATCH] python3-traitlets: update to 5.0.4. --- .../patches/python3.8-warning.patch | 22 ------------------- srcpkgs/python3-traitlets/template | 7 +++--- 2 files changed, 3 insertions(+), 26 deletions(-) delete mode 100644 srcpkgs/python3-traitlets/patches/python3.8-warning.patch diff --git a/srcpkgs/python3-traitlets/patches/python3.8-warning.patch b/srcpkgs/python3-traitlets/patches/python3.8-warning.patch deleted file mode 100644 index 02fdd037842..00000000000 --- a/srcpkgs/python3-traitlets/patches/python3.8-warning.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git traitlets/config/loader.py traitlets/config/loader.py -index 803b362..ae7e6c9 100644 ---- traitlets/config/loader.py -+++ traitlets/config/loader.py -@@ -792,7 +792,7 @@ class KVArgParseConfigLoader(ArgParseConfigLoader): - nargs = '?' - else: - nargs = None -- if len(key) is 1: -+ if len(key) == 1: - paa('-'+key, '--'+key, type=text_type, dest=value, nargs=nargs) - else: - paa('--'+key, type=text_type, dest=value, nargs=nargs) -@@ -801,7 +801,7 @@ class KVArgParseConfigLoader(ArgParseConfigLoader): - # - self.alias_flags[self.aliases[key]] = value - continue -- if len(key) is 1: -+ if len(key) == 1: - paa('-'+key, '--'+key, action='append_const', dest='_flags', const=value) - else: - paa('--'+key, action='append_const', dest='_flags', const=value) diff --git a/srcpkgs/python3-traitlets/template b/srcpkgs/python3-traitlets/template index 92a11a42629..83c9c90dadd 100644 --- a/srcpkgs/python3-traitlets/template +++ b/srcpkgs/python3-traitlets/template @@ -1,8 +1,7 @@ # Template file for 'python3-traitlets' pkgname=python3-traitlets -version=4.3.3 -revision=3 -archs=noarch +version=5.0.4 +revision=1 wrksrc="traitlets-${version}" build_style=python3-module hostmakedepends="python3-setuptools" @@ -13,7 +12,7 @@ maintainer="Alessio Sergi " license="BSD-3-Clause" homepage="https://github.com/ipython/traitlets" distfiles="${PYPI_SITE}/t/traitlets/traitlets-${version}.tar.gz" -checksum=d023ee369ddd2763310e4c3eae1ff649689440d4ae59d7485eb4cfbbe3e359f7 +checksum=86c9351f94f95de9db8a04ad8e892da299a088a64fd283f9f6f18770ae5eae1b do_check() { pytest