Sphinx-PyPI-upload


NameSphinx-PyPI-upload JSON
Version 0.2.1 PyPI version JSON
download
home_pagehttp://bitbucket.org/jezdez/sphinx-pypi-upload/
Summarysetuptools command for uploading Sphinx documentation to PyPI
upload_time2009-08-25 13:47:21
maintainer
docs_urlNone
authorJannis Leidel
requires_pythonNone
licenseBSD
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Sphinx-PyPI-upload
==================

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

.. _setuptools: http://pypi.python.org/pypi/setuptools
.. _Sphinx: http://sphinx.pocoo.org/
.. _`Python Package Index`: http://pypi.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)``:
  url of repository [default: http://pypi.python.org/pypi]

- ``--show-response``:
  display full response text from server

- ``--upload-dir``:
  directory to upload

.. _build_sphinx: http://bitbucket.org/birkenfeld/sphinx/src/tip/sphinx/setup_command.py

Example
--------

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

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

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]
  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.py upload_sphinx --upload-dir=docs/build/html
            

Raw data

            {
    "_id": null,
    "home_page": "http://bitbucket.org/jezdez/sphinx-pypi-upload/",
    "name": "Sphinx-PyPI-upload",
    "maintainer": "",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": "",
    "keywords": "",
    "author": "Jannis Leidel",
    "author_email": "jannis@leidel.info",
    "download_url": "https://files.pythonhosted.org/packages/3e/68/723a5656d0fa705c1eae4c546ded85882fb4b3241b079aeab66e92513416/Sphinx-PyPI-upload-0.2.1.tar.gz",
    "platform": "any",
    "description": "Sphinx-PyPI-upload\r\n==================\r\n\r\nThis package contains a `setuptools`_ command for uploading `Sphinx`_\r\ndocumentation to the `Python Package Index`_ (PyPI) at the dedicated URL\r\npackages.python.org.\r\n\r\n.. _setuptools: http://pypi.python.org/pypi/setuptools\r\n.. _Sphinx: http://sphinx.pocoo.org/\r\n.. _`Python Package Index`: http://pypi.python.org/\r\n\r\n\r\nThe ``upload_sphinx`` command\r\n------------------------------\r\n\r\n``upload_sphinx`` will create the necessary zip file out of an arbitrary \r\ndocumentation directory and posts it to the correct URL.\r\n\r\nIt's also loosely based on Sphinx' own setuptools command build_sphinx_\r\nwhich allows to easily build documentation from the command line.\r\n\r\nThe ``upload_sphinx`` command has the following options:\r\n\r\n- ``--repository (-r)``:\r\n  url of repository [default: http://pypi.python.org/pypi]\r\n\r\n- ``--show-response``:\r\n  display full response text from server\r\n\r\n- ``--upload-dir``:\r\n  directory to upload\r\n\r\n.. _build_sphinx: http://bitbucket.org/birkenfeld/sphinx/src/tip/sphinx/setup_command.py\r\n\r\nExample\r\n--------\r\n\r\nAssuming there is an ``Example`` package with Sphinx documentation to be\r\nuploaded to http://packages.python.org, with the following structure::\r\n\r\n  Example/\r\n  |-- example.py\r\n  |-- setup.cfg\r\n  |-- setup.py\r\n  |-- docs\r\n  |   |-- build\r\n  |   |   `-- html\r\n  |   |-- conf.py\r\n  |   |-- index.txt\r\n  |   `-- tips_tricks.txt\r\n\r\nAs with any other setuptools based command, you can define useful defaults in\r\nthe setup.cfg of your Python package. The following snippet shows how to set\r\nthe option defaults of the ``build_sphinx`` and ``upload_sphinx`` setup.py \r\ncommands::\r\n\r\n  [build_sphinx]\r\n  source-dir = docs/\r\n  build-dir  = docs/build\r\n  all_files  = 1\r\n\r\n  [upload_sphinx]\r\n  upload-dir = docs/build/html\r\n\r\nTo build and upload the Sphinx documentation you are now able to run::\r\n\r\n  $ python setup.py build_sphinx\r\n  $ python setup.py upload_sphinx\r\n\r\nAlternatively, you can of course just pass the appropriate options directly\r\nto the commands::\r\n\r\n  $ python setup.py build_sphinx --source-dir=docs/ --build-dir=docs/build --all-files\r\n  $ python setup.py upload_sphinx --upload-dir=docs/build/html",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "setuptools command for uploading Sphinx documentation to PyPI",
    "version": "0.2.1",
    "project_urls": {
        "Download": "http://bitbucket.org/jezdez/sphinx-pypi-upload/downloads/",
        "Homepage": "http://bitbucket.org/jezdez/sphinx-pypi-upload/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3e68723a5656d0fa705c1eae4c546ded85882fb4b3241b079aeab66e92513416",
                "md5": "b9f1df5c8443197e4d49abbba1cfddc4",
                "sha256": "5f919a47ce7a7e6028dba809de81ae1297ac192347cf6fc54efca919d4865159"
            },
            "downloads": -1,
            "filename": "Sphinx-PyPI-upload-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b9f1df5c8443197e4d49abbba1cfddc4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4555,
            "upload_time": "2009-08-25T13:47:21",
            "upload_time_iso_8601": "2009-08-25T13:47:21.369860Z",
            "url": "https://files.pythonhosted.org/packages/3e/68/723a5656d0fa705c1eae4c546ded85882fb4b3241b079aeab66e92513416/Sphinx-PyPI-upload-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2009-08-25 13:47:21",
    "github": false,
    "gitlab": false,
    "bitbucket": true,
    "codeberg": false,
    "bitbucket_user": "jezdez",
    "bitbucket_project": "sphinx-pypi-upload",
    "lcname": "sphinx-pypi-upload"
}
        
Elapsed time: 0.13671s