summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2023-04-24 11:53:45 +0100
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2023-04-24 11:53:45 +0100
commit6a8a00cee6427f36501c66b875a339643175a251 (patch)
tree54d0843e01d0a2a2aa784a93092ba75409e989cd
parent53e282429043af3ed96c1684cf81b62e0471c711 (diff)
parent9a48d651828dd5104cc563502e62fb5bb0e0ba02 (diff)
downloadpython-setuptools-git-6a8a00cee6427f36501c66b875a339643175a251.tar.gz
Fix URLs in warnings and logs (#3902)
-rw-r--r--changelog.d/3902.misc.rst1
-rw-r--r--setuptools/command/easy_install.py2
-rw-r--r--setuptools/config/setupcfg.py2
-rw-r--r--setuptools/package_index.py3
4 files changed, 5 insertions, 3 deletions
diff --git a/changelog.d/3902.misc.rst b/changelog.d/3902.misc.rst
new file mode 100644
index 00000000..0b05d6a1
--- /dev/null
+++ b/changelog.d/3902.misc.rst
@@ -0,0 +1 @@
+Fixed wrong URLs used in warnings and logs.
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 29e424a8..8497bbdb 100644
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -1845,7 +1845,7 @@ def _update_zipimporter_cache(normalized_path, cache, updater=None):
# get/del patterns instead. For more detailed information see the
# following links:
# https://github.com/pypa/setuptools/issues/202#issuecomment-202913420
- # http://bit.ly/2h9itJX
+ # https://foss.heptapod.net/pypy/pypy/-/blob/144c4e65cb6accb8e592f3a7584ea38265d1873c/pypy/module/zipimport/interp_zipimport.py
old_entry = cache[p]
del cache[p]
new_entry = updater and updater(p, old_entry)
diff --git a/setuptools/config/setupcfg.py b/setuptools/config/setupcfg.py
index 050e5385..bb355590 100644
--- a/setuptools/config/setupcfg.py
+++ b/setuptools/config/setupcfg.py
@@ -786,4 +786,4 @@ class _AmbiguousMarker(SetuptoolsDeprecationWarning):
class _DeprecatedConfig(SetuptoolsDeprecationWarning):
- _SEE_DOCS = "https://setuptools.pypa.io/en/latest/userguide/declarative_config.html"
+ _SEE_DOCS = "userguide/declarative_config.html"
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index 06b78ac6..b992048c 100644
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -402,7 +402,8 @@ class PackageIndex(Environment):
return True
msg = (
"\nNote: Bypassing %s (disallowed host; see "
- "http://bit.ly/2hrImnY for details).\n"
+ "https://setuptools.pypa.io/en/latest/deprecated/"
+ "easy_install.html#restricting-downloads-with-allow-hosts for details).\n"
)
if fatal:
raise DistutilsError(msg % url)