Fix version in metadata

This commit is contained in:
Elliott Sales de Andrade 2022-01-16 00:36:45 -05:00
parent c8af79dc2b
commit ce5e5ff0bf
2 changed files with 24 additions and 0 deletions

21
_version.py Normal file
View File

@ -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)

View File

@ -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