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:
parent
760ea50533
commit
0ae6731553
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user