()
| 88 | raise Exception('ERROR: deploy failed. status code: {}, reason: {}\n'.format(resp.status_code, resp.reason)) |
| 89 | |
| 90 | def clean(): |
| 91 | # 删除中间文件 |
| 92 | try: |
| 93 | shutil.rmtree(os.path.join(cur_dir, 'build'), ignore_errors=True) |
| 94 | egg_infos = find_files('*.egg-info', cur_dir) |
| 95 | for egg_info in egg_infos: |
| 96 | shutil.rmtree(egg_info, ignore_errors=True) |
| 97 | os.remove(os.path.join(cur_dir, 'setup.py')) |
| 98 | except Exception as e: |
| 99 | pass |
| 100 | |
| 101 | def get_services(service_name): |
| 102 | if 'HOST_IP' not in os.environ: |
no test coverage detected