Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove versioneer #1204

Merged
merged 11 commits into from
Jun 30, 2023
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ repos:
(?x)^(
.*test.*|
^CHANGELOG.md$|
^.*versioneer.py$
)
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.991'
Expand Down
17 changes: 17 additions & 0 deletions ci/build_python_pypi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,28 @@ python -m pip install build --user
export GIT_DESCRIBE_TAG=$(git describe --abbrev=0 --tags)
export GIT_DESCRIBE_NUMBER=$(git rev-list ${GIT_DESCRIBE_TAG}..HEAD --count)

# Build date for PyPI pre-releases using version from `pyproject.toml` as source.
TOML_VERSION=$(grep "version = .*" pyproject.toml | grep -o '".*"' | sed 's/"//g')
if ! rapids-is-release-build; then
export BUILD_DATE=$(date +%y%m%d)
export PACKAGE_VERSION_NUMBER="${TOML_VERSION}a${BUILD_DATE}"
fi

# Compute/export RAPIDS_DATE_STRING
source rapids-env-update

# Update pyproject.toml with pre-release build date
if ! rapids-is-release-build; then
sed -i "s/^version = \""${TOML_VERSION}".*\"/version = \""${PACKAGE_VERSION_NUMBER}"\"/g" pyproject.toml
fi

python -m build \
--sdist \
--wheel \
--outdir dist/ \
.

# Revert pyproject.toml pre-release build date
if ! rapids-is-release-build; then
sed -i "s/^version = \""${PACKAGE_VERSION_NUMBER}"\"/version = \""${TOML_VERSION}"\"/g" pyproject.toml
fi
6 changes: 6 additions & 0 deletions ci/release/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ function sed_runner() {
sed -i.bak ''"$1"'' $2 && rm -f ${2}.bak
}

# Python __init__.py updates
sed_runner "s/__version__ = .*/__version__ = \"${NEXT_FULL_TAG}\"/g" dask_cuda/__init__.py

# Python pyproject.toml updates
sed_runner "s/^version = .*/version = \"${NEXT_FULL_TAG}\"/g" pyproject.toml

# Bump cudf and dask-cudf testing dependencies
sed_runner "s/cudf=.*/cudf=${NEXT_SHORT_TAG}/g" dependencies.yaml
sed_runner "s/dask-cudf=.*/dask-cudf=${NEXT_SHORT_TAG}/g" dependencies.yaml
Expand Down
1 change: 0 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#Configuration File for CodeCov
ignore:
- "dask_cuda/_version.py"
- "dask_cuda/benchmarks/*" # benchmarks aren't covered
1 change: 0 additions & 1 deletion conda/recipes/dask-cuda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ requirements:
- python
- pip
- tomli
- versioneer >=0.24
run:
- python
- dask-core >=2023.5.1
Expand Down
4 changes: 1 addition & 3 deletions dask_cuda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import dask.dataframe.multi
import dask.bag.core

from ._version import get_versions
from .cuda_worker import CUDAWorker
from .explicit_comms.dataframe.shuffle import (
get_rearrange_by_column_wrapper,
Expand All @@ -20,8 +19,7 @@
from .local_cuda_cluster import LocalCUDACluster
from .proxify_device_objects import proxify_decorator, unproxify_decorator

__version__ = get_versions()["version"]
del get_versions
__version__ = "23.08.00"


# Monkey patching Dask to make use of explicit-comms when `DASK_EXPLICIT_COMMS=True`
Expand Down
Loading