@@ -94,11 +94,105 @@ virtualenvwrapper のドキュメントは reStructuredText で書かれてい
9494================
9595
9696..
97- The test suite for virtualenvwrapper uses `shunit2
98- <http://shunit2.googlecode.com/>`_ and `tox
99- <http://codespeak.net/tox>`_. To run the tests under bash, sh, and
100- zsh, use ``make test`` or just ``tox``. In order to add new tests,
101- you will need to modify or create an appropriate script in the
102- ``tests`` directory.
103-
104- virtualenvwrapper のテストセットは `shunit2 <http://shunit2.googlecode.com/ >`_ と `tox <http://codespeak.net/tox >`_ を使用します。bash, sh や zsh でテストを実行するには ``make test `` か、ただ ``tox `` を実行してください。新しくテストを追加するには、 ``tests `` ディレクトリの適切なスクリプトを作成したり、修正する必要があります。
97+ The test suite for virtualenvwrapper uses shunit2_ and tox_. The
98+ shunit2 source is included in the ``tests`` directory, but tox must be
99+ installed separately (``pip install tox``).
100+
101+ virtualenvwrapper のテストスイートは shunit2 _ と tox _ を使います。shunit2 のソースは ``tests `` ディレクトリに含まれていますが、tox は別途インストールする必要があります (``pip install tox ``) 。
102+
103+ ..
104+ To run the tests under bash, zsh, and ksh for Python 2.4 through 2.7,
105+ run ``tox`` from the top level directory of the hg repository.
106+
107+ bash, zsh, ksh 環境で Python 2.4 - 2.7 のテストを実行するには、hg リポジトリの最上位ディレクトリから ``tox `` を実行してください。
108+
109+ ..
110+ To run individual test scripts, use a command like::
111+
112+ 個別のテストスクリプトを実行するには、次のように実行します。
113+
114+ ::
115+
116+ $ tox tests/test_cd.sh
117+
118+ ..
119+ To run tests under a single version of Python, specify the appropriate
120+ environment when running tox::
121+
122+ Python のあるバージョンでテストを実行するには、tox を実行するときに適切な環境を指定します。
123+
124+ ::
125+
126+
127+ $ tox -e py27
128+
129+ ..
130+ Combine the two modes to run specific tests with a single version of
131+ Python::
132+
133+ 前述した特定テストと Python バージョンのテストを実行するには、2つの方法を組み合わせてください。
134+
135+ ::
136+
137+ $ tox -e py27 tests/test_cd.sh
138+
139+ ..
140+ Add new tests by modifying an existing file or creating new script in
141+ the ``tests`` directory.
142+
143+ 既存のファイルを変更して新しいテストを追加するか、 ``tests `` ディレクトリに新しいスクリプトを作成してください。
144+
145+ .. _shunit2 : http://shunit2.googlecode.com/
146+
147+ .. _tox : http://codespeak.net/tox
148+
149+ .. _developer-templates :
150+
151+ ..
152+ Creating a New Template
153+ =======================
154+
155+ 新しいテンプレートの作成
156+ ========================
157+
158+ ..
159+ virtualenvwrapper.project templates work like `virtualenvwrapper
160+ plugins
161+ <http://www.doughellmann.com/docs/virtualenvwrapper/plugins.html>`__.
162+ The *entry point* group name is
163+ ``virtualenvwrapper.project.template``. Configure your entry point to
164+ refer to a function that will **run** (source hooks are not supported
165+ for templates).
166+
167+ virtualenvwrapper.project テンプレートは `virtualenvwrapper plugins <http://www.doughellmann.com/docs/virtualenvwrapper/plugins.html >`__ と同じように動作します。
168+ *entry point * グループの名前は ``virtualenvwrapper.project.template `` です。
169+ **run ** を実行する関数を参照する独自のエントリーポイントを設定してください
170+ (ソースフックはテンプレートをサポートしていません) 。
171+
172+ ..
173+ The argument to the template function is the name of the project being
174+ created. The current working directory is the directory created to
175+ hold the project files (``$PROJECT_HOME/$envname``).
176+
177+ テンプレート関数の引数は、作成するプロジェクトの名前です。
178+ カレントワークディレクトリは、プロジェクトのファイルを保持するために作成されたディレクトリです (``$PROJECT_HOME/$envname ``) 。
179+
180+ ..
181+ Help Text
182+ ---------
183+
184+ ヘルプテキスト
185+ --------------
186+
187+ ..
188+ One difference between project templates and other virtualenvwrapper
189+ extensions is that only the templates specified by the user are run.
190+ The ``mkproject`` command has a help option to give the user a list of
191+ the available templates. The names are taken from the registered
192+ entry point names, and the descriptions are taken from the docstrings
193+ for the template functions.
194+
195+ プロジェクトテンプレートとその他の virtualenvwrapper 拡張との違いは、ユーザーが指定したテンプレートのみが実行されることです。
196+ ``mkproject `` コマンドは、ユーザーへ利用できるテンプレート一覧表示するヘルプオプションがあります。
197+ テンプレート名は、登録されたエントリーポイントから取得される名前です。
198+ そして、テンプレートの説明は、テンプレート関数の docstrings を表示します。
0 commit comments