This is an automated email from the ASF dual-hosted git repository.
manirajv06 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-release.git
The following commit(s) were added to refs/heads/master by this push:
new d89496a [YUNIKORN-3327] Replace deprecated distutils with shutil in
release script The distutils package is deprecated (PEP 632) and completely
removed in Python 3.12. This updates release-tools/build-release.py to use the
standard library shutil.copytree instead of distutils.dir_util.copy_tree ,
ensuring compatibility with modern Python environments. (#233)
d89496a is described below
commit d89496a330620399ee4a2a35bb66738a721e3968
Author: PoiBlackTea <[email protected]>
AuthorDate: Tue Jul 21 20:58:14 2026 +0530
[YUNIKORN-3327] Replace deprecated distutils with shutil in release script
The distutils package is deprecated (PEP 632) and completely removed in Python
3.12. This updates release-tools/build-release.py to use the standard library
shutil.copytree instead of distutils.dir_util.copy_tree , ensuring
compatibility with modern Python environments. (#233)
Closes: #233
Signed-off-by: Manikandan R <[email protected]>
---
release-tools/build-release.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/release-tools/build-release.py b/release-tools/build-release.py
index ea06874..3be3321 100755
--- a/release-tools/build-release.py
+++ b/release-tools/build-release.py
@@ -15,7 +15,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import distutils.dir_util
import getopt
import hashlib
import json
@@ -175,7 +174,7 @@ def setup_base_dir(release_top_path, helm_path, base_path,
version):
def copy_helm_charts(helm_path, base_path, version):
print("helm patch: %s, base path: %s" % (helm_path, base_path))
release_helm_path = os.path.join(base_path, "helm-charts")
- distutils.dir_util.copy_tree(helm_path, release_helm_path)
+ shutil.copytree(helm_path, release_helm_path)
# rename the version in the helm charts to the actual version
yunikorn_chart_path = os.path.join(release_helm_path, "yunikorn")
replace(os.path.join(yunikorn_chart_path, "values.yaml"), '(tag:
.*-)(latest)', '\\g<1>' + version)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]