Merge pull request #249486 from tjni/dask

python3.pkgs.dask: remove references to versioneer
This commit is contained in:
OTABI Tomoya 2023-08-19 09:46:38 +09:00 committed by GitHub
commit 5a88a87752
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,9 +3,9 @@
, buildPythonPackage
, fetchFromGitHub
# build-syste
# build-system
, setuptools
, versioneer
, wheel
# dependencies
, click
@ -52,7 +52,7 @@ buildPythonPackage rec {
nativeBuildInputs = [
setuptools
versioneer
wheel
];
propagatedBuildInputs = [
@ -109,10 +109,12 @@ buildPythonPackage rec {
echo "def get_versions(): return {'dirty': False, 'error': None, 'full-revisionid': None, 'version': '${version}'}" > dask/_version.py
substituteInPlace setup.py \
--replace "import versioneer" "" \
--replace "version=versioneer.get_version()," "version='${version}'," \
--replace "cmdclass=versioneer.get_cmdclass()," ""
substituteInPlace pyproject.toml \
--replace ', "versioneer[toml]==0.28"' "" \
--replace " --durations=10" "" \
--replace " --cov-config=pyproject.toml" "" \
--replace "\"-v" "\" "