Public Member Functions | |
def | __init__ (self, package, extra_urls=[], preinstall=[], pip_tool='pip', upgrade_pip=False, index_url=None, setuptools=False, python=None, builtin_venv=False, builtin_pip=False, sourcedirectory=None, verbose=False, extra_pip_arg=[], extra_virtualenv_arg=[], use_system_packages=False, skip_install=False, install_suffix=None, log_file=tempfile.NamedTemporaryFile().name, pip_version=None, requirements_filename='requirements.txt') |
def | clean (self) |
def | create_virtualenv (self) |
def | find_script_files (self) |
def | fix_activate_path (self) |
def | fix_local_symlinks (self) |
def | fix_shebangs (self) |
def | from_options (cls, package, options) |
def | install_dependencies (self) |
def | install_package (self) |
def | pip (self, args) |
def | pip_preinstall (self, args) |
def | run_tests (self) |
def | venv_bin (self, binary_name) |
Definition at line 42 of file deployment.py.
def dh_virtualenv.deployment.Deployment.__init__ | ( | self, | |
package, | |||
extra_urls = [] , |
|||
preinstall = [] , |
|||
pip_tool = 'pip' , |
|||
upgrade_pip = False , |
|||
index_url = None , |
|||
setuptools = False , |
|||
python = None , |
|||
builtin_venv = False , |
|||
builtin_pip = False , |
|||
sourcedirectory = None , |
|||
verbose = False , |
|||
extra_pip_arg = [] , |
|||
extra_virtualenv_arg = [] , |
|||
use_system_packages = False , |
|||
skip_install = False , |
|||
install_suffix = None , |
|||
log_file = tempfile.NamedTemporaryFile().name , |
|||
pip_version = None , |
|||
requirements_filename = 'requirements.txt' |
|||
) |
Definition at line 63 of file deployment.py.
def dh_virtualenv.deployment.Deployment.clean | ( | self | ) |
Definition at line 155 of file deployment.py.
def dh_virtualenv.deployment.Deployment.create_virtualenv | ( | self | ) |
Definition at line 158 of file deployment.py.
def dh_virtualenv.deployment.Deployment.find_script_files | ( | self | ) |
Find list of files containing python shebangs in the bin directory
Definition at line 222 of file deployment.py.
def dh_virtualenv.deployment.Deployment.fix_activate_path | ( | self | ) |
Replace the `VIRTUAL_ENV` path in bin/activate to reflect the post-install path of the virtualenv.
Definition at line 244 of file deployment.py.
def dh_virtualenv.deployment.Deployment.fix_local_symlinks | ( | self | ) |
Definition at line 281 of file deployment.py.
def dh_virtualenv.deployment.Deployment.fix_shebangs | ( | self | ) |
Translate /usr/bin/python and /usr/bin/env python shebang lines to point to our virtualenv python.
Definition at line 232 of file deployment.py.
def dh_virtualenv.deployment.Deployment.from_options | ( | cls, | |
package, | |||
options | |||
) |
Definition at line 134 of file deployment.py.
def dh_virtualenv.deployment.Deployment.install_dependencies | ( | self | ) |
Definition at line 198 of file deployment.py.
def dh_virtualenv.deployment.Deployment.install_package | ( | self | ) |
Definition at line 277 of file deployment.py.
def dh_virtualenv.deployment.Deployment.pip | ( | self, | |
args | |||
) |
Definition at line 195 of file deployment.py.
def dh_virtualenv.deployment.Deployment.pip_preinstall | ( | self, | |
args | |||
) |
Definition at line 192 of file deployment.py.
def dh_virtualenv.deployment.Deployment.run_tests | ( | self | ) |
Definition at line 216 of file deployment.py.
def dh_virtualenv.deployment.Deployment.venv_bin | ( | self, | |
binary_name | |||
) |
Definition at line 189 of file deployment.py.
dh_virtualenv.deployment.Deployment.bin_dir |
Definition at line 82 of file deployment.py.
dh_virtualenv.deployment.Deployment.builtin_venv |
Definition at line 92 of file deployment.py.
dh_virtualenv.deployment.Deployment.debian_root |
Definition at line 73 of file deployment.py.
dh_virtualenv.deployment.Deployment.extra_virtualenv_arg |
Definition at line 88 of file deployment.py.
dh_virtualenv.deployment.Deployment.install_suffix |
Definition at line 68 of file deployment.py.
dh_virtualenv.deployment.Deployment.local_bin_dir |
Definition at line 83 of file deployment.py.
dh_virtualenv.deployment.Deployment.log_file |
Definition at line 120 of file deployment.py.
dh_virtualenv.deployment.Deployment.package |
Definition at line 65 of file deployment.py.
dh_virtualenv.deployment.Deployment.package_dir |
Definition at line 77 of file deployment.py.
dh_virtualenv.deployment.Deployment.pip_args |
Definition at line 108 of file deployment.py.
dh_virtualenv.deployment.Deployment.pip_prefix |
Definition at line 104 of file deployment.py.
dh_virtualenv.deployment.Deployment.pip_preinstall_prefix |
Definition at line 103 of file deployment.py.
dh_virtualenv.deployment.Deployment.pip_upgrade_args |
Definition at line 125 of file deployment.py.
dh_virtualenv.deployment.Deployment.pip_version |
Definition at line 87 of file deployment.py.
dh_virtualenv.deployment.Deployment.preinstall |
Definition at line 85 of file deployment.py.
dh_virtualenv.deployment.Deployment.python |
Definition at line 91 of file deployment.py.
dh_virtualenv.deployment.Deployment.requirements_filename |
Definition at line 96 of file deployment.py.
dh_virtualenv.deployment.Deployment.setuptools |
Definition at line 90 of file deployment.py.
dh_virtualenv.deployment.Deployment.skip_install |
Definition at line 95 of file deployment.py.
dh_virtualenv.deployment.Deployment.sourcedirectory |
Definition at line 93 of file deployment.py.
dh_virtualenv.deployment.Deployment.upgrade_pip |
Definition at line 86 of file deployment.py.
dh_virtualenv.deployment.Deployment.use_system_packages |
Definition at line 94 of file deployment.py.
dh_virtualenv.deployment.Deployment.verbose |
Definition at line 89 of file deployment.py.
dh_virtualenv.deployment.Deployment.virtualenv_install_dir |
Definition at line 76 of file deployment.py.