def dpkg(version):
"""
Start the build process
"""
try:
subprocess.run([
'dch',
'-r',
version
], check=True)
except subprocess.CalledProcessError as error:
print(Fore.RED + "[qoqa] unable to release project")
print(Fore.RED + "[qoqa] {}".format(error))
exit()
try:
subprocess.run([
'dpkg-buildpackage',
'-us',
'-uc'
], check=True)
except subprocess.CalledProcessError as error:
print(Fore.RED + "[qoqa] unable to releaseproject")
print(Fore.RED + '[qoqa] {}'.format(error))
exit()
print(Fore.GREEN + "[qoqa] django project built")
评论列表
文章目录