mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
python-traitlets: drop package
This commit is contained in:
parent
125857dc22
commit
78d42422c2
5 changed files with 46 additions and 32 deletions
|
@ -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 <al3hex@gmail.com>"
|
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1 +0,0 @@
|
||||||
python-traitlets
|
|
22
srcpkgs/python3-traitlets/patches/python3.8-warning.patch
Normal file
22
srcpkgs/python3-traitlets/patches/python3.8-warning.patch
Normal file
|
@ -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)
|
24
srcpkgs/python3-traitlets/template
Normal file
24
srcpkgs/python3-traitlets/template
Normal file
|
@ -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 <al3hex@gmail.com>"
|
||||||
|
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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue