def package_release(directory, name, v2_plugin=False): if not name: raise ValueError('Argument name can not be "NoneType"') try: setup_py = os.path.join(directory, 'setup.py') plugin_release_with_latest(name, find_version(setup_py), v2_plugin=v2_plugin) except (RuntimeError, FileNotFoundError): plugin_yaml = os.path.join(directory, 'plugin.yaml') plugin_release_with_latest(name, get_plugin_yaml_version(plugin_yaml), v2_plugin=v2_plugin)
from os import path, pardir from ecosystem_cicd_tools.release import ( plugin_release_with_latest, find_version) setup_py = path.join( path.abspath(path.join(path.dirname(__file__), pardir)), 'setup.py') if __name__ == '__main__': plugin_release_with_latest( 'cloudify-openstack-plugin', find_version(setup_py))
from os import path, pardir from ecosystem_cicd_tools.release import ( plugin_release_with_latest, find_version) setup_py = path.join( path.abspath(path.join(path.dirname(__file__), pardir)), 'setup.py') if __name__ == '__main__': plugin_release_with_latest( 'cloudify-utilities-plugin', find_version(setup_py))
from os import path, pardir from ecosystem_cicd_tools.release import (plugin_release_with_latest, find_version) setup_py = path.join(path.abspath(path.join(path.dirname(__file__), pardir)), 'setup.py') if __name__ == '__main__': plugin_release_with_latest('cloudify-managed-nagios-plugin', find_version(setup_py))
from os import path, pardir from ecosystem_cicd_tools.release import ( plugin_release_with_latest, find_version) setup_py = path.join( path.abspath(path.join(path.dirname(__file__), pardir)), 'setup.py') if __name__ == '__main__': plugin_release_with_latest( 'cloudify-docker-plugin', find_version(setup_py))
from os import path, pardir from ecosystem_cicd_tools.release import ( plugin_release_with_latest, find_version) setup_py = path.join( path.abspath(path.join(path.dirname(__file__), pardir)), 'setup.py') if __name__ == '__main__': plugin_release_with_latest( 'cloudify-nagiosrest-plugin', find_version(setup_py))