-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New version of the utility based on Plesk dist-upgrader
- Loading branch information
1 parent
16900b1
commit e37b28f
Showing
26 changed files
with
356 additions
and
1,359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
# Documentation: https://buckbuild.com/concept/buckconfig.html | ||
|
||
[python] | ||
interpreter = python2.7 | ||
[parser] | ||
python_interpreter = /usr/bin/python2 | ||
|
||
[python#py3] | ||
interpreter = /usr/bin/python3.6 | ||
interpreter = /usr/bin/python3 | ||
|
||
[repositories] | ||
ubuntu18to20 = . | ||
dist-upgrader = ./dist-upgrader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "common"] | ||
path = common | ||
url = https://github.com/plesk/distro-conversion-base | ||
[submodule "dist-upgrader"] | ||
path = dist-upgrader | ||
url = https://github.com/plesk/dist-upgrader.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,23 @@ | ||
# Copyright 1999-2023. Plesk International GmbH. All rights reserved. | ||
# vim:ft=python: | ||
|
||
PRODUCT_VERSION = '1.0.0' | ||
|
||
genrule( | ||
name = 'version', | ||
out = 'version.json', | ||
bash = r"""echo "{\"version\": \"%s\", \"revision\": \"`git rev-parse HEAD`\"}" > $OUT""" % (PRODUCT_VERSION), | ||
) | ||
|
||
python_library( | ||
name = 'actions.lib', | ||
srcs = glob(['./actions/*.py']), | ||
) | ||
|
||
python_library( | ||
name = 'ubuntu18to20.lib', | ||
srcs = glob(['main.py', 'messages.py']), | ||
deps = [ | ||
'//common:common.lib', | ||
':actions.lib', | ||
], | ||
resources = [ | ||
':version', | ||
], | ||
) | ||
include_defs('//product.defs.py') | ||
|
||
|
||
python_binary( | ||
name = 'ubuntu18to20-script', | ||
name = 'ubuntu18to20.pex', | ||
platform = 'py3', | ||
main_module = 'main', | ||
build_args = ['--python-shebang', '/usr/bin/env python3'], | ||
main_module = 'ubuntu18to20.main', | ||
deps = [ | ||
':ubuntu18to20.lib', | ||
'dist-upgrader//pleskdistup:lib', | ||
'//ubuntu18to20:lib', | ||
], | ||
) | ||
|
||
genrule( | ||
name = 'ubuntu18to20', | ||
srcs = [':ubuntu18to20-script'], | ||
srcs = [':ubuntu18to20.pex'], | ||
out = 'ubuntu18to20', | ||
cmd = 'cp $(location :ubuntu18to20-script) $OUT && chmod +x $OUT', | ||
cmd = 'cp $(location :ubuntu18to20.pex) $OUT && chmod +x $OUT', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.