-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
26 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type: fix | ||
fix: | ||
description: Remove yq from script | ||
links: | ||
- https://github.com/palantir/foundry-platform-python/pull/23 |
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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import sys | ||
import xml.etree.ElementTree as ET | ||
|
||
|
||
def main(): | ||
xml_data = sys.stdin.read() | ||
root = ET.fromstring(xml_data) | ||
|
||
# Navigate to the 'release' element under 'metadata/versioning' | ||
release = root.find(".//versioning/release") | ||
|
||
if release is None: | ||
raise Exception("Unable to find version") | ||
|
||
print(release.text) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |