From 0ae6731553efe2eb51a99646363ac43f5c9ab162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?El=C5=91d=20Ill=C3=A9s?= Date: Fri, 21 Apr 2023 16:38:13 +0200 Subject: [PATCH] Replace old sdist and wheel build command in validate The new way of packaging a python project is via build package. This patch replaces the old setup.py style sdist and wheel build. Change-Id: I67cbdfdfd9ed334e742ff4def21c59cd8a8de24c --- openstack_releases/requirements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_releases/requirements.py b/openstack_releases/requirements.py index ba02774f06..118437bf28 100644 --- a/openstack_releases/requirements.py +++ b/openstack_releases/requirements.py @@ -91,7 +91,7 @@ def get_requirements_at_ref(workdir, repo, ref): try: dest = gitutils.clone_repo(workdir, repo, ref=ref) - processutils.check_call(['python3', 'setup.py', 'sdist'], cwd=dest) + processutils.check_call(['python3', '-m', 'build', '--sdist', '--wheel'], cwd=dest) sdist_name = pythonutils.get_sdist_name(workdir, repo) requirements_filename = os.path.join( dest, sdist_name + '.egg-info', 'requires.txt',