Server IP : 80.241.246.6 / Your IP : 216.73.216.188 Web Server : Apache/2.4.25 (Debian) System : Linux kharagauli 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64 User : www-data ( 33) PHP Version : 7.0.33-0+deb9u12 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/letsencrypt/tools/ |
Upload File : |
#!/usr/bin/env python # pip installs the requested packages in editable mode and runs unit tests on # them. Each package is installed and tested in the order they are provided # before the script moves on to the next package. If CERTBOT_NO_PIN is set not # set to 1, packages are installed using pinned versions of all of our # dependencies. See pip_install.py for more information on the versions pinned # to. from __future__ import print_function import os import re import subprocess import sys SKIP_PROJECTS_ON_WINDOWS = ['certbot-apache'] def call_with_print(command): print(command) subprocess.check_call(command, shell=True) def main(args): script_dir = os.path.dirname(os.path.abspath(__file__)) command = [sys.executable, os.path.join(script_dir, 'pip_install_editable.py')] new_args = [] for arg in args: if os.name == 'nt' and arg in SKIP_PROJECTS_ON_WINDOWS: print(( 'Info: currently {0} is not supported on Windows and will not be tested.' .format(arg))) else: new_args.append(arg) for requirement in new_args: current_command = command[:] current_command.append(requirement) call_with_print(' '.join(current_command)) pkg = re.sub(r'\[\w+\]', '', requirement) call_with_print(' '.join([ sys.executable, '-m', 'pytest', pkg])) if __name__ == '__main__': main(sys.argv[1:])