Skip to content

Commit

Permalink
Add a section about proxy support (#814)
Browse files Browse the repository at this point in the history
* Add a section about proxy support

* Fix linting error

* Provide a minimal example

* Use an example for the section

Co-authored-by: Brian Rutledge <brian@bhrutledge.com>

* Fix linting error

* Add one more example

Co-authored-by: Ian Stapleton Cordasco <graffatcolmingov@gmail.com>

* Fix linting error

* Make the section simpler

Co-authored-by: Brian Rutledge <brian@bhrutledge.com>

Co-authored-by: Brian Rutledge <brian@bhrutledge.com>
Co-authored-by: Ian Stapleton Cordasco <graffatcolmingov@gmail.com>
  • Loading branch information
3 people committed Sep 19, 2021
1 parent 3040bf9 commit cf5e0fd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/index.rst
Expand Up @@ -151,6 +151,23 @@ on a CI/build server).
* ``TWINE_NON_INTERACTIVE`` - Do not interactively prompt for username/password
if the required credentials are missing.

Proxy Support
^^^^^^^^^^^^^

Twine can be configured to use a proxy by setting environment variables.
For example, to use a proxy for just the ``twine`` command,
without ``export``-ing it for other tools:

.. code-block:: bash
HTTPS_PROXY=socks5://user:pass@host:port twine upload dist/*
For more information, see the Requests documentation on
`proxies <https://docs.python-requests.org/en/master/user/advanced/#proxies>`_ and
`SOCKS <https://docs.python-requests.org/en/master/user/advanced/#socks>`_ , and
`an in-depth article about proxy environment variables
<https://about.gitlab.com/blog/2021/01/27/we-need-to-talk-no-proxy/>`_.

Keyring Support
---------------

Expand Down

0 comments on commit cf5e0fd

Please sign in to comment.