コード例 #1
0
ファイル: pip_install.py プロジェクト: zhiyouth/certbot
def certbot_normal_processing(tools_path, test_constraints):
    repo_path = os.path.dirname(tools_path)
    certbot_requirements = os.path.normpath(
        os.path.join(repo_path, 'tools/certbot_constraints.txt'))
    with open(certbot_requirements, 'r') as fd:
        certbot_reqs = fd.readlines()
    with open(os.path.join(tools_path, 'pipstrap_constraints.txt'), 'r') as fd:
        pipstrap_reqs = fd.readlines()
    with open(test_constraints, 'w') as fd:
        data_certbot = "\n".join(strip_hashes.process_entries(certbot_reqs))
        data_pipstrap = "\n".join(strip_hashes.process_entries(pipstrap_reqs))
        data = "\n".join([data_certbot, data_pipstrap])
        fd.write(data)
コード例 #2
0
def certbot_normal_processing(tools_path, test_constraints):
    repo_path = os.path.dirname(tools_path)
    certbot_requirements = os.path.normpath(os.path.join(
        repo_path, 'letsencrypt-auto-source/pieces/dependency-requirements.txt'))
    with open(certbot_requirements, 'r') as fd:
        data = fd.readlines()
    with open(test_constraints, 'w') as fd:
        data = "\n".join(strip_hashes.process_entries(data))
        fd.write(data)
コード例 #3
0
ファイル: pip_install.py プロジェクト: certbot/certbot
def certbot_normal_processing(tools_path, test_constraints):
    repo_path = os.path.dirname(tools_path)
    certbot_requirements = os.path.normpath(os.path.join(
        repo_path, 'letsencrypt-auto-source/pieces/dependency-requirements.txt'))
    with open(certbot_requirements, 'r') as fd:
        data = fd.readlines()
    with open(test_constraints, 'w') as fd:
        data = "\n".join(strip_hashes.process_entries(data))
        fd.write(data)