summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
author Isaac Yu2022-06-07 02:49:45 +0200
committer Willy Sudiarto Raharjo2022-06-11 03:58:56 +0200
commit15fcd97f9f92871112bc0784a9b25ba1ea8f2c14 (patch)
tree4a0a81acae738c7e8d2c6b1e50fb16f9eb72e011 /python
parentafbde90334866fe105837b1f6ca14c6e25c9d415 (diff)
downloadslackbuilds-15fcd97f9f92871112bc0784a9b25ba1ea8f2c14.tar.gz
python/traitlets: Updated for version 5.2.2.post1.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r--python/traitlets/traitlets.SlackBuild15
-rw-r--r--python/traitlets/traitlets.info6
2 files changed, 12 insertions, 9 deletions
diff --git a/python/traitlets/traitlets.SlackBuild b/python/traitlets/traitlets.SlackBuild
index afa52e6a0b..9a344f4578 100644
--- a/python/traitlets/traitlets.SlackBuild
+++ b/python/traitlets/traitlets.SlackBuild
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=traitlets
-VERSION=${VERSION:-5.2.2}
+VERSION=${VERSION:-5.2.2.post1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -88,12 +88,15 @@ here = os.path.abspath(os.path.dirname(__file__))
pjoin = os.path.join
packages = []
for d, _, _ in os.walk(pjoin(here, 'traitlets')):
- if os.path.exists(pjoin(d, '__init__.py')):
- packages.append(d[len(here)+1:].replace(os.path.sep, '.'))
+ if os.path.exists(pjoin(d, '__init__.py')):
+ packages.append(d[len(here)+1:].replace(os.path.sep, '.'))
+version_ns = {}
+with open(pjoin(here, 'traitlets', '_version.py')) as f:
+ exec(f.read(), {}, version_ns)
setup(name='${PRGNAM}',
- version='${VERSION}',
- packages=packages,
- package_data={'': ['*']},
+ version=version_ns['__version__'],
+ packages=packages,
+ package_data={'': ['*']},
)
EOF
diff --git a/python/traitlets/traitlets.info b/python/traitlets/traitlets.info
index 3bf3573b34..2ebd08de22 100644
--- a/python/traitlets/traitlets.info
+++ b/python/traitlets/traitlets.info
@@ -1,8 +1,8 @@
PRGNAM="traitlets"
-VERSION="5.2.2"
+VERSION="5.2.2.post1"
HOMEPAGE="https://jupyter.org/"
-DOWNLOAD="https://github.com/ipython/traitlets/archive/5.2.2/traitlets-5.2.2.tar.gz"
-MD5SUM="720e22fd704d888eccbfd474f54a1401"
+DOWNLOAD="https://files.pythonhosted.org/packages/source/t/traitlets/traitlets-5.2.2.post1.tar.gz"
+MD5SUM="44535d43d136c6080c5a341a27206a88"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="decorator"