-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transfer centos2alma to the new submodule called dist-upgrader framework
The framework is a component of the distupgrade tools project that is used to upgrade Ubuntu/Debian family distributions. It was initially built on the distro-conversion-base, but was forked to incorporate more core logic and some of actions we use. We are relocating centos2alma to the framework to streamline maintenance of both projects and facilitate the sharing of fixes between them.
- Loading branch information
Mikhail Sandakov
committed
Apr 8, 2024
1 parent
cae72cf
commit 1808f5a
Showing
29 changed files
with
865 additions
and
1,391 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 | ||
|
||
[parser] | ||
python_interpreter = /usr/bin/python2 | ||
[python] | ||
interpreter = python2.7 | ||
[python#py3] | ||
interpreter = /usr/bin/python3.6 | ||
interpreter = /usr/bin/python3.6 | ||
[repositories] | ||
centos2alma = . | ||
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
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 = git@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,43 +1,29 @@ | ||
# Copyright 1999-2024. WebPros International GmbH. All rights reserved. | ||
# vim:ft=python: | ||
|
||
PRODUCT_VERSION = '1.2.3' | ||
PRODUCT_VERSION = '1.3.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 = 'centos2alma.lib', | ||
srcs = glob(['main.py', 'messages.py']), | ||
deps = [ | ||
':actions.lib', | ||
'//common:common.lib', | ||
], | ||
resources = [ | ||
':version', | ||
], | ||
) | ||
|
||
python_binary( | ||
name = 'centos2alma-script', | ||
name = 'centos2alma.pex', | ||
platform = 'py3', | ||
main_module = 'main', | ||
build_args = ['--python-shebang', '/usr/bin/env python3'], | ||
main_module = 'centos2almaconverter.main', | ||
deps = [ | ||
':centos2alma.lib', | ||
] | ||
'dist-upgrader//pleskdistup:lib', | ||
'//centos2almaconverter:lib', | ||
], | ||
) | ||
|
||
genrule( | ||
name = 'centos2alma', | ||
srcs = [':centos2alma-script'], | ||
srcs = [':centos2alma.pex'], | ||
out = 'centos2alma', | ||
cmd = 'cp $(location :centos2alma-script) $OUT && chmod +x $OUT', | ||
) | ||
cmd = 'cp $(location :centos2alma.pex) $OUT && chmod +x $OUT', | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.