diff --git a/tools/nuget/create_nuspect.py b/tools/nuget/create_nuspect.py deleted file mode 100644 index b2b8b58f19..0000000000 --- a/tools/nuget/create_nuspect.py +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import argparse -import sys - - -def parse_arguments(): - parser = argparse.ArgumentParser(description="ONNX Runtime create nuget spec script", - usage='') - # Main arguments - parser.add_argument("--source_dir", required=True, help="Path to the source directory.") - parser.add_argument("--debug_binary_root", required=True, help="Path to the debug binary directory.") - parser.add_argument("--release_binary_root", required=True, help="Path to the release binary directory.") - return parser.parse_args() - - -def generate_nuspec(source_dir, debug_binary_root, release_binary_root, architecture): - template_path = '%s/tools/nuget/template.nuspec' % source_dir - with open(template_path, 'rt') as f: - template = f.read() - return template.replace('@@DebugBinaryRoot@@', debug_binary_root)\ - .replace('@@ReleaseBinaryRoot@@', release_binary_root)\ - .replace('@@MSBuildArchitecture@@', architecture)\ - .replace('@@SrcRoot@@', source_dir) - - -def generate_targets(source_dir): - template_path = '%s/tools/nuget/template.targets' % source_dir - with open(template_path, 'rt') as f: - template = f.read() - return template - - -def main(): - args = parse_arguments() - nuspec = generate_nuspec(args.source_dir, args.debug_binary_root, args.release_binary_root, 'amd64') - with open('onnxruntime.nuspec', 'wt') as f: - f.write(nuspec) - targets = generate_targets(args.source_dir) - with open('onnxruntime.targets', 'wt') as f: - f.write(targets) - - -if __name__ == "__main__": - sys.exit(main()) diff --git a/tools/nuget/template.nuspec b/tools/nuget/template.nuspec deleted file mode 100644 index eaee073272..0000000000 --- a/tools/nuget/template.nuspec +++ /dev/null @@ -1,110 +0,0 @@ - - - - - Onnxruntime - - - 0.0.1 - - - Onnxruntime Team - - - Onnxruntime Team - - - http://opensource.org/licenses/MS-PL - https://github.com/onnx/onnxruntime - - - http://github.com/contoso/UsefulStuff/nuget_icon.png - - - false - - - Initial Release - - - Onnxruntime is a runtime for ONNX models - - - Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. - - - ONNX DeepLearning - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -