Exemplo n.º 1
0
# Unchanged, running from checkout, use the parent directory, the nuitka
# package ought be there.
sys.path.insert(
    0,
    os.path.normpath(
        os.path.join(
            os.path.dirname(__file__),
            "..",
        )
    )
)

from nuitka.tools.release.Release import checkAtHome, checkBranchName
from nuitka.utils.Execution import check_output

checkAtHome()

nuitka_version = check_output(
    "./bin/nuitka --version", shell = True
).strip()

branch_name = checkBranchName()

if branch_name == "factory":
    for remote in "origin", "github":
        assert 0 == os.system("git push --recurse-submodules=no --force-with-lease %s factory" % remote)

    sys.exit(0)

assert 0 == os.system("rsync -rvlpt --exclude=deb_dist dist/ [email protected]:/var/www/releases/")
Exemplo n.º 2
0
parser = OptionParser()

parser.add_option("--use-as-ds-source",
                  action="store",
                  dest="ds_source",
                  default=None,
                  help="""\
When given, use this as the source for the Debian package instead. Default \
%default.""")

options, positional_args = parser.parse_args()

assert not positional_args, positional_args

checkAtHome()

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.")