Exemplo n.º 1
0
 def upload(self):
     from infi.projector.helper.assertions import assert_version_tag_for_upload
     from infi.projector.helper.utils import get_latest_version
     version_tag = self.arguments['<version>']
     assert_version_tag_for_upload(version_tag)
     if version_tag == 'current':
         version_to_upload = 'HEAD'
     elif version_tag == 'latest':
         version_to_upload = get_latest_version()
     else:
         version_tag_without_v = version_tag.lstrip('v')
         version_to_upload = 'v{}'.format(version_tag_without_v)
     self.build_and_upload_distributions(version_to_upload)
Exemplo n.º 2
0
 def upload(self):
     from infi.projector.helper.assertions import assert_version_tag_for_upload
     from infi.projector.helper.utils import get_latest_version
     version_tag = self.arguments['<version>']
     assert_version_tag_for_upload(version_tag)
     if version_tag == 'current':
         version_to_upload = 'HEAD'
     elif version_tag == 'latest':
         version_to_upload = get_latest_version()
     else:
         version_tag_without_v = version_tag.lstrip('v')
         version_to_upload = 'v{}'.format(version_tag_without_v)
     self.build_and_upload_distributions(version_to_upload)