diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2018-09-23 12:44:23 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2018-09-23 12:44:23 -0400 |
commit | c2f72efd261bf89372dfa27b1c115012e74bd525 (patch) | |
tree | 63e71712387b8adca36513abe29aadbd2fc3a633 /setuptools/package_index.py | |
parent | 5b869d5c19ffea9b149b214e3638de83cc4c5d98 (diff) | |
download | external_python_setuptools-c2f72efd261bf89372dfa27b1c115012e74bd525.tar.gz external_python_setuptools-c2f72efd261bf89372dfa27b1c115012e74bd525.tar.bz2 external_python_setuptools-c2f72efd261bf89372dfa27b1c115012e74bd525.zip |
Deprecate Subversion download functionality. Ref #1502. Used UserWarning instead of DeprecationWarning so it's visible to users who might be relying on this functionality.
Diffstat (limited to 'setuptools/package_index.py')
-rw-r--r-- | setuptools/package_index.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py index e650ac6f..1608b91a 100644 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -7,6 +7,7 @@ import socket import base64 import hashlib import itertools +import warnings from functools import wraps from setuptools.extern import six @@ -848,6 +849,7 @@ class PackageIndex(Environment): raise DistutilsError("Unexpected HTML page found at " + url) def _download_svn(self, url, filename): + warnings.warn("SVN download support is deprecated", UserWarning) url = url.split('#', 1)[0] # remove any fragment for svn's sake creds = '' if url.lower().startswith('svn:') and '@' in url: |