Skip to content

Instantly share code, notes, and snippets.

@czoido
Created August 28, 2020 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save czoido/05874e29325d33fc2a84c68e48df6c9a to your computer and use it in GitHub Desktop.
Save czoido/05874e29325d33fc2a84c68e48df6c9a to your computer and use it in GitHub Desktop.
import os
import subprocess
def run(cmd):
ret = os.system(cmd)
if ret != 0:
raise Exception("Failed command: %s" % cmd)
def main():
for pkg_major in range(1, 5):
for pkg_minor in range(1, 1000):
pkg_name = "pkg/{}.{}".format(pkg_major, pkg_minor)
run("conan create . {}@user/channel".format(pkg_name))
run("conan upload {} -r artifactory --all -c".format(pkg_name))
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment