-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make "shaptools" available inside the Salt Bundle (venv-salt-minion) (bsc#1212695) #76
Merged
yeoldegrove
merged 2 commits into
SUSE:main
from
meaksh:main-add-integration-with-venv-salt-minion
Nov 27, 2023
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,9 @@ | ||
------------------------------------------------------------------- | ||
Tue Nov 21 11:22:48 UTC 2023 - Pablo Suárez Hernández <[email protected]> | ||
|
||
- Create version 0.3.14 | ||
- Make shaptools available for venv-salt-minion (bsc#1212695) | ||
|
||
------------------------------------------------------------------- | ||
Fri Jan 13 02:13:36 UTC 2023 - Steve Kowalik <[email protected]> | ||
|
||
|
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
:since: 2018-11-15 | ||
""" | ||
|
||
__version__ = "0.3.13" | ||
__version__ = "0.3.14" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see
python3
used always. What if we need the py2 version?Or is it irrelevant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, the "venv-salt-minion" package is only Python 3.
Are you supporting shap based formulas on Python 2 OSes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were when I implemented this package 5 years ago. Right now, I'm not really sure to be honest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also simply not support the py2 version use case in the "venv-salt-minion" use case.
Maybe a simple
%if %{without python2}
condition could be wrapped around the sub-package?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the notes 👍
So Salt Bundle is only Python 3, and from what I can see, formulas like "saphanabootstrap" are installing
python3-shaptools
depending on thepythonversion
that is processing the Salt formula: https://github.com/SUSE/saphanabootstrap-formula/blob/main/hana/packages.sls#L32Therefore if Salt Bundle is the one processing the formula, which is always Python 3, then the "python3-shaptools" package will be installed and, due to this PR, the new
python3-shaptools-venv-salt-minion
package will get automatically installed. We are all fine here.It doesn't really make to have a python 2 flavor of this integration with the Salt Bundle.
Agree as mentioned. It doesn't make sense a Python 2 flavor for the "venv-salt-minion".
IIUC the
%if %{without python2}
is not really needed here - we always want to build thepython3-shaptools-venv-salt-minion
package, AFAICS the "python-shaptools" always build python3 subpackages and for some OSes it additionally builds the python2 flavor.