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: Ia351d099aa3b2491e3a4d255d87bb7c6bd691cac
This commit is contained in:
Előd Illés 2022-03-28 11:29:09 +02:00
parent 10bd93e6bc
commit 97baab754f
2 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,7 @@ def build_sdist(workdir, repo):
'SKIP_GENERATE_AUTHORS': '1',
'SKIP_WRITE_GIT_CHANGELOG': '1',
}
cmd = [python, 'setup.py', 'sdist', 'bdist_wheel']
cmd = [python, '-m', 'build' '--sdist', '--wheel']
processutils.check_call(
cmd,
cwd=dest,

View File

@ -8,6 +8,7 @@
# #
######################################################################
build>=0.7.0
pbr>=1.6
keyring>=7.3
requests>=2.5.2