summaryrefslogtreecommitdiff
path: root/docutils/docs/dev
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2020-02-06 12:47:44 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2020-02-06 12:47:44 +0000
commit3507e99db74b9a33cd27a253e9b2f24641f80796 (patch)
treea467fa8f1761dba6abc0cb7bc213f34f526ef8db /docutils/docs/dev
parent123d214b95f12ed0be2aebd8c56c074b2d34ec24 (diff)
downloaddocutils-3507e99db74b9a33cd27a253e9b2f24641f80796.tar.gz
Documentation update.
Document the use of "setuptools" in "setup.py" and possible alternatives. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8489 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/docs/dev')
-rw-r--r--docutils/docs/dev/distributing.txt7
-rw-r--r--docutils/docs/dev/policies.txt54
-rw-r--r--docutils/docs/dev/release.txt2
-rw-r--r--docutils/docs/dev/repository.txt15
4 files changed, 50 insertions, 28 deletions
diff --git a/docutils/docs/dev/distributing.txt b/docutils/docs/dev/distributing.txt
index e4d4fa349..634dcbc4d 100644
--- a/docutils/docs/dev/distributing.txt
+++ b/docutils/docs/dev/distributing.txt
@@ -65,10 +65,9 @@ Executables
The executable front-end tools are located in the ``tools/`` directory
of the Docutils tarball.
-The ``rst2*.py`` tools (except ``rst2newlatex.py``) are intended for
-end-users. You should install them to ``/usr/bin/``. You do not need
-to change the names (e.g. to ``docutils-rst2html.py``) because the
-``rst2`` prefix is unique.
+The ``rst2*.py`` tools are intended for end-users. You should install them
+to ``/usr/bin/``. You do not need to change the names (e.g. to
+``docutils-rst2html.py``) because the ``rst2`` prefix is unique.
Documentation
diff --git a/docutils/docs/dev/policies.txt b/docutils/docs/dev/policies.txt
index 688bb33c5..eefaa0613 100644
--- a/docutils/docs/dev/policies.txt
+++ b/docutils/docs/dev/policies.txt
@@ -622,35 +622,58 @@ Setting Up For Docutils Development
When making changes to the code, testing is a must. The code should
be run to verify that it produces the expected results, and the entire
test suite should be run too. The modified Docutils code has to be
-accessible to Python for the tests to have any meaning. There are two
+accessible to Python for the tests to have any meaning. There are several
ways to keep the Docutils code accessible during development:
1. Update your ``PYTHONPATH`` environment variable so that Python
- picks up your local working copy of the code. This is the
- recommended method.
+ picks up your local working copy of the code.
- We'll assume that the Docutils trunk is checked out under your
- ~/projects/ directory as follows::
-
- svn co https://<user>@docutils.svn.sourceforge.net/svnroot/docutils/trunk \
- docutils
+ We'll assume that the `Docutils trunk`__ is checked out under your
+ ``~/projects/`` directory.
For the bash shell, add this to your ``~/.profile``::
PYTHONPATH=$HOME/projects/docutils/docutils
- PYTHONPATH=$PYTHONPATH:$HOME/projects/docutils/docutils/extras
+ PYTHONPATH=$PYTHONPATH:$HOME/projects/docutils/docutils
export PYTHONPATH
The first line points to the directory containing the ``docutils``
package. The second line adds the directory containing the
third-party modules Docutils depends on. The third line exports
- this environment variable. You may also wish to add the ``tools``
- directory to your ``PATH``::
+ this environment variable.
+
+ You many also want to add the ``tools`` directory to your binary ``PATH``::
PATH=$PATH:$HOME/projects/docutils/docutils/tools
export PATH
-2. Before you run anything, every time you make a change, reinstall
+ __ repository.html
+
+2. Create a symlink to the docutils package directory somewhere in the
+ module serach path (``sys.path``), e.g., ::
+
+ ln -s ~/projects/docutils/docutils \
+ /usr/local/lib/python2.7/site-packages/
+
+ Alternatively, use a `path configuration file`__.
+
+ __ https://docs.python.org/library/site.html
+
+ You may also want to copy or link the front-end tools in
+ ``docutils/tools`` to a suitable place in your binary PATH, e.g., ::
+
+ ln -s ~/projects/docutils/docutils/tools/rst2html.py \
+ /usr/local/bin/rst2html
+
+3. Do an `editable install`__ with pip.
+
+ __ https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs
+
+4. Install in `development mode`__ with setuptools.
+
+ __ https://setuptools.readthedocs.io/en/latest/setuptools.html#development-mode
+
+5. Before you run anything, every time you make a change, reinstall
Docutils::
python setup.py install
@@ -670,7 +693,7 @@ and alternate copies of the code is a ``set-PATHS`` file
containing the following lines::
# source this file
- export PYTHONPATH=$PWD:$PWD/extras
+ export PYTHONPATH=$PWD:$PWD
export PATH=$PWD/tools:$PATH
Open a shell for this branch, ``cd`` to the ``docutils`` top-level
@@ -738,9 +761,8 @@ structure is recommended::
...
tools/ # For front ends etc.
...
- setup.py # Use Distutils to install the component
- # code and tools/ files into the right
- # places in Docutils.
+ setup.py # Install the component code and tools/ files
+ # into the right places.
userid/ # For *temporary* personal space.
Some sandbox projects are destined to move to the Docutils core once
diff --git a/docutils/docs/dev/release.txt b/docutils/docs/dev/release.txt
index 278c0aeb4..497e6e872 100644
--- a/docutils/docs/dev/release.txt
+++ b/docutils/docs/dev/release.txt
@@ -126,7 +126,7 @@ REWORK FOR SOURCEFORGE REPO
or via the [Download Snapshot] button at
http://sourceforge.net/p/docutils/code/HEAD/tree/trunk/docutils/
- (c) Use Distutils to create the release tarball::
+ (c) Use `setuptools` to create the release tarball::
cd docutils
python setup.py sdist
diff --git a/docutils/docs/dev/repository.txt b/docutils/docs/dev/repository.txt
index c718ce3e3..169cb784c 100644
--- a/docutils/docs/dev/repository.txt
+++ b/docutils/docs/dev/repository.txt
@@ -107,6 +107,14 @@ type ::
svn update
+Switching the Repository Root
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+If you changed your mind and want to use a different repository root,
+``cd`` into your working copy and type::
+
+ svn switch --relocate OLDROOT NEWROOT
+
Creating a local git clone
~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -118,13 +126,6 @@ and proceed according to the `git documentation`_.
.. _git documentation: http://git-scm.com/documentation
-Switching the Repository Root
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-If you changed your mind and want to use a different repository root,
-``cd`` into your working copy and type::
-
- svn switch --relocate OLDROOT NEWROOT
.. _developer access: