mirror of
https://github.com/pypiserver/pypiserver
synced 2024-11-09 16:45:51 +01:00
Updated Default Fallback URL to https
Resolves #179 Due to a pypi API change (reasoning [here](https://mail.python.org/pipermail/distutils-sig/2017-October/031712.html), thanks to @natefoo for the link), the redirect links that we were generating for distributions not present in the package index were failing with `403` errors. @ankostis, I have not had time to look into why the standalone tests are failing. Perhaps we should just ignore them in order to get a new version out once this is merged to master?
This commit is contained in:
parent
519c195253
commit
05f5920c25
6
.gitignore
vendored
6
.gitignore
vendored
@ -34,6 +34,12 @@ __pycache__/
|
||||
/parts/
|
||||
/.cache/
|
||||
/.settings/
|
||||
.mypy_cache/
|
||||
|
||||
# IDE stuff
|
||||
.idea/
|
||||
|
||||
# Venvs
|
||||
.venv/
|
||||
venv/
|
||||
|
||||
|
@ -117,7 +117,7 @@ For legacy python versions, use ``pypiserver-1.1.x`` series.
|
||||
|
||||
--fallback-url FALLBACK_URL
|
||||
for packages not found in the local index, this URL will be used to
|
||||
redirect to (default: http://pypi.python.org/simple)
|
||||
redirect to (default: https://pypi.python.org/simple)
|
||||
|
||||
--server METHOD
|
||||
use METHOD to run the server. Valid values include paste,
|
||||
@ -413,10 +413,10 @@ looks like::
|
||||
no releases found on pypi for PyXML, Pymacs, mercurial, setuptools
|
||||
|
||||
# update raven from 1.4.3 to 1.4.4
|
||||
pip -q install --no-deps --extra-index-url http://pypi.python.org/simple -d /home/ralf/packages/mirror raven==1.4.4
|
||||
pip -q install --no-deps --extra-index-url https://pypi.python.org/simple -d /home/ralf/packages/mirror raven==1.4.4
|
||||
|
||||
# update greenlet from 0.3.3 to 0.3.4
|
||||
pip -q install --no-deps --extra-index-url http://pypi.python.org/simple -d /home/ralf/packages/mirror greenlet==0.3.4
|
||||
pip -q install --no-deps --extra-index-url https://pypi.python.org/simple -d /home/ralf/packages/mirror greenlet==0.3.4
|
||||
|
||||
It first prints for each package a single character after checking the
|
||||
available versions on pypi. A dot(`.`) means the package is up-to-date, ``'u'``
|
||||
@ -811,7 +811,7 @@ See the ``LICENSE.txt`` file.
|
||||
|
||||
|
||||
.. _bottle: http://bottlepy.org
|
||||
.. _PyPI: http://pypi.python.org
|
||||
.. _PyPI: https://pypi.python.org
|
||||
.. _twine: https://pypi.python.org/pypi/twine
|
||||
.. _pypi-uploader: https://pypi.python.org/pypi/pypi-uploader
|
||||
.. _python-pam: https://pypi.python.org/pypi/python-pam/
|
||||
|
@ -76,7 +76,7 @@ def usage():
|
||||
|
||||
--fallback-url FALLBACK_URL
|
||||
for packages not found in the local index, this URL will be used to
|
||||
redirect to (default: http://pypi.python.org/simple)
|
||||
redirect to (default: https://pypi.python.org/simple)
|
||||
|
||||
--server METHOD
|
||||
use METHOD to run the server. Valid values include paste,
|
||||
|
@ -16,5 +16,5 @@ easy_install -i {{URL}}simple/ PACKAGE
|
||||
or via the <a href="{{SIMPLE}}">simple</a> index.</p>
|
||||
|
||||
<p>This instance is running version {{VERSION}} of the
|
||||
<a href="http://pypi.python.org/pypi/pypiserver">pypiserver</a> software.</p>
|
||||
<a href="https://pypi.python.org/pypi/pypiserver">pypiserver</a> software.</p>
|
||||
</body></html>
|
||||
|
@ -313,7 +313,7 @@ def test_root_no_relative_paths(testpriv):
|
||||
resp = testpriv.get("/priv/")
|
||||
hrefs = [x["href"] for x in resp.html("a")]
|
||||
assert hrefs == ['/priv/packages/', '/priv/simple/',
|
||||
'http://pypi.python.org/pypi/pypiserver']
|
||||
'https://pypi.python.org/pypi/pypiserver']
|
||||
|
||||
|
||||
def test_simple_index_list_no_duplicates(root, testapp):
|
||||
|
Loading…
Reference in New Issue
Block a user