From 34ea1cb80eface2a5b6cd20e513d11ce02ec1af5 Mon Sep 17 00:00:00 2001 From: Zvezdan Petkovic Date: Thu, 4 Oct 2018 15:39:11 -0700 Subject: [PATCH] Fix instructions for download of virtualenv. Replaced pypi.python.org with pypi.org in the download URL. Added `-L` option to `curl` to follow redirects from randomized hash URLS. Also, replaced pypi.python.org/pypi with pypi.org/project throughout the docs. This fix addresses the most important part of #1042. --- README.rst | 4 ++-- docs/changes.rst | 3 ++- docs/index.rst | 8 ++++---- docs/installation.rst | 4 ++-- docs/reference.rst | 4 ++-- docs/userguide.rst | 4 ++-- 6 files changed, 14 insertions(+), 13 deletions(-) diff --git a/README.rst b/README.rst index 0d5984dce..6be1ddc7d 100644 --- a/README.rst +++ b/README.rst @@ -4,7 +4,7 @@ virtualenv A tool for creating isolated 'virtual' python environments. .. image:: https://img.shields.io/pypi/v/virtualenv.svg - :target: https://pypi.python.org/pypi/virtualenv + :target: https://pypi.org/project/virtualenv .. image:: https://img.shields.io/travis/pypa/virtualenv/develop.svg :target: http://travis-ci.org/pypa/virtualenv @@ -13,7 +13,7 @@ A tool for creating isolated 'virtual' python environments. * `Documentation `_ * `Changelog `_ * `Issues `_ -* `PyPI `_ +* `PyPI `_ * `Github `_ * `User mailing list `_ * `Dev mailing list `_ diff --git a/docs/changes.rst b/docs/changes.rst index 02067aed1..5b5bb4e33 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -4,6 +4,7 @@ Release History 16.1.0 (unreleased) ------------------- +* Fixed documentation to use pypi.org and correct curl options; :issue:`1042` 16.0.0 (2018-05-16) ------------------- @@ -409,7 +410,7 @@ Release History * Fixed issue with readline on Windows. -.. _Distribute: https://pypi.python.org/pypi/distribute +.. _Distribute: https://pypi.org/project/distribute 1.9.1 (2013-03-08) ------------------ diff --git a/docs/index.rst b/docs/index.rst index 7c648efe2..91a358cec 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -4,7 +4,7 @@ Virtualenv `Mailing list `_ | `Issues `_ | `Github `_ | -`PyPI `_ | +`PyPI `_ | User IRC: #pypa Dev IRC: #pypa-dev @@ -64,14 +64,14 @@ Other Documentation and Links your workflow with many virtualenvs even easier. `His initial blog post on it`__. He also wrote `an example of using virtualenv to try IPython`__. - .. _virtualenvwrapper: https://pypi.python.org/pypi/virtualenvwrapper/ + .. _virtualenvwrapper: https://pypi.org/project/virtualenvwrapper/ .. __: https://doughellmann.com/blog/2008/05/01/virtualenvwrapper/ .. __: https://doughellmann.com/blog/2008/02/01/ipython-and-virtualenv/ * `Pew`_ is another wrapper for virtualenv that makes use of a different activation technique. - .. _Pew: https://pypi.python.org/pypi/pew/ + .. _Pew: https://pypi.org/project/pew/ * `Using virtualenv with mod_wsgi `_. @@ -113,7 +113,7 @@ There are several alternatives that create isolated environments: Setuptools automatically, saving a step and avoiding the need for network access. -* `zc.buildout `_ doesn't +* `zc.buildout `_ doesn't create an isolated Python environment in the same style, but achieves similar results through a declarative config file that sets up scripts with very particular packages. As a declarative system, diff --git a/docs/installation.rst b/docs/installation.rst index 1691d2c56..a99ff5a38 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -34,7 +34,7 @@ To install version X.X globally from source: :: - $ curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-X.X.tar.gz + $ curl -LO https://pypi.org/packages/source/v/virtualenv/virtualenv-X.X.tar.gz $ tar xvfz virtualenv-X.X.tar.gz $ cd virtualenv-X.X $ [sudo] python setup.py install @@ -44,7 +44,7 @@ To *use* locally from source: :: - $ curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-X.X.tar.gz + $ curl -LO https://pypi.org/packages/source/v/virtualenv/virtualenv-X.X.tar.gz $ tar xvfz virtualenv-X.X.tar.gz $ cd virtualenv-X.X $ python virtualenv.py myVE diff --git a/docs/reference.rst b/docs/reference.rst index 9249473c9..607b6edcd 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -111,8 +111,8 @@ Options virtualenv. Distribute has now been merged into Setuptools, and the latter is always installed. -.. _Distribute: https://pypi.python.org/pypi/distribute -.. _Setuptools: https://pypi.python.org/pypi/setuptools +.. _Distribute: https://pypi.org/project/distribute +.. _Setuptools: https://pypi.org/project/setuptools Configuration diff --git a/docs/userguide.rst b/docs/userguide.rst index f616e144d..dc594d3b7 100644 --- a/docs/userguide.rst +++ b/docs/userguide.rst @@ -27,8 +27,8 @@ a number of usual effects (modifiable by many :ref:`options`): The python in your new virtualenv is effectively isolated from the python that was used to create it. -.. _pip: https://pypi.python.org/pypi/pip -.. _setuptools: https://pypi.python.org/pypi/setuptools +.. _pip: https://pypi.org/project/pip +.. _setuptools: https://pypi.org/project/setuptools .. _activate: