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
This commit is contained in:
Előd Illés 2023-04-21 16:38:13 +02:00
parent 760ea50533
commit 0ae6731553

View File

@ -91,7 +91,7 @@ def get_requirements_at_ref(workdir, repo, ref):
try: try:
dest = gitutils.clone_repo(workdir, repo, ref=ref) 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) sdist_name = pythonutils.get_sdist_name(workdir, repo)
requirements_filename = os.path.join( requirements_filename = os.path.join(
dest, sdist_name + '.egg-info', 'requires.txt', dest, sdist_name + '.egg-info', 'requires.txt',