diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/traitlets/traitlets.SlackBuild | 15 | ||||
-rw-r--r-- | python/traitlets/traitlets.info | 6 |
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" |