diff options
author | Blair Bonnett | 2019-12-14 17:46:33 +0100 |
---|---|---|
committer | Blair Bonnett | 2019-12-14 17:46:33 +0100 |
commit | a99569ac290190e6cb76ff19a024b2c3a7a28798 (patch) | |
tree | 58b774e4845207e6c1194925222eaff4f26eb398 | |
parent | 4a90f33bc078df547223c921e0b0f51d78546b10 (diff) | |
download | aur-a99569ac290190e6cb76ff19a024b2c3a7a28798.tar.gz |
Fix version number reported by library.
Distributed uses versioneer to handle version numbering. The tarballs
provided by codeload.github.com were taken straight from the source, in
which case versioneer uses Git to determine a version number. This meant
it was picking up the hash of the latest commit to the AUR package's
repository and giving a version number like '0+untagged.20.g4a90f33' for
both the distributed.__version__ attribute in the library, and the
.egg-info metadata directory.
The tarballs uploaded to PyPI are generated using 'python setup.py
sdist' which makes versioneer embed the correct version number rather
than loading it dynamically. Switching to these as the source for the
package gets us the correct version number in the built library.
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 12 insertions, 8 deletions
@@ -1,8 +1,8 @@ pkgbase = python-distributed pkgdesc = Python library for distributed computing pkgver = 2.9.0 - pkgrel = 1 - url = http://distributed.readthedocs.org/en/stable/ + pkgrel = 2 + url = https://distributed.dask.org/ arch = any license = BSD depends = python @@ -32,8 +32,8 @@ pkgbase = python-distributed optdepends = python-asyncssh: Computing cluster using SSH communication optdepends = python-pytorch: Support for tensors and dynamic neural networks optdepends = python-ipywidgets: Extra widgets in diagnostic pages - source = 2.9.0.tar.gz::https://codeload.github.com/dask/distributed/tar.gz/2.9.0 - sha256sums = be5ebfa7f20ef09846486694c63483486143767c1595e4a75daf22a18fa516de + source = https://files.pythonhosted.org/packages/source/d/distributed/distributed-2.9.0.tar.gz + sha256sums = b66a15d6c02c28dd07e815d09cd77dab8484004533d38895714a5f10c7e7e325 pkgname = python-distributed @@ -4,7 +4,7 @@ pkgname=python-distributed _pkgname=distributed pkgver=2.9.0 -pkgrel=1 +pkgrel=2 pkgdesc="Python library for distributed computing" arch=('any') depends=( @@ -32,10 +32,14 @@ optdepends=( 'python-pytorch: Support for tensors and dynamic neural networks' 'python-ipywidgets: Extra widgets in diagnostic pages' ) -url="http://distributed.readthedocs.org/en/stable/" +url="https://distributed.dask.org/" license=('BSD') -source=("$pkgver.tar.gz::https://codeload.github.com/dask/distributed/tar.gz/$pkgver") -sha256sums=('be5ebfa7f20ef09846486694c63483486143767c1595e4a75daf22a18fa516de') +source=( + "https://files.pythonhosted.org/packages/source/d/distributed/distributed-$pkgver.tar.gz" +) +sha256sums=( + 'b66a15d6c02c28dd07e815d09cd77dab8484004533d38895714a5f10c7e7e325' +) build() { cd "$_pkgname-$pkgver" |