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 | |
| parent | 5b869d5c19ffea9b149b214e3638de83cc4c5d98 (diff) | |
| download | python-setuptools-git-c2f72efd261bf89372dfa27b1c115012e74bd525.tar.gz | |
Deprecate Subversion download functionality. Ref #1502. Used UserWarning instead of DeprecationWarning so it's visible to users who might be relying on this functionality.
| -rw-r--r-- | changelog.d/1502.change.rst | 1 | ||||
| -rw-r--r-- | setuptools/package_index.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/changelog.d/1502.change.rst b/changelog.d/1502.change.rst new file mode 100644 index 00000000..8ddf5d43 --- /dev/null +++ b/changelog.d/1502.change.rst @@ -0,0 +1 @@ +Deprecated support for downloads from Subversion in package_index/easy_install. 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: |
