com.googler.python 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -2
- package/python3.4.2/lib/python3.4/site-packages/pip/__init__.py +1 -277
- package/python3.4.2/lib/python3.4/site-packages/pip/__main__.py +19 -7
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/__init__.py +246 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/basecommand.py +373 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/{baseparser.py → _internal/baseparser.py} +240 -224
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/build_env.py +92 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/cache.py +202 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/cmdoptions.py +609 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/__init__.py +79 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/check.py +42 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/completion.py +94 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/configuration.py +227 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/download.py +233 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/freeze.py +96 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/hash.py +57 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/{commands → _internal/commands}/help.py +36 -33
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/install.py +477 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/list.py +343 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/search.py +135 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/show.py +164 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/uninstall.py +71 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/commands/wheel.py +179 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/compat.py +235 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/configuration.py +378 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/download.py +922 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/exceptions.py +249 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/index.py +1117 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/locations.py +194 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/models/__init__.py +4 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/models/index.py +15 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/{_vendor/requests/packages/urllib3/contrib → _internal/operations}/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/operations/check.py +106 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/operations/freeze.py +252 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/operations/prepare.py +378 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/pep425tags.py +317 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/__init__.py +69 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/req_file.py +338 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/req_install.py +1115 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/req_set.py +164 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/req/req_uninstall.py +455 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/resolve.py +354 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/{status_codes.py → _internal/status_codes.py} +8 -6
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/appdirs.py +258 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/deprecation.py +77 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/encoding.py +33 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/filesystem.py +28 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/glibc.py +84 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/hashes.py +94 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/logging.py +132 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/misc.py +851 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/outdated.py +163 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/packaging.py +70 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/setuptools_build.py +8 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/temp_dir.py +82 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/typing.py +29 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/utils/ui.py +421 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/__init__.py +471 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/bazaar.py +113 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/git.py +311 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/mercurial.py +105 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/vcs/subversion.py +271 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_internal/wheel.py +817 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/__init__.py +109 -8
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/appdirs.py +604 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/__init__.py +11 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/_cmd.py +60 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/adapter.py +134 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/cache.py +39 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +2 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +133 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +43 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/compat.py +29 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/controller.py +373 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/filewrapper.py +78 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/heuristics.py +138 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/serialize.py +194 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/cachecontrol/wrapper.py +27 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/certifi/__init__.py +3 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/certifi/__main__.py +2 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests → certifi}/cacert.pem +1765 -2358
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/certifi/core.py +37 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/__init__.py +39 -32
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/big5freq.py +386 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/big5prober.py +47 -42
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/chardistribution.py +233 -231
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/charsetgroupprober.py +106 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/charsetprober.py +145 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/cli/__init__.py +1 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/cli/chardetect.py +85 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/codingstatemachine.py +88 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/compat.py +34 -34
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/cp949prober.py +49 -44
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/enums.py +76 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/escprober.py +101 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/escsm.py +246 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/eucjpprober.py +92 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/euckrfreq.py +195 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/euckrprober.py +47 -42
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/euctwfreq.py +387 -428
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/euctwprober.py +46 -41
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/gb2312freq.py +283 -472
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/gb2312prober.py +46 -41
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/hebrewprober.py +292 -283
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/jisfreq.py +325 -569
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/jpcntx.py +233 -219
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langbulgarianmodel.py +228 -229
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langcyrillicmodel.py +333 -329
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langgreekmodel.py +225 -225
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langhebrewmodel.py +200 -201
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langhungarianmodel.py +225 -225
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/langthaimodel.py +199 -200
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/langturkishmodel.py +193 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/latin1prober.py +145 -139
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/mbcharsetprober.py +91 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/mbcsgroupprober.py +54 -54
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/mbcssm.py +572 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/sbcharsetprober.py +132 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/sbcsgroupprober.py +73 -69
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/sjisprober.py +92 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/universaldetector.py +286 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/chardet → chardet}/utf8prober.py +82 -76
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/chardet/version.py +9 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/__init__.py +7 -7
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/ansi.py +102 -50
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/ansitowin32.py +236 -190
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/initialise.py +82 -56
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/win32.py +156 -137
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/colorama/winterm.py +162 -120
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/__init__.py +23 -23
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/__init__.py +6 -6
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/misc.py +41 -41
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/shutil.py +761 -761
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/sysconfig.cfg +84 -84
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/sysconfig.py +788 -788
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/_backport/tarfile.py +2607 -2607
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/compat.py +1117 -1064
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/database.py +1318 -1301
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/index.py +516 -488
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/locators.py +1292 -1194
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/manifest.py +393 -364
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/markers.py +131 -190
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/metadata.py +1068 -1026
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/resources.py +355 -317
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/scripts.py +415 -323
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/t32.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/t64.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/util.py +1755 -1575
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/version.py +736 -721
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/w32.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/w64.exe +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distlib/wheel.py +984 -958
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/distro.py +1104 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/__init__.py +35 -23
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{ihatexml.py → _ihatexml.py} +288 -285
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{inputstream.py → _inputstream.py} +923 -881
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{tokenizer.py → _tokenizer.py} +1721 -1731
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{trie → _trie}/__init__.py +14 -12
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{trie → _trie}/_base.py +37 -37
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{trie → _trie}/datrie.py +44 -44
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{trie → _trie}/py.py +67 -67
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/{utils.py → _utils.py} +124 -82
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/constants.py +2947 -3104
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/alphabeticalattributes.py +29 -20
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/{_base.py → base.py} +12 -12
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/inject_meta_charset.py +73 -65
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/lint.py +93 -93
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/optionaltags.py +207 -205
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/sanitizer.py +896 -12
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/filters/whitespace.py +38 -38
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/html5parser.py +2791 -2713
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer.py +409 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/__init__.py +30 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/genshi.py +54 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treeadapters/sax.py +50 -44
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/__init__.py +88 -76
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/{_base.py → base.py} +417 -377
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/dom.py +236 -227
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/etree.py +340 -337
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treebuilders/etree_lxml.py +366 -369
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/__init__.py +154 -57
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/{_base.py → base.py} +252 -200
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/dom.py +43 -46
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/etree.py +130 -138
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/{lxmletree.py → etree_lxml.py} +213 -208
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/{genshistream.py → genshi.py} +69 -69
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/__init__.py +2 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/codec.py +118 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/compat.py +12 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/core.py +387 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/idnadata.py +1585 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/intranges.py +53 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/package_data.py +2 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/idna/uts46data.py +7634 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/ipaddress.py +2419 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/__init__.py +347 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/linklockfile.py +73 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/mkdirlockfile.py +84 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/pidlockfile.py +190 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/sqlitelockfile.py +156 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/lockfile/symlinklockfile.py +70 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/msgpack/__init__.py +66 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/msgpack/_version.py +1 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/msgpack/exceptions.py +41 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/msgpack/fallback.py +971 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/__about__.py +21 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/__init__.py +14 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/_compat.py +30 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/_structures.py +70 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/markers.py +301 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/requirements.py +130 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/specifiers.py +774 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/utils.py +63 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/packaging/version.py +441 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{pkg_resources.py → pkg_resources/__init__.py} +3125 -2762
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pkg_resources/py31compat.py +22 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/__init__.py +127 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/bar.py +88 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/counter.py +48 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/helpers.py +91 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/progress/spinner.py +44 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pyparsing.py +5720 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pytoml/__init__.py +3 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pytoml/core.py +13 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pytoml/parser.py +374 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/pytoml/writer.py +127 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/__init__.py +123 -77
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/__version__.py +14 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/_internal_utils.py +42 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/adapters.py +525 -388
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/api.py +152 -120
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/auth.py +293 -193
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/certs.py +18 -24
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/compat.py +73 -115
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/cookies.py +542 -454
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/exceptions.py +122 -75
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/help.py +120 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/hooks.py +34 -45
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/models.py +948 -803
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages.py +16 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/sessions.py +737 -637
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/status_codes.py +91 -88
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/structures.py +105 -127
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/utils.py +904 -673
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/retrying.py +267 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/six.py +891 -646
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/__init__.py +97 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/_collections.py +319 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/connection.py +373 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/connectionpool.py +905 -710
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/_securetransport/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/_securetransport/bindings.py +593 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/_securetransport/low_level.py +343 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/appengine.py +296 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/contrib/ntlmpool.py +112 -120
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py +455 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/securetransport.py +810 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/contrib/socks.py +188 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/exceptions.py +246 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/fields.py +178 -177
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/filepost.py +94 -100
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/packages/__init__.py +5 -4
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/packages/backports/__init__.py +0 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/packages/backports/makefile.py +53 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/packages/ordered_dict.py +259 -260
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/packages/six.py +868 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/packages/ssl_match_hostname/__init__.py +19 -13
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/packages/ssl_match_hostname/_implementation.py +157 -105
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/poolmanager.py +440 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/request.py +148 -141
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/response.py +626 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/__init__.py +54 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/connection.py +130 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/request.py +118 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/response.py +81 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/retry.py +401 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/selectors.py +581 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/ssl_.py +341 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/util/timeout.py +242 -234
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/{requests/packages/urllib3 → urllib3}/util/url.py +230 -162
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/urllib3/util/wait.py +40 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/__init__.py +342 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/labels.py +231 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/mklabels.py +59 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/tests.py +153 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/webencodings/x_user_defined.py +325 -0
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/_markerlib/__init__.py +0 -16
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/_markerlib/markers.py +0 -119
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/sanitizer.py +0 -271
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer/__init__.py +0 -16
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/serializer/htmlserializer.py +0 -320
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/pulldom.py +0 -63
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/re-vendor.py +0 -34
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/__init__.py +0 -3
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/big5freq.py +0 -925
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/chardetect.py +0 -46
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/charsetgroupprober.py +0 -106
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/charsetprober.py +0 -62
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/codingstatemachine.py +0 -61
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/constants.py +0 -39
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/escprober.py +0 -86
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/escsm.py +0 -242
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/eucjpprober.py +0 -90
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euckrfreq.py +0 -596
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcharsetprober.py +0 -86
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/mbcssm.py +0 -575
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sbcharsetprober.py +0 -120
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/sjisprober.py +0 -91
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/universaldetector.py +0 -170
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/__init__.py +0 -58
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/_collections.py +0 -205
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/connection.py +0 -204
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/contrib/pyopenssl.py +0 -422
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/exceptions.py +0 -126
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/packages/six.py +0 -385
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/poolmanager.py +0 -258
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/response.py +0 -308
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py +0 -27
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/connection.py +0 -45
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/request.py +0 -68
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/response.py +0 -13
- package/python3.4.2/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py +0 -133
- package/python3.4.2/lib/python3.4/site-packages/pip/backwardcompat/__init__.py +0 -138
- package/python3.4.2/lib/python3.4/site-packages/pip/basecommand.py +0 -201
- package/python3.4.2/lib/python3.4/site-packages/pip/cmdoptions.py +0 -371
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/__init__.py +0 -88
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/bundle.py +0 -42
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/completion.py +0 -59
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/freeze.py +0 -114
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/install.py +0 -314
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/list.py +0 -162
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/search.py +0 -132
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/show.py +0 -80
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/uninstall.py +0 -59
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/unzip.py +0 -7
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/wheel.py +0 -195
- package/python3.4.2/lib/python3.4/site-packages/pip/commands/zip.py +0 -351
- package/python3.4.2/lib/python3.4/site-packages/pip/download.py +0 -644
- package/python3.4.2/lib/python3.4/site-packages/pip/exceptions.py +0 -46
- package/python3.4.2/lib/python3.4/site-packages/pip/index.py +0 -990
- package/python3.4.2/lib/python3.4/site-packages/pip/locations.py +0 -171
- package/python3.4.2/lib/python3.4/site-packages/pip/log.py +0 -276
- package/python3.4.2/lib/python3.4/site-packages/pip/pep425tags.py +0 -102
- package/python3.4.2/lib/python3.4/site-packages/pip/req.py +0 -1931
- package/python3.4.2/lib/python3.4/site-packages/pip/runner.py +0 -18
- package/python3.4.2/lib/python3.4/site-packages/pip/util.py +0 -720
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/__init__.py +0 -251
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/bazaar.py +0 -131
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/git.py +0 -194
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/mercurial.py +0 -151
- package/python3.4.2/lib/python3.4/site-packages/pip/vcs/subversion.py +0 -273
- package/python3.4.2/lib/python3.4/site-packages/pip/wheel.py +0 -560
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
import tempfile
|
|
3
|
-
import re
|
|
4
|
-
import sys
|
|
5
|
-
from pip.util import call_subprocess
|
|
6
|
-
from pip.util import display_path, rmtree
|
|
7
|
-
from pip.log import logger
|
|
8
|
-
from pip.vcs import vcs, VersionControl
|
|
9
|
-
from pip.download import path_to_url
|
|
10
|
-
from pip.backwardcompat import ConfigParser
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class Mercurial(VersionControl):
|
|
14
|
-
name = 'hg'
|
|
15
|
-
dirname = '.hg'
|
|
16
|
-
repo_name = 'clone'
|
|
17
|
-
schemes = ('hg', 'hg+http', 'hg+https', 'hg+ssh', 'hg+static-http')
|
|
18
|
-
bundle_file = 'hg-clone.txt'
|
|
19
|
-
guide = ('# This was a Mercurial repo; to make it a repo again run:\n'
|
|
20
|
-
'hg init\nhg pull %(url)s\nhg update -r %(rev)s\n')
|
|
21
|
-
|
|
22
|
-
def parse_vcs_bundle_file(self, content):
|
|
23
|
-
url = rev = None
|
|
24
|
-
for line in content.splitlines():
|
|
25
|
-
if not line.strip() or line.strip().startswith('#'):
|
|
26
|
-
continue
|
|
27
|
-
url_match = re.search(r'hg\s*pull\s*(.*)\s*', line)
|
|
28
|
-
if url_match:
|
|
29
|
-
url = url_match.group(1).strip()
|
|
30
|
-
rev_match = re.search(r'^hg\s*update\s*-r\s*(.*)\s*', line)
|
|
31
|
-
if rev_match:
|
|
32
|
-
rev = rev_match.group(1).strip()
|
|
33
|
-
if url and rev:
|
|
34
|
-
return url, rev
|
|
35
|
-
return None, None
|
|
36
|
-
|
|
37
|
-
def export(self, location):
|
|
38
|
-
"""Export the Hg repository at the url to the destination location"""
|
|
39
|
-
temp_dir = tempfile.mkdtemp('-export', 'pip-')
|
|
40
|
-
self.unpack(temp_dir)
|
|
41
|
-
try:
|
|
42
|
-
call_subprocess(
|
|
43
|
-
[self.cmd, 'archive', location],
|
|
44
|
-
filter_stdout=self._filter, show_stdout=False, cwd=temp_dir)
|
|
45
|
-
finally:
|
|
46
|
-
rmtree(temp_dir)
|
|
47
|
-
|
|
48
|
-
def switch(self, dest, url, rev_options):
|
|
49
|
-
repo_config = os.path.join(dest, self.dirname, 'hgrc')
|
|
50
|
-
config = ConfigParser.SafeConfigParser()
|
|
51
|
-
try:
|
|
52
|
-
config.read(repo_config)
|
|
53
|
-
config.set('paths', 'default', url)
|
|
54
|
-
config_file = open(repo_config, 'w')
|
|
55
|
-
config.write(config_file)
|
|
56
|
-
config_file.close()
|
|
57
|
-
except (OSError, ConfigParser.NoSectionError):
|
|
58
|
-
e = sys.exc_info()[1]
|
|
59
|
-
logger.warn(
|
|
60
|
-
'Could not switch Mercurial repository to %s: %s'
|
|
61
|
-
% (url, e))
|
|
62
|
-
else:
|
|
63
|
-
call_subprocess([self.cmd, 'update', '-q'] + rev_options, cwd=dest)
|
|
64
|
-
|
|
65
|
-
def update(self, dest, rev_options):
|
|
66
|
-
call_subprocess([self.cmd, 'pull', '-q'], cwd=dest)
|
|
67
|
-
call_subprocess(
|
|
68
|
-
[self.cmd, 'update', '-q'] + rev_options, cwd=dest)
|
|
69
|
-
|
|
70
|
-
def obtain(self, dest):
|
|
71
|
-
url, rev = self.get_url_rev()
|
|
72
|
-
if rev:
|
|
73
|
-
rev_options = [rev]
|
|
74
|
-
rev_display = ' (to revision %s)' % rev
|
|
75
|
-
else:
|
|
76
|
-
rev_options = []
|
|
77
|
-
rev_display = ''
|
|
78
|
-
if self.check_destination(dest, url, rev_options, rev_display):
|
|
79
|
-
logger.notify('Cloning hg %s%s to %s'
|
|
80
|
-
% (url, rev_display, display_path(dest)))
|
|
81
|
-
call_subprocess([self.cmd, 'clone', '--noupdate', '-q', url, dest])
|
|
82
|
-
call_subprocess([self.cmd, 'update', '-q'] + rev_options, cwd=dest)
|
|
83
|
-
|
|
84
|
-
def get_url(self, location):
|
|
85
|
-
url = call_subprocess(
|
|
86
|
-
[self.cmd, 'showconfig', 'paths.default'],
|
|
87
|
-
show_stdout=False, cwd=location).strip()
|
|
88
|
-
if self._is_local_repository(url):
|
|
89
|
-
url = path_to_url(url)
|
|
90
|
-
return url.strip()
|
|
91
|
-
|
|
92
|
-
def get_tag_revs(self, location):
|
|
93
|
-
tags = call_subprocess(
|
|
94
|
-
[self.cmd, 'tags'], show_stdout=False, cwd=location)
|
|
95
|
-
tag_revs = []
|
|
96
|
-
for line in tags.splitlines():
|
|
97
|
-
tags_match = re.search(r'([\w\d\.-]+)\s*([\d]+):.*$', line)
|
|
98
|
-
if tags_match:
|
|
99
|
-
tag = tags_match.group(1)
|
|
100
|
-
rev = tags_match.group(2)
|
|
101
|
-
if "tip" != tag:
|
|
102
|
-
tag_revs.append((rev.strip(), tag.strip()))
|
|
103
|
-
return dict(tag_revs)
|
|
104
|
-
|
|
105
|
-
def get_branch_revs(self, location):
|
|
106
|
-
branches = call_subprocess(
|
|
107
|
-
[self.cmd, 'branches'], show_stdout=False, cwd=location)
|
|
108
|
-
branch_revs = []
|
|
109
|
-
for line in branches.splitlines():
|
|
110
|
-
branches_match = re.search(r'([\w\d\.-]+)\s*([\d]+):.*$', line)
|
|
111
|
-
if branches_match:
|
|
112
|
-
branch = branches_match.group(1)
|
|
113
|
-
rev = branches_match.group(2)
|
|
114
|
-
if "default" != branch:
|
|
115
|
-
branch_revs.append((rev.strip(), branch.strip()))
|
|
116
|
-
return dict(branch_revs)
|
|
117
|
-
|
|
118
|
-
def get_revision(self, location):
|
|
119
|
-
current_revision = call_subprocess(
|
|
120
|
-
[self.cmd, 'parents', '--template={rev}'],
|
|
121
|
-
show_stdout=False, cwd=location).strip()
|
|
122
|
-
return current_revision
|
|
123
|
-
|
|
124
|
-
def get_revision_hash(self, location):
|
|
125
|
-
current_rev_hash = call_subprocess(
|
|
126
|
-
[self.cmd, 'parents', '--template={node}'],
|
|
127
|
-
show_stdout=False, cwd=location).strip()
|
|
128
|
-
return current_rev_hash
|
|
129
|
-
|
|
130
|
-
def get_src_requirement(self, dist, location, find_tags):
|
|
131
|
-
repo = self.get_url(location)
|
|
132
|
-
if not repo.lower().startswith('hg:'):
|
|
133
|
-
repo = 'hg+' + repo
|
|
134
|
-
egg_project_name = dist.egg_name().split('-', 1)[0]
|
|
135
|
-
if not repo:
|
|
136
|
-
return None
|
|
137
|
-
current_rev = self.get_revision(location)
|
|
138
|
-
current_rev_hash = self.get_revision_hash(location)
|
|
139
|
-
tag_revs = self.get_tag_revs(location)
|
|
140
|
-
branch_revs = self.get_branch_revs(location)
|
|
141
|
-
if current_rev in tag_revs:
|
|
142
|
-
# It's a tag
|
|
143
|
-
full_egg_name = '%s-%s' % (egg_project_name, tag_revs[current_rev])
|
|
144
|
-
elif current_rev in branch_revs:
|
|
145
|
-
# It's the tip of a branch
|
|
146
|
-
full_egg_name = '%s-%s' % (egg_project_name, branch_revs[current_rev])
|
|
147
|
-
else:
|
|
148
|
-
full_egg_name = '%s-dev' % egg_project_name
|
|
149
|
-
return '%s@%s#egg=%s' % (repo, current_rev_hash, full_egg_name)
|
|
150
|
-
|
|
151
|
-
vcs.register(Mercurial)
|
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
import re
|
|
3
|
-
from pip.backwardcompat import urlparse
|
|
4
|
-
from pip.index import Link
|
|
5
|
-
from pip.util import rmtree, display_path, call_subprocess
|
|
6
|
-
from pip.log import logger
|
|
7
|
-
from pip.vcs import vcs, VersionControl
|
|
8
|
-
|
|
9
|
-
_svn_xml_url_re = re.compile('url="([^"]+)"')
|
|
10
|
-
_svn_rev_re = re.compile('committed-rev="(\d+)"')
|
|
11
|
-
_svn_url_re = re.compile(r'URL: (.+)')
|
|
12
|
-
_svn_revision_re = re.compile(r'Revision: (.+)')
|
|
13
|
-
_svn_info_xml_rev_re = re.compile(r'\s*revision="(\d+)"')
|
|
14
|
-
_svn_info_xml_url_re = re.compile(r'<url>(.*)</url>')
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class Subversion(VersionControl):
|
|
18
|
-
name = 'svn'
|
|
19
|
-
dirname = '.svn'
|
|
20
|
-
repo_name = 'checkout'
|
|
21
|
-
schemes = ('svn', 'svn+ssh', 'svn+http', 'svn+https', 'svn+svn')
|
|
22
|
-
bundle_file = 'svn-checkout.txt'
|
|
23
|
-
guide = ('# This was an svn checkout; to make it a checkout again run:\n'
|
|
24
|
-
'svn checkout --force -r %(rev)s %(url)s .\n')
|
|
25
|
-
|
|
26
|
-
def get_info(self, location):
|
|
27
|
-
"""Returns (url, revision), where both are strings"""
|
|
28
|
-
assert not location.rstrip('/').endswith(self.dirname), 'Bad directory: %s' % location
|
|
29
|
-
output = call_subprocess(
|
|
30
|
-
[self.cmd, 'info', location], show_stdout=False, extra_environ={'LANG': 'C'})
|
|
31
|
-
match = _svn_url_re.search(output)
|
|
32
|
-
if not match:
|
|
33
|
-
logger.warn('Cannot determine URL of svn checkout %s' % display_path(location))
|
|
34
|
-
logger.info('Output that cannot be parsed: \n%s' % output)
|
|
35
|
-
return None, None
|
|
36
|
-
url = match.group(1).strip()
|
|
37
|
-
match = _svn_revision_re.search(output)
|
|
38
|
-
if not match:
|
|
39
|
-
logger.warn('Cannot determine revision of svn checkout %s' % display_path(location))
|
|
40
|
-
logger.info('Output that cannot be parsed: \n%s' % output)
|
|
41
|
-
return url, None
|
|
42
|
-
return url, match.group(1)
|
|
43
|
-
|
|
44
|
-
def parse_vcs_bundle_file(self, content):
|
|
45
|
-
for line in content.splitlines():
|
|
46
|
-
if not line.strip() or line.strip().startswith('#'):
|
|
47
|
-
continue
|
|
48
|
-
match = re.search(r'^-r\s*([^ ])?', line)
|
|
49
|
-
if not match:
|
|
50
|
-
return None, None
|
|
51
|
-
rev = match.group(1)
|
|
52
|
-
rest = line[match.end():].strip().split(None, 1)[0]
|
|
53
|
-
return rest, rev
|
|
54
|
-
return None, None
|
|
55
|
-
|
|
56
|
-
def export(self, location):
|
|
57
|
-
"""Export the svn repository at the url to the destination location"""
|
|
58
|
-
url, rev = self.get_url_rev()
|
|
59
|
-
rev_options = get_rev_options(url, rev)
|
|
60
|
-
logger.notify('Exporting svn repository %s to %s' % (url, location))
|
|
61
|
-
logger.indent += 2
|
|
62
|
-
try:
|
|
63
|
-
if os.path.exists(location):
|
|
64
|
-
# Subversion doesn't like to check out over an existing directory
|
|
65
|
-
# --force fixes this, but was only added in svn 1.5
|
|
66
|
-
rmtree(location)
|
|
67
|
-
call_subprocess(
|
|
68
|
-
[self.cmd, 'export'] + rev_options + [url, location],
|
|
69
|
-
filter_stdout=self._filter, show_stdout=False)
|
|
70
|
-
finally:
|
|
71
|
-
logger.indent -= 2
|
|
72
|
-
|
|
73
|
-
def switch(self, dest, url, rev_options):
|
|
74
|
-
call_subprocess(
|
|
75
|
-
[self.cmd, 'switch'] + rev_options + [url, dest])
|
|
76
|
-
|
|
77
|
-
def update(self, dest, rev_options):
|
|
78
|
-
call_subprocess(
|
|
79
|
-
[self.cmd, 'update'] + rev_options + [dest])
|
|
80
|
-
|
|
81
|
-
def obtain(self, dest):
|
|
82
|
-
url, rev = self.get_url_rev()
|
|
83
|
-
rev_options = get_rev_options(url, rev)
|
|
84
|
-
if rev:
|
|
85
|
-
rev_display = ' (to revision %s)' % rev
|
|
86
|
-
else:
|
|
87
|
-
rev_display = ''
|
|
88
|
-
if self.check_destination(dest, url, rev_options, rev_display):
|
|
89
|
-
logger.notify('Checking out %s%s to %s'
|
|
90
|
-
% (url, rev_display, display_path(dest)))
|
|
91
|
-
call_subprocess(
|
|
92
|
-
[self.cmd, 'checkout', '-q'] + rev_options + [url, dest])
|
|
93
|
-
|
|
94
|
-
def get_location(self, dist, dependency_links):
|
|
95
|
-
for url in dependency_links:
|
|
96
|
-
egg_fragment = Link(url).egg_fragment
|
|
97
|
-
if not egg_fragment:
|
|
98
|
-
continue
|
|
99
|
-
if '-' in egg_fragment:
|
|
100
|
-
## FIXME: will this work when a package has - in the name?
|
|
101
|
-
key = '-'.join(egg_fragment.split('-')[:-1]).lower()
|
|
102
|
-
else:
|
|
103
|
-
key = egg_fragment
|
|
104
|
-
if key == dist.key:
|
|
105
|
-
return url.split('#', 1)[0]
|
|
106
|
-
return None
|
|
107
|
-
|
|
108
|
-
def get_revision(self, location):
|
|
109
|
-
"""
|
|
110
|
-
Return the maximum revision for all files under a given location
|
|
111
|
-
"""
|
|
112
|
-
# Note: taken from setuptools.command.egg_info
|
|
113
|
-
revision = 0
|
|
114
|
-
|
|
115
|
-
for base, dirs, files in os.walk(location):
|
|
116
|
-
if self.dirname not in dirs:
|
|
117
|
-
dirs[:] = []
|
|
118
|
-
continue # no sense walking uncontrolled subdirs
|
|
119
|
-
dirs.remove(self.dirname)
|
|
120
|
-
entries_fn = os.path.join(base, self.dirname, 'entries')
|
|
121
|
-
if not os.path.exists(entries_fn):
|
|
122
|
-
## FIXME: should we warn?
|
|
123
|
-
continue
|
|
124
|
-
|
|
125
|
-
dirurl, localrev = self._get_svn_url_rev(base)
|
|
126
|
-
|
|
127
|
-
if base == location:
|
|
128
|
-
base_url = dirurl + '/' # save the root url
|
|
129
|
-
elif not dirurl or not dirurl.startswith(base_url):
|
|
130
|
-
dirs[:] = []
|
|
131
|
-
continue # not part of the same svn tree, skip it
|
|
132
|
-
revision = max(revision, localrev)
|
|
133
|
-
return revision
|
|
134
|
-
|
|
135
|
-
def get_url_rev(self):
|
|
136
|
-
# hotfix the URL scheme after removing svn+ from svn+ssh:// readd it
|
|
137
|
-
url, rev = super(Subversion, self).get_url_rev()
|
|
138
|
-
if url.startswith('ssh://'):
|
|
139
|
-
url = 'svn+' + url
|
|
140
|
-
return url, rev
|
|
141
|
-
|
|
142
|
-
def get_url(self, location):
|
|
143
|
-
# In cases where the source is in a subdirectory, not alongside setup.py
|
|
144
|
-
# we have to look up in the location until we find a real setup.py
|
|
145
|
-
orig_location = location
|
|
146
|
-
while not os.path.exists(os.path.join(location, 'setup.py')):
|
|
147
|
-
last_location = location
|
|
148
|
-
location = os.path.dirname(location)
|
|
149
|
-
if location == last_location:
|
|
150
|
-
# We've traversed up to the root of the filesystem without finding setup.py
|
|
151
|
-
logger.warn("Could not find setup.py for directory %s (tried all parent directories)"
|
|
152
|
-
% orig_location)
|
|
153
|
-
return None
|
|
154
|
-
|
|
155
|
-
return self._get_svn_url_rev(location)[0]
|
|
156
|
-
|
|
157
|
-
def _get_svn_url_rev(self, location):
|
|
158
|
-
from pip.exceptions import InstallationError
|
|
159
|
-
|
|
160
|
-
f = open(os.path.join(location, self.dirname, 'entries'))
|
|
161
|
-
data = f.read()
|
|
162
|
-
f.close()
|
|
163
|
-
if data.startswith('8') or data.startswith('9') or data.startswith('10'):
|
|
164
|
-
data = list(map(str.splitlines, data.split('\n\x0c\n')))
|
|
165
|
-
del data[0][0] # get rid of the '8'
|
|
166
|
-
url = data[0][3]
|
|
167
|
-
revs = [int(d[9]) for d in data if len(d) > 9 and d[9]] + [0]
|
|
168
|
-
elif data.startswith('<?xml'):
|
|
169
|
-
match = _svn_xml_url_re.search(data)
|
|
170
|
-
if not match:
|
|
171
|
-
raise ValueError('Badly formatted data: %r' % data)
|
|
172
|
-
url = match.group(1) # get repository URL
|
|
173
|
-
revs = [int(m.group(1)) for m in _svn_rev_re.finditer(data)] + [0]
|
|
174
|
-
else:
|
|
175
|
-
try:
|
|
176
|
-
# subversion >= 1.7
|
|
177
|
-
xml = call_subprocess([self.cmd, 'info', '--xml', location], show_stdout=False)
|
|
178
|
-
url = _svn_info_xml_url_re.search(xml).group(1)
|
|
179
|
-
revs = [int(m.group(1)) for m in _svn_info_xml_rev_re.finditer(xml)]
|
|
180
|
-
except InstallationError:
|
|
181
|
-
url, revs = None, []
|
|
182
|
-
|
|
183
|
-
if revs:
|
|
184
|
-
rev = max(revs)
|
|
185
|
-
else:
|
|
186
|
-
rev = 0
|
|
187
|
-
|
|
188
|
-
return url, rev
|
|
189
|
-
|
|
190
|
-
def get_tag_revs(self, svn_tag_url):
|
|
191
|
-
stdout = call_subprocess(
|
|
192
|
-
[self.cmd, 'ls', '-v', svn_tag_url], show_stdout=False)
|
|
193
|
-
results = []
|
|
194
|
-
for line in stdout.splitlines():
|
|
195
|
-
parts = line.split()
|
|
196
|
-
rev = int(parts[0])
|
|
197
|
-
tag = parts[-1].strip('/')
|
|
198
|
-
results.append((tag, rev))
|
|
199
|
-
return results
|
|
200
|
-
|
|
201
|
-
def find_tag_match(self, rev, tag_revs):
|
|
202
|
-
best_match_rev = None
|
|
203
|
-
best_tag = None
|
|
204
|
-
for tag, tag_rev in tag_revs:
|
|
205
|
-
if (tag_rev > rev and
|
|
206
|
-
(best_match_rev is None or best_match_rev > tag_rev)):
|
|
207
|
-
# FIXME: Is best_match > tag_rev really possible?
|
|
208
|
-
# or is it a sign something is wacky?
|
|
209
|
-
best_match_rev = tag_rev
|
|
210
|
-
best_tag = tag
|
|
211
|
-
return best_tag
|
|
212
|
-
|
|
213
|
-
def get_src_requirement(self, dist, location, find_tags=False):
|
|
214
|
-
repo = self.get_url(location)
|
|
215
|
-
if repo is None:
|
|
216
|
-
return None
|
|
217
|
-
parts = repo.split('/')
|
|
218
|
-
## FIXME: why not project name?
|
|
219
|
-
egg_project_name = dist.egg_name().split('-', 1)[0]
|
|
220
|
-
rev = self.get_revision(location)
|
|
221
|
-
if parts[-2] in ('tags', 'tag'):
|
|
222
|
-
# It's a tag, perfect!
|
|
223
|
-
full_egg_name = '%s-%s' % (egg_project_name, parts[-1])
|
|
224
|
-
elif parts[-2] in ('branches', 'branch'):
|
|
225
|
-
# It's a branch :(
|
|
226
|
-
full_egg_name = '%s-%s-r%s' % (dist.egg_name(), parts[-1], rev)
|
|
227
|
-
elif parts[-1] == 'trunk':
|
|
228
|
-
# Trunk :-/
|
|
229
|
-
full_egg_name = '%s-dev_r%s' % (dist.egg_name(), rev)
|
|
230
|
-
if find_tags:
|
|
231
|
-
tag_url = '/'.join(parts[:-1]) + '/tags'
|
|
232
|
-
tag_revs = self.get_tag_revs(tag_url)
|
|
233
|
-
match = self.find_tag_match(rev, tag_revs)
|
|
234
|
-
if match:
|
|
235
|
-
logger.notify('trunk checkout %s seems to be equivalent to tag %s' % match)
|
|
236
|
-
repo = '%s/%s' % (tag_url, match)
|
|
237
|
-
full_egg_name = '%s-%s' % (egg_project_name, match)
|
|
238
|
-
else:
|
|
239
|
-
# Don't know what it is
|
|
240
|
-
logger.warn('svn URL does not fit normal structure (tags/branches/trunk): %s' % repo)
|
|
241
|
-
full_egg_name = '%s-dev_r%s' % (egg_project_name, rev)
|
|
242
|
-
return 'svn+%s@%s#egg=%s' % (repo, rev, full_egg_name)
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
def get_rev_options(url, rev):
|
|
246
|
-
if rev:
|
|
247
|
-
rev_options = ['-r', rev]
|
|
248
|
-
else:
|
|
249
|
-
rev_options = []
|
|
250
|
-
|
|
251
|
-
r = urlparse.urlsplit(url)
|
|
252
|
-
if hasattr(r, 'username'):
|
|
253
|
-
# >= Python-2.5
|
|
254
|
-
username, password = r.username, r.password
|
|
255
|
-
else:
|
|
256
|
-
netloc = r[1]
|
|
257
|
-
if '@' in netloc:
|
|
258
|
-
auth = netloc.split('@')[0]
|
|
259
|
-
if ':' in auth:
|
|
260
|
-
username, password = auth.split(':', 1)
|
|
261
|
-
else:
|
|
262
|
-
username, password = auth, None
|
|
263
|
-
else:
|
|
264
|
-
username, password = None, None
|
|
265
|
-
|
|
266
|
-
if username:
|
|
267
|
-
rev_options += ['--username', username]
|
|
268
|
-
if password:
|
|
269
|
-
rev_options += ['--password', password]
|
|
270
|
-
return rev_options
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
vcs.register(Subversion)
|