diff --git a/_version.py b/_version.py new file mode 100644 index 0000000..d38a12c --- /dev/null +++ b/_version.py @@ -0,0 +1,21 @@ + +# This file was generated by 'versioneer.py' (0.16) from +# revision-control system data, or from the parent directory name of an +# unpacked source archive. Distribution tarballs contain a pre-generated copy +# of this file. + +import json +import sys + +version_json = ''' +{ + "dirty": false, + "error": null, + "full-revisionid": "a3299586b05d422800ff8a618a2ba35e00e62665", + "version": "2022.01.0" +} +''' # END VERSION_JSON + + +def get_versions(): + return json.loads(version_json) diff --git a/python-dask.spec b/python-dask.spec index 8bf5d59..24a0d0a 100644 --- a/python-dask.spec +++ b/python-dask.spec @@ -14,6 +14,8 @@ Summary: Parallel PyData with Task Scheduling License: BSD URL: https://github.com/dask/dask/ Source0: https://github.com/dask/dask/archive/%{tag}/%{srcname}-%{tag}.tar.gz +# Grab this from the sdist until we switch back to it. +Source1: _version.py # https://github.com/dask/dask/issues/6725 Patch0001: 0001-Skip-test_encoding_gh601-on-big-endian-machines.patch @@ -75,6 +77,7 @@ Documentation for dask. %prep %autosetup -n %{srcname}-%{tag} -p1 +cp %SOURCE1 %{srcname}/ %generate_buildrequires