From 77220ad30e42676bd470120a8cd80b00119b27ac Mon Sep 17 00:00:00 2001 From: divyegala Date: Wed, 25 Oct 2023 14:21:21 -0700 Subject: [PATCH] missed files --- VERSION | 1 + ci/build_python.sh | 2 +- ci/build_wheel.sh | 2 +- ci/release/update-version.sh | 4 ++-- python/pylibwholegraph/pyproject.toml | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 VERSION diff --git a/VERSION b/VERSION new file mode 100644 index 000000000..a193fff41 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +23.12.00 diff --git a/ci/build_python.sh b/ci/build_python.sh index 83f94fa89..528ee40d3 100755 --- a/ci/build_python.sh +++ b/ci/build_python.sh @@ -16,6 +16,7 @@ CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp) version=$(rapids-generate-version) git_commit=$(git rev-parse HEAD) export RAPIDS_PACKAGE_VERSION=${version} +echo "${version}" | tr -d '"' > VERSION rapids-logger "Begin py build" @@ -23,7 +24,6 @@ rapids-logger "Begin py build" # node works correctly rapids-logger "Begin pylibwholegraph build" version_file_pylibwholegraph="python/pylibwholegraph/pylibwholegraph/_version.py" -sed -i "/^__version__/ s/= .*/= ${version}/g" ${version_file_pylibwholegraph} sed -i "/^__git_commit__/ s/= .*/= \"${git_commit}\"/g" ${version_file_pylibwholegraph} rapids-conda-retry mambabuild \ --no-test \ diff --git a/ci/build_wheel.sh b/ci/build_wheel.sh index 0c502bb78..2ea0bef18 100755 --- a/ci/build_wheel.sh +++ b/ci/build_wheel.sh @@ -23,7 +23,7 @@ pyproject_file="${package_dir}/pyproject.toml" version_file="${package_dir}/${package_name}/_version.py" sed -i "s/name = \"${package_name}\"/name = \"${package_name}${PACKAGE_CUDA_SUFFIX}\"/g" ${pyproject_file} -sed -i "/^__version__ / s/= .*/= ${version}/g" ${version_file} +echo "${version}" | tr -d '"' > VERSION sed -i "/^__git_commit__ / s/= .*/= \"${git_commit}\"/g" ${version_file} # For nightlies we want to ensure that we're pulling in alphas as well. The diff --git a/ci/release/update-version.sh b/ci/release/update-version.sh index 9722896d7..f06d21f06 100755 --- a/ci/release/update-version.sh +++ b/ci/release/update-version.sh @@ -57,8 +57,8 @@ sed_runner '/set(RAPIDS_VERSION/ s/".*"/'\"${NEXT_SHORT_TAG}\"'/g' python/pylibw sed_runner 's/version = .*/version = '"'${NEXT_SHORT_TAG}'"'/g' docs/wholegraph/source/conf.py sed_runner 's/release = .*/release = '"'${NEXT_FULL_TAG}'"'/g' docs/wholegraph/source/conf.py -# Python _version.py updates -sed_runner "/^__version__ / s/= .*/= \"${NEXT_FULL_TAG}\"/g" python/pylibwholegraph/pylibwholegraph/_version.py +# Centralized version file update +echo "${NEXT_FULL_TAG}" | tr -d '"' > VERSION DEPENDENCIES=( libraft diff --git a/python/pylibwholegraph/pyproject.toml b/python/pylibwholegraph/pyproject.toml index 572341584..ccb14b831 100644 --- a/python/pylibwholegraph/pyproject.toml +++ b/python/pylibwholegraph/pyproject.toml @@ -47,4 +47,4 @@ classifiers = [ license-files = ["LICENSE"] [tool.setuptools.dynamic] -version = {attr = "pylibwholegraph._version.__version__"} +version = {file = "pylibwholegraph/VERSION"}