from nuitka.Version import getNuitkaVersion nuitka_version = getNuitkaVersion() branch_name = checkBranchName() from nuitka.tools.release.Release import checkNuitkaChangelog if branch_name.startswith("release") or \ branch_name == "master" or \ branch_name.startswith("hotfix/"): if nuitka_version.count('.') == 2: assert checkChangeLog("New upstream release.") else: assert checkChangeLog("New upstream hotfix release.") assert checkNuitkaChangelog() == "final", checkNuitkaChangelog() else: assert checkChangeLog("New upstream pre-release."), branch_name assert checkNuitkaChangelog() == "draft", checkNuitkaChangelog() shutil.rmtree("dist", ignore_errors=True) shutil.rmtree("build", ignore_errors=True) createReleaseDocumentation() assert 0 == os.system("python setup.py sdist --formats=bztar,gztar,zip") os.chdir("dist") # Clean the stage for the debian package. The name "deb_dist" is what "py2dsc" # uses for its output later on.
from nuitka.Version import getNuitkaVersion nuitka_version = getNuitkaVersion() branch_name = checkBranchName() from nuitka.tools.release.Release import checkNuitkaChangelog if branch_name.startswith("release") or \ branch_name == "master" or \ branch_name.startswith("hotfix/"): if nuitka_version.count('.') == 2: assert checkChangeLog("New upstream release.") else: assert checkChangeLog("New upstream hotfix release.") assert checkNuitkaChangelog() == "final", checkNuitkaChangelog() else: assert checkChangeLog("New upstream pre-release."), branch_name assert checkNuitkaChangelog() == "draft", checkNuitkaChangelog() shutil.rmtree("dist", ignore_errors = True) shutil.rmtree("build", ignore_errors = True) createReleaseDocumentation() assert 0 == os.system("python setup.py sdist --formats=bztar,gztar,zip") os.chdir("dist") # Clean the stage for the debian package. The name "deb_dist" is what "py2dsc" # uses for its output later on.