diff options
author | Isaac Yu <isaacyu1@isaacyu1.com> | 2022-06-06 17:49:45 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-06-11 08:58:56 +0700 |
commit | 15fcd97f9f92871112bc0784a9b25ba1ea8f2c14 (patch) | |
tree | 4a0a81acae738c7e8d2c6b1e50fb16f9eb72e011 /python/traitlets/traitlets.SlackBuild | |
parent | afbde90334866fe105837b1f6ca14c6e25c9d415 (diff) | |
download | slackbuilds-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/traitlets/traitlets.SlackBuild')
-rw-r--r-- | python/traitlets/traitlets.SlackBuild | 15 |
1 files changed, 9 insertions, 6 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 |