-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 changed file
with
10 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import sys | ||
import subprocess | ||
from pathlib import Path | ||
|
||
from list_package_versions import get_package_infos | ||
|
||
|
||
def main(): | ||
returncode = 0 | ||
|
||
script_path = Path(__file__).resolve().parent | ||
root_path = script_path.parent | ||
|
||
package_infos = get_package_infos() | ||
for package in package_infos: | ||
for version in package_infos[package]: | ||
subprocess.run( | ||
proc = subprocess.run( | ||
["conan", "export", version["conanfile"], "--version", version["version"]], | ||
cwd=root_path | ||
) | ||
if proc.returncode != 0: | ||
print(f"Failed to export {package} {version['version']}") | ||
returncode = proc.returncode | ||
|
||
return returncode | ||
|
||
|
||
if __name__ == "__main__": | ||
main() | ||
sys.exit(main()) |