diff options
| author | Jannis Leidel <jannis@leidel.info> | 2009-10-07 18:50:17 +0200 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2009-10-07 18:50:17 +0200 |
| commit | 45a293a430e41d37c583df639f4dcc9880565438 (patch) | |
| tree | 691f891deb92de837dd8f0cd6b1a0d8ee3d88dbf /docs | |
| parent | 847659f5b6c3f71dcd6db1ba1fe76bbc89739732 (diff) | |
| download | external_python_setuptools-45a293a430e41d37c583df639f4dcc9880565438.tar.gz external_python_setuptools-45a293a430e41d37c583df639f4dcc9880565438.tar.bz2 external_python_setuptools-45a293a430e41d37c583df639f4dcc9880565438.zip | |
Added a upload_docs command to upload project documentation to PyPI's packages.python.org
--HG--
branch : distribute
extra : rebase_source : e8d62df101ab017b71ec9c923f64bc3494ba8979
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/setuptools.txt | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/docs/setuptools.txt b/docs/setuptools.txt index 06f632ec..7c679fd0 100644 --- a/docs/setuptools.txt +++ b/docs/setuptools.txt @@ -2369,6 +2369,61 @@ The ``upload`` command has a few options worth noting: The URL of the repository to upload to. Defaults to http://pypi.python.org/pypi (i.e., the main PyPI installation). +.. _upload_docs: + +``upload_docs`` - Upload package documentation to PyPI +====================================================== + +PyPI now supports uploading project documentation to the dedicated URL +http://packages.python.org/<project>/. + +The ``upload_docs`` command will create the necessary zip file out of a +documentation directory and will post to the repository. + +Note that to upload the documentation of a project, the corresponding version +must already be registered with PyPI, using the distutils ``register`` +command -- just like the ``upload`` command. + +Assuming there is an ``Example`` project with documentation in the +subdirectory ``docs``, e.g.:: + + Example/ + |-- example.py + |-- setup.cfg + |-- setup.py + |-- docs + | |-- build + | | `-- html + | | | |-- index.html + | | | `-- tips_tricks.html + | |-- conf.py + | |-- index.txt + | `-- tips_tricks.txt + +You can simply pass the documentation directory path to the ``upload_docs`` +command:: + + python setup.py upload_docs --upload-dir=docs/build/html + +As with any other ``setuptools`` based command, you can define useful +defaults in the ``setup.cfg`` of your Python project, e.g.:: + + [upload_docs] + upload-dir = docs/build/html + +The ``upload_docs`` command has the following options: + +``--upload-dir`` + The directory to be uploaded to the repository. + +``--show-response`` + Display the full response text from server; this is useful for debugging + PyPI problems. + +``--repository=URL, -r URL`` + The URL of the repository to upload to. Defaults to + http://pypi.python.org/pypi (i.e., the main PyPI installation). + ------------------------------------ Extending and Reusing ``setuptools`` |
