Skip to content

Commit

Permalink
Merge pull request #292 from brainwane/docs
Browse files Browse the repository at this point in the history
Update README and docs index pages
  • Loading branch information
sigmavirus24 authored Jan 27, 2018
2 parents f74eae5 + 0a66f85 commit 5fdce8d
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 7 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ Adam Talsma <adam@talsma.ca>
Jens Diemer <github@jensdiemer.de> (http://jensdiemer.de/)
Andrew Watts <andrewwatts@gmail.com>
Anna Martelli Ravenscroft <annaraven@gmail.com>
Sumana Harihareswara <sh@changeset.nyc>
68 changes: 61 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Usage
$ python setup.py sdist bdist_wheel
2. Upload with twine [#]_:
2. Upload with twine:

.. code-block:: bash
Expand Down Expand Up @@ -88,12 +88,15 @@ Options
optional arguments:
-h, --help show this help message and exit
-r REPOSITORY, --repository REPOSITORY
The repository to upload the package to. Should be a
section in the config file (default: pypi). (Can also
be set via TWINE_REPOSITORY environment variable)
The repository to register the package to. Can be a
section in the config file or a full URL to the
repository (default: pypi). (Can also be set via
TWINE_REPOSITORY environment variable)
--repository-url REPOSITORY_URL
The repository URL to upload the package to. This
overrides --repository.(Can also be set via
The repository URL to upload the package to. This can
be specified with --repository because it will be used
if there is no configuration for the value passed to
--repository. (Can also be set via
TWINE_REPOSITORY_URL environment variable.)
-s, --sign Sign files to upload using gpg
--sign-with SIGN_WITH
Expand All @@ -120,6 +123,57 @@ Options
containing the private key and the certificate in PEM
format
Twine also includes a ``register`` command which is `not supported in
Warehouse (the new PyPI software running on pypi.org)
<https://github.com/pypa/warehouse/issues/1627>`_ and which is `no
longer necessary if you are uploading to pypi.org
<https://packaging.python.org/guides/migrating-to-pypi-org/#registering-package-names-metadata>`_. For
completeness, its usage:
.. code-block:: bash
$ twine register -h
usage: twine register [-h] [-r REPOSITORY] [--repository-url REPOSITORY_URL]
[-u USERNAME] [-p PASSWORD] [-c COMMENT]
[--config-file CONFIG_FILE] [--cert path]
[--client-cert path]
package
positional arguments:
package File from which we read the package metadata
optional arguments:
-h, --help show this help message and exit
-r REPOSITORY, --repository REPOSITORY
The repository to register the package to. Can be a
section in the config file or a full URL to the
repository (default: pypi). (Can also be set via
TWINE_REPOSITORY environment variable)
--repository-url REPOSITORY_URL
The repository URL to upload the package to. This can
be specified with --repository because it will be used
if there is no configuration for the value passed to
--repository. (Can also be set via
TWINE_REPOSITORY_URL environment variable.)
-u USERNAME, --username USERNAME
The username to authenticate to the repository as (can
also be set via TWINE_USERNAME environment variable)
-p PASSWORD, --password PASSWORD
The password to authenticate to the repository with
(can also be set via TWINE_PASSWORD environment
variable)
-c COMMENT, --comment COMMENT
The comment to include with the distribution file
--config-file CONFIG_FILE
The .pypirc config file to use
--cert path Path to alternate CA bundle (can also be set via
TWINE_CERT environment variable)
--client-cert path Path to SSL client certificate, a single file
containing the private key and the certificate in PEM
format
Environment Variables
`````````````````````
Expand Down Expand Up @@ -155,7 +209,7 @@ Contributing
- Either use ``tox`` to build against all supported Python versions (if you
have them installed) or use ``tox -e py{version}`` to test against a
specific version, e.g., ``tox -e py27`` or ``tox -e py34``.
- Always run ``tox -e pep8``
- Always run ``tox -e pep8``.
4. Ensure that your name is added to the end of the AUTHORS file using the
format ``Name <email@domain.com> (url)``, where the ``(url)`` portion is
Expand Down
25 changes: 25 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,28 @@
Welcome to twine's documentation!
=================================

Twine is `a utility`_ for interacting with PyPI.

Currently it only supports registering `projects`_ and uploading
`distributions`_.

The goal is to improve PyPI interaction by improving security and
testability. Ideally, ``pip`` and ``twine`` will merge into a single
tool.

Please see `the GitHub repository`_ for code and more documentation,
and the `Python Packaging User Guide`_ for user documentation. You can
also join ``#pypa`` or ``#pypa-dev`` `on Freenode`_, or the `pypa-dev
mailing list`_, to ask questions or get involved.


Contents:

.. toctree::
:maxdepth: 2

changelog



Indices and tables
Expand All @@ -20,3 +37,11 @@ Indices and tables
* :ref:`modindex`
* :ref:`search`

.. _`a utility`: https://pypi.python.org/pypi/twine
.. _`projects`: https://packaging.python.org/glossary/#term-project
.. _`distributions`: https://packaging.python.org/glossary/#term-distribution-package
.. _`Warehouse`: https://github.com/pypa/warehouse
.. _`the GitHub repository`: https://github.com/pypa/twine
.. _`Python Packaging User Guide`: https://packaging.python.org/tutorials/distributing-packages/
.. _`on Freenode`: https://webchat.freenode.net/?channels=%23pypa-dev,pypa
.. _`pypa-dev mailing list`: https://groups.google.com/forum/#!forum/pypa-dev

0 comments on commit 5fdce8d

Please sign in to comment.