Skip to content

Commit

Permalink
Transfer centos2alma to the new submodule called dist-upgrader framework
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 29 changed files with 865 additions and 1,391 deletions.
7 changes: 6 additions & 1 deletion .buckconfig
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
6 changes: 3 additions & 3 deletions .gitmodules
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
34 changes: 10 additions & 24 deletions BUCK
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',
)
297 changes: 0 additions & 297 deletions actions/common.py

This file was deleted.

20 changes: 0 additions & 20 deletions actions/convert.py

This file was deleted.

Loading

0 comments on commit 1808f5a

Please sign in to comment.