| 1 |
============= |
| 2 |
dh-virtualenv |
| 3 |
============= |
| 4 |
|
| 5 |
------------------------------------------------------ |
| 6 |
deploy a Python package in a self-contained virtualenv |
| 7 |
------------------------------------------------------ |
| 8 |
|
| 9 |
:Author: Jyrki Pulliainen / Spotify AB <[email protected]> |
| 10 |
:Copyright: Copyright (C) 2013, Spotify AB. Licensed under |
| 11 |
the GNU General Public License version 2 or later |
| 12 |
:Manual section: 1 |
| 13 |
:Manual group: DebHelper |
| 14 |
|
| 15 |
SYNOPSIS |
| 16 |
======== |
| 17 |
|
| 18 |
**dh_virtualenv** [*OPTIONS*] |
| 19 |
|
| 20 |
|
| 21 |
DESCRIPTION |
| 22 |
=========== |
| 23 |
|
| 24 |
``dh-virtualenv`` is a tool that aims to combine Debian packaging with |
| 25 |
self-contained virtualenv based Python deployments. To do this, the |
| 26 |
package extends debhelper's sequence by providing a new command in |
| 27 |
sequence, ``dh_virtualenv``, which effectively replaces following |
| 28 |
commands from the sequence: |
| 29 |
|
| 30 |
* ``dh_auto_install`` |
| 31 |
* ``dh_python2`` |
| 32 |
* ``dh_pycentral`` |
| 33 |
* ``dh_pysupport`` |
| 34 |
|
| 35 |
In the sequence the ``dh_virtualenv`` is inserted right after |
| 36 |
``dh_perl``. |
| 37 |
|
| 38 |
OPTIONS |
| 39 |
======= |
| 40 |
|
| 41 |
-p PACKAGE, --package=PACKAGE Act on the package named PACKAGE |
| 42 |
-N PACKAGE, --no-package=PACKAGE Do not act on the specified PACKAGE |
| 43 |
-v, --verbose Turn on verbose mode. |
| 44 |
--extra-index-url Pass extra index URL to pip |
| 45 |
--preinstall=PACKAGE Preinstall a PACKAGE before running pip. |
| 46 |
--pip-tool=PIP_TOOL Tool used to install requirements. |
| 47 |
--extra-pip-arg Extra arg for the pip executable. |
| 48 |
--extra-virtualenv-arg Extra arg for the virtualenv executable. |
| 49 |
--index-url Base URL for PyPI server. |
| 50 |
--setuptools Use setuptools instead of distribute. |
| 51 |
--install-suffix=SUFFIX Override virtualenv installation suffix |
| 52 |
--upgrade-pip Force upgrade pip in virtualenv |
| 53 |
--requirements=FILE Use FILE for requirements |
| 54 |
--setuptools-test Run `setup.py test` upon build. |
| 55 |
--python=PATH Use Python interpreter at PATH |
| 56 |
--builtin-venv Use built-in venv of Python 3 |
| 57 |
--skip-install Don't run ``pip install .`` |
| 58 |
|
| 59 |
QUICK GUIDE FOR MAINTAINERS |
| 60 |
=========================== |
| 61 |
|
| 62 |
1. Build depend on `python` or `python-all` and `dh-virtualenv` |
| 63 |
2. Add `${python:Depends}` to Depends |
| 64 |
3. Add `python-virtualenv` to dh's `--with` option |
| 65 |
|
| 66 |
SEE ALSO |
| 67 |
======== |
| 68 |
|
| 69 |
Online documentation can be found at |
| 70 |
https://dh-virtualenv.readthedocs.io/en/latest. |
| 71 |
|
| 72 |
This package should also ship with the complete documentation under |
| 73 |
`/usr/share/doc/dh-virtualenv`. |