Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install sphinx-pypi-upload

How to install Sphinx-PyPI-upload

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install sphinx-pypi-upload
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2.1 Available View build log
Windows (64-bit)
0.2.1 Available View build log
Mac OS X (10.5+)
0.2.1 Available View build log
Linux (32-bit)
0.2.1 Available View build log
Linux (64-bit)
0.2.1 Available View build log
 
Author
License
BSD
Lastest release
version 0.2.1 on Jan 5th, 2011

This package contains a setuptools command for uploading Sphinx documentation to the Python Package Index (PyPI) at the dedicated URL packages.python.org.

The upload_sphinx command

upload_sphinx will create the necessary zip file out of an arbitrary documentation directory and posts it to the correct URL.

It's also loosely based on Sphinx' own setuptools command build_sphinx which allows to easily build documentation from the command line.

The upload_sphinx command has the following options:

  • --repository (-r):

System Message: WARNING/2 (<string>, line 25)

Bullet list ends without a blank line; unexpected unindent.

url of repository [default: http://pypi.python.org/pypi]

  • --show-response:

System Message: WARNING/2 (<string>, line 28)

Bullet list ends without a blank line; unexpected unindent.

display full response text from server

  • --upload-dir:

System Message: WARNING/2 (<string>, line 31)

Bullet list ends without a blank line; unexpected unindent.

directory to upload

Example

Assuming there is an Example package with Sphinx documentation to be uploaded to http://packages.python.org, with the following structure:

System Message: WARNING/2 (<string>, line 41)

Literal block expected; none found.

Example/ |-- example.py |-- setup.cfg |-- setup.py |-- docs | |-- build | | `-- html | |-- conf.py | |-- index.txt | `-- tips_tricks.txt

System Message: WARNING/2 (<string>, line 41); backlink

Inline substitution_reference start-string without end-string.

System Message: WARNING/2 (<string>, line 41); backlink

Inline substitution_reference start-string without end-string.

System Message: WARNING/2 (<string>, line 41); backlink

Inline substitution_reference start-string without end-string.

System Message: WARNING/2 (<string>, line 41); backlink

Inline substitution_reference start-string without end-string.

System Message: WARNING/2 (<string>, line 41); backlink

Inline substitution_reference start-string without end-string.

System Message: WARNING/2 (<string>, line 41); backlink

Inline interpreted text or phrase reference start-string without end-string.

System Message: WARNING/2 (<string>, line 41); backlink

Inline substitution_reference start-string without end-string.

System Message: WARNING/2 (<string>, line 41); backlink

Inline substitution_reference start-string without end-string.

System Message: WARNING/2 (<string>, line 41); backlink

Inline interpreted text or phrase reference start-string without end-string.

As with any other setuptools based command, you can define useful defaults in the setup.cfg of your Python package. The following snippet shows how to set the option defaults of the build_sphinx and upload_sphinx setup.py commands:

[build_sphinx]

System Message: ERROR/3 (<string>, line 58)

Inconsistent literal block quoting.

source-dir = docs/ build-dir = docs/build all_files = 1

[upload_sphinx] upload-dir = docs/build/html

To build and upload the Sphinx documentation you are now able to run:

$ python setup.py build_sphinx
$ python setup.py upload_sphinx

Alternatively, you can of course just pass the appropriate options directly to the commands:

$ python setup.py build_sphinx --source-dir=docs/ --build-dir=docs/build --all-files
$ python setup.y upload_sphinx --upload-dir=docs/build/html

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:4

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.