Skip to content

Commit

Permalink
update conan_export_all_packages
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Sep 18, 2024
1 parent 4722ce2 commit 00cb540
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/conan_export_all_packages.py
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())

0 comments on commit 00cb540

Please sign in to comment.