diff --git a/srcpkgs/python-traitlets/template b/srcpkgs/python-traitlets/template deleted file mode 100644 index 797dd0268da..00000000000 --- a/srcpkgs/python-traitlets/template +++ /dev/null @@ -1,31 +0,0 @@ -# Template file for 'python-traitlets' -pkgname=python-traitlets -version=4.3.3 -revision=2 -archs=noarch -wrksrc="traitlets-${version}" -build_style=python-module -pycompile_module="traitlets" -hostmakedepends="python-setuptools python3-setuptools" -depends="python-decorator python-ipython_genutils python-six python-enum34" -short_desc="Configuration system for Python2 applications" -maintainer="Alessio Sergi " -license="BSD-3-Clause" -homepage="https://github.com/ipython/traitlets" -distfiles="${PYPI_SITE}/t/traitlets/traitlets-${version}.tar.gz" -checksum=d023ee369ddd2763310e4c3eae1ff649689440d4ae59d7485eb4cfbbe3e359f7 - -post_install() { - vlicense COPYING.md LICENSE -} - -python3-traitlets_package() { - archs=noarch - depends="python3-decorator python3-ipython_genutils python3-six" - pycompile_module="traitlets" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - vlicense COPYING.md LICENSE - } -} diff --git a/srcpkgs/python3-traitlets b/srcpkgs/python3-traitlets deleted file mode 120000 index 8c3427bfe9c..00000000000 --- a/srcpkgs/python3-traitlets +++ /dev/null @@ -1 +0,0 @@ -python-traitlets \ No newline at end of file diff --git a/srcpkgs/python3-traitlets/patches/python3.8-warning.patch b/srcpkgs/python3-traitlets/patches/python3.8-warning.patch new file mode 100644 index 00000000000..02fdd037842 --- /dev/null +++ b/srcpkgs/python3-traitlets/patches/python3.8-warning.patch @@ -0,0 +1,22 @@ +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 new file mode 100644 index 00000000000..92a11a42629 --- /dev/null +++ b/srcpkgs/python3-traitlets/template @@ -0,0 +1,24 @@ +# Template file for 'python3-traitlets' +pkgname=python3-traitlets +version=4.3.3 +revision=3 +archs=noarch +wrksrc="traitlets-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-decorator python3-ipython_genutils python3-six" +checkdepends="$depends python3-pytest" +short_desc="Configuration system for Python applications" +maintainer="Alessio Sergi " +license="BSD-3-Clause" +homepage="https://github.com/ipython/traitlets" +distfiles="${PYPI_SITE}/t/traitlets/traitlets-${version}.tar.gz" +checksum=d023ee369ddd2763310e4c3eae1ff649689440d4ae59d7485eb4cfbbe3e359f7 + +do_check() { + pytest +} + +post_install() { + vlicense COPYING.md LICENSE +} diff --git a/srcpkgs/python-traitlets/update b/srcpkgs/python3-traitlets/update similarity index 100% rename from srcpkgs/python-traitlets/update rename to srcpkgs/python3-traitlets/update