-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for onebranch changes (#233)
* Adds procedure to be able to write postgres versions * Adds procedure to be able to validate warnings
- Loading branch information
1 parent
4a2d487
commit 1bdd130
Showing
6 changed files
with
33 additions
and
5 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
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
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,15 @@ | ||
import argparse | ||
|
||
from .packaging_warning_handler import (validate_output) | ||
from .common_tool_methods import (PackageType) | ||
from pathlib import Path | ||
|
||
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument('--output_file', required=True) | ||
parser.add_argument('--ignore_file', required=True) | ||
parser.add_argument('--package_type', choices=[p.name for p in PackageType], required=True) | ||
|
||
args = parser.parse_args() | ||
build_output = Path(args.output_file).read_text() | ||
validate_output(build_output, args.ignore_file, PackageType[args.package_type]) |
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,11 @@ | ||
import argparse | ||
|
||
from .citus_package import (write_postgres_versions_into_file) | ||
|
||
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument('--project_version', required=True) | ||
parser.add_argument('--input_files_dir', required=True) | ||
|
||
args = parser.parse_args() | ||
write_postgres_versions_into_file(args.input_files_dir,args.project_version) |