rigid 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/rigid +4 -0
- data/rigid +16 -0
- data/vendor/PyYAML-3.12.dist-info/DESCRIPTION.rst +12 -0
- data/vendor/PyYAML-3.12.dist-info/INSTALLER +1 -0
- data/vendor/PyYAML-3.12.dist-info/METADATA +35 -0
- data/vendor/PyYAML-3.12.dist-info/RECORD +42 -0
- data/vendor/PyYAML-3.12.dist-info/WHEEL +5 -0
- data/vendor/PyYAML-3.12.dist-info/metadata.json +1 -0
- data/vendor/PyYAML-3.12.dist-info/top_level.txt +2 -0
- data/vendor/_yaml.so +0 -0
- data/vendor/click/__init__.py +98 -0
- data/vendor/click/__init__.pyc +0 -0
- data/vendor/click/_bashcomplete.py +83 -0
- data/vendor/click/_bashcomplete.pyc +0 -0
- data/vendor/click/_compat.py +642 -0
- data/vendor/click/_compat.pyc +0 -0
- data/vendor/click/_termui_impl.py +547 -0
- data/vendor/click/_termui_impl.pyc +0 -0
- data/vendor/click/_textwrap.py +38 -0
- data/vendor/click/_textwrap.pyc +0 -0
- data/vendor/click/_unicodefun.py +119 -0
- data/vendor/click/_unicodefun.pyc +0 -0
- data/vendor/click/_winconsole.py +273 -0
- data/vendor/click/_winconsole.pyc +0 -0
- data/vendor/click/core.py +1738 -0
- data/vendor/click/core.pyc +0 -0
- data/vendor/click/decorators.py +304 -0
- data/vendor/click/decorators.pyc +0 -0
- data/vendor/click/exceptions.py +201 -0
- data/vendor/click/exceptions.pyc +0 -0
- data/vendor/click/formatting.py +256 -0
- data/vendor/click/formatting.pyc +0 -0
- data/vendor/click/globals.py +48 -0
- data/vendor/click/globals.pyc +0 -0
- data/vendor/click/parser.py +426 -0
- data/vendor/click/parser.pyc +0 -0
- data/vendor/click/termui.py +539 -0
- data/vendor/click/termui.pyc +0 -0
- data/vendor/click/testing.py +322 -0
- data/vendor/click/testing.pyc +0 -0
- data/vendor/click/types.py +550 -0
- data/vendor/click/types.pyc +0 -0
- data/vendor/click/utils.py +415 -0
- data/vendor/click/utils.pyc +0 -0
- data/vendor/click-6.6.dist-info/DESCRIPTION.rst +3 -0
- data/vendor/click-6.6.dist-info/INSTALLER +1 -0
- data/vendor/click-6.6.dist-info/METADATA +16 -0
- data/vendor/click-6.6.dist-info/RECORD +41 -0
- data/vendor/click-6.6.dist-info/WHEEL +6 -0
- data/vendor/click-6.6.dist-info/metadata.json +1 -0
- data/vendor/click-6.6.dist-info/top_level.txt +1 -0
- data/vendor/easy_install.py +5 -0
- data/vendor/easy_install.pyc +0 -0
- data/vendor/pip-9.0.1.dist-info/DESCRIPTION.rst +39 -0
- data/vendor/pip-9.0.1.dist-info/INSTALLER +1 -0
- data/vendor/pip-9.0.1.dist-info/METADATA +69 -0
- data/vendor/pip-9.0.1.dist-info/RECORD +501 -0
- data/vendor/pip-9.0.1.dist-info/WHEEL +6 -0
- data/vendor/pip-9.0.1.dist-info/entry_points.txt +5 -0
- data/vendor/pip-9.0.1.dist-info/metadata.json +1 -0
- data/vendor/pip-9.0.1.dist-info/top_level.txt +1 -0
- data/vendor/pkg_resources/__init__.py +3051 -0
- data/vendor/pkg_resources/__init__.pyc +0 -0
- data/vendor/pkg_resources/_vendor/__init__.py +0 -0
- data/vendor/pkg_resources/_vendor/__init__.pyc +0 -0
- data/vendor/pkg_resources/_vendor/appdirs.py +552 -0
- data/vendor/pkg_resources/_vendor/appdirs.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/__about__.py +21 -0
- data/vendor/pkg_resources/_vendor/packaging/__about__.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/__init__.py +14 -0
- data/vendor/pkg_resources/_vendor/packaging/__init__.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/_compat.py +30 -0
- data/vendor/pkg_resources/_vendor/packaging/_compat.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/_structures.py +68 -0
- data/vendor/pkg_resources/_vendor/packaging/_structures.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/markers.py +287 -0
- data/vendor/pkg_resources/_vendor/packaging/markers.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/requirements.py +127 -0
- data/vendor/pkg_resources/_vendor/packaging/requirements.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/specifiers.py +774 -0
- data/vendor/pkg_resources/_vendor/packaging/specifiers.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/utils.py +14 -0
- data/vendor/pkg_resources/_vendor/packaging/utils.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/version.py +393 -0
- data/vendor/pkg_resources/_vendor/packaging/version.pyc +0 -0
- data/vendor/pkg_resources/_vendor/pyparsing.py +5696 -0
- data/vendor/pkg_resources/_vendor/pyparsing.pyc +0 -0
- data/vendor/pkg_resources/_vendor/six.py +868 -0
- data/vendor/pkg_resources/_vendor/six.pyc +0 -0
- data/vendor/pkg_resources/extern/__init__.py +73 -0
- data/vendor/pkg_resources/extern/__init__.pyc +0 -0
- data/vendor/requests/__init__.py +86 -0
- data/vendor/requests/__init__.pyc +0 -0
- data/vendor/requests/adapters.py +503 -0
- data/vendor/requests/adapters.pyc +0 -0
- data/vendor/requests/api.py +148 -0
- data/vendor/requests/api.pyc +0 -0
- data/vendor/requests/auth.py +252 -0
- data/vendor/requests/auth.pyc +0 -0
- data/vendor/requests/cacert.pem +5616 -0
- data/vendor/requests/certs.py +25 -0
- data/vendor/requests/certs.pyc +0 -0
- data/vendor/requests/compat.py +66 -0
- data/vendor/requests/compat.pyc +0 -0
- data/vendor/requests/cookies.py +540 -0
- data/vendor/requests/cookies.pyc +0 -0
- data/vendor/requests/exceptions.py +114 -0
- data/vendor/requests/exceptions.pyc +0 -0
- data/vendor/requests/hooks.py +34 -0
- data/vendor/requests/hooks.pyc +0 -0
- data/vendor/requests/models.py +873 -0
- data/vendor/requests/models.pyc +0 -0
- data/vendor/requests/packages/__init__.py +36 -0
- data/vendor/requests/packages/__init__.pyc +0 -0
- data/vendor/requests/packages/chardet/__init__.py +32 -0
- data/vendor/requests/packages/chardet/__init__.pyc +0 -0
- data/vendor/requests/packages/chardet/big5freq.py +925 -0
- data/vendor/requests/packages/chardet/big5freq.pyc +0 -0
- data/vendor/requests/packages/chardet/big5prober.py +42 -0
- data/vendor/requests/packages/chardet/big5prober.pyc +0 -0
- data/vendor/requests/packages/chardet/chardetect.py +80 -0
- data/vendor/requests/packages/chardet/chardetect.pyc +0 -0
- data/vendor/requests/packages/chardet/chardistribution.py +231 -0
- data/vendor/requests/packages/chardet/chardistribution.pyc +0 -0
- data/vendor/requests/packages/chardet/charsetgroupprober.py +106 -0
- data/vendor/requests/packages/chardet/charsetgroupprober.pyc +0 -0
- data/vendor/requests/packages/chardet/charsetprober.py +62 -0
- data/vendor/requests/packages/chardet/charsetprober.pyc +0 -0
- data/vendor/requests/packages/chardet/codingstatemachine.py +61 -0
- data/vendor/requests/packages/chardet/codingstatemachine.pyc +0 -0
- data/vendor/requests/packages/chardet/compat.py +34 -0
- data/vendor/requests/packages/chardet/compat.pyc +0 -0
- data/vendor/requests/packages/chardet/constants.py +39 -0
- data/vendor/requests/packages/chardet/constants.pyc +0 -0
- data/vendor/requests/packages/chardet/cp949prober.py +44 -0
- data/vendor/requests/packages/chardet/cp949prober.pyc +0 -0
- data/vendor/requests/packages/chardet/escprober.py +86 -0
- data/vendor/requests/packages/chardet/escprober.pyc +0 -0
- data/vendor/requests/packages/chardet/escsm.py +242 -0
- data/vendor/requests/packages/chardet/escsm.pyc +0 -0
- data/vendor/requests/packages/chardet/eucjpprober.py +90 -0
- data/vendor/requests/packages/chardet/eucjpprober.pyc +0 -0
- data/vendor/requests/packages/chardet/euckrfreq.py +596 -0
- data/vendor/requests/packages/chardet/euckrfreq.pyc +0 -0
- data/vendor/requests/packages/chardet/euckrprober.py +42 -0
- data/vendor/requests/packages/chardet/euckrprober.pyc +0 -0
- data/vendor/requests/packages/chardet/euctwfreq.py +428 -0
- data/vendor/requests/packages/chardet/euctwfreq.pyc +0 -0
- data/vendor/requests/packages/chardet/euctwprober.py +41 -0
- data/vendor/requests/packages/chardet/euctwprober.pyc +0 -0
- data/vendor/requests/packages/chardet/gb2312freq.py +472 -0
- data/vendor/requests/packages/chardet/gb2312freq.pyc +0 -0
- data/vendor/requests/packages/chardet/gb2312prober.py +41 -0
- data/vendor/requests/packages/chardet/gb2312prober.pyc +0 -0
- data/vendor/requests/packages/chardet/hebrewprober.py +283 -0
- data/vendor/requests/packages/chardet/hebrewprober.pyc +0 -0
- data/vendor/requests/packages/chardet/jisfreq.py +569 -0
- data/vendor/requests/packages/chardet/jisfreq.pyc +0 -0
- data/vendor/requests/packages/chardet/jpcntx.py +227 -0
- data/vendor/requests/packages/chardet/jpcntx.pyc +0 -0
- data/vendor/requests/packages/chardet/langbulgarianmodel.py +229 -0
- data/vendor/requests/packages/chardet/langbulgarianmodel.pyc +0 -0
- data/vendor/requests/packages/chardet/langcyrillicmodel.py +329 -0
- data/vendor/requests/packages/chardet/langcyrillicmodel.pyc +0 -0
- data/vendor/requests/packages/chardet/langgreekmodel.py +225 -0
- data/vendor/requests/packages/chardet/langgreekmodel.pyc +0 -0
- data/vendor/requests/packages/chardet/langhebrewmodel.py +201 -0
- data/vendor/requests/packages/chardet/langhebrewmodel.pyc +0 -0
- data/vendor/requests/packages/chardet/langhungarianmodel.py +225 -0
- data/vendor/requests/packages/chardet/langhungarianmodel.pyc +0 -0
- data/vendor/requests/packages/chardet/langthaimodel.py +200 -0
- data/vendor/requests/packages/chardet/langthaimodel.pyc +0 -0
- data/vendor/requests/packages/chardet/latin1prober.py +139 -0
- data/vendor/requests/packages/chardet/latin1prober.pyc +0 -0
- data/vendor/requests/packages/chardet/mbcharsetprober.py +86 -0
- data/vendor/requests/packages/chardet/mbcharsetprober.pyc +0 -0
- data/vendor/requests/packages/chardet/mbcsgroupprober.py +54 -0
- data/vendor/requests/packages/chardet/mbcsgroupprober.pyc +0 -0
- data/vendor/requests/packages/chardet/mbcssm.py +572 -0
- data/vendor/requests/packages/chardet/mbcssm.pyc +0 -0
- data/vendor/requests/packages/chardet/sbcharsetprober.py +120 -0
- data/vendor/requests/packages/chardet/sbcharsetprober.pyc +0 -0
- data/vendor/requests/packages/chardet/sbcsgroupprober.py +69 -0
- data/vendor/requests/packages/chardet/sbcsgroupprober.pyc +0 -0
- data/vendor/requests/packages/chardet/sjisprober.py +91 -0
- data/vendor/requests/packages/chardet/sjisprober.pyc +0 -0
- data/vendor/requests/packages/chardet/universaldetector.py +170 -0
- data/vendor/requests/packages/chardet/universaldetector.pyc +0 -0
- data/vendor/requests/packages/chardet/utf8prober.py +76 -0
- data/vendor/requests/packages/chardet/utf8prober.pyc +0 -0
- data/vendor/requests/packages/urllib3/__init__.py +96 -0
- data/vendor/requests/packages/urllib3/__init__.pyc +0 -0
- data/vendor/requests/packages/urllib3/_collections.py +324 -0
- data/vendor/requests/packages/urllib3/_collections.pyc +0 -0
- data/vendor/requests/packages/urllib3/connection.py +330 -0
- data/vendor/requests/packages/urllib3/connection.pyc +0 -0
- data/vendor/requests/packages/urllib3/connectionpool.py +866 -0
- data/vendor/requests/packages/urllib3/connectionpool.pyc +0 -0
- data/vendor/requests/packages/urllib3/contrib/__init__.py +0 -0
- data/vendor/requests/packages/urllib3/contrib/__init__.pyc +0 -0
- data/vendor/requests/packages/urllib3/contrib/appengine.py +231 -0
- data/vendor/requests/packages/urllib3/contrib/appengine.pyc +0 -0
- data/vendor/requests/packages/urllib3/contrib/ntlmpool.py +115 -0
- data/vendor/requests/packages/urllib3/contrib/ntlmpool.pyc +0 -0
- data/vendor/requests/packages/urllib3/contrib/pyopenssl.py +358 -0
- data/vendor/requests/packages/urllib3/contrib/pyopenssl.pyc +0 -0
- data/vendor/requests/packages/urllib3/contrib/socks.py +172 -0
- data/vendor/requests/packages/urllib3/contrib/socks.pyc +0 -0
- data/vendor/requests/packages/urllib3/exceptions.py +209 -0
- data/vendor/requests/packages/urllib3/exceptions.pyc +0 -0
- data/vendor/requests/packages/urllib3/fields.py +178 -0
- data/vendor/requests/packages/urllib3/fields.pyc +0 -0
- data/vendor/requests/packages/urllib3/filepost.py +94 -0
- data/vendor/requests/packages/urllib3/filepost.pyc +0 -0
- data/vendor/requests/packages/urllib3/packages/__init__.py +5 -0
- data/vendor/requests/packages/urllib3/packages/__init__.pyc +0 -0
- data/vendor/requests/packages/urllib3/packages/ordered_dict.py +259 -0
- data/vendor/requests/packages/urllib3/packages/ordered_dict.pyc +0 -0
- data/vendor/requests/packages/urllib3/packages/six.py +868 -0
- data/vendor/requests/packages/urllib3/packages/six.pyc +0 -0
- data/vendor/requests/packages/urllib3/packages/ssl_match_hostname/__init__.py +13 -0
- data/vendor/requests/packages/urllib3/packages/ssl_match_hostname/__init__.pyc +0 -0
- data/vendor/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.py +105 -0
- data/vendor/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.pyc +0 -0
- data/vendor/requests/packages/urllib3/poolmanager.py +367 -0
- data/vendor/requests/packages/urllib3/poolmanager.pyc +0 -0
- data/vendor/requests/packages/urllib3/request.py +151 -0
- data/vendor/requests/packages/urllib3/request.pyc +0 -0
- data/vendor/requests/packages/urllib3/response.py +530 -0
- data/vendor/requests/packages/urllib3/response.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/__init__.py +46 -0
- data/vendor/requests/packages/urllib3/util/__init__.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/connection.py +144 -0
- data/vendor/requests/packages/urllib3/util/connection.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/request.py +72 -0
- data/vendor/requests/packages/urllib3/util/request.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/response.py +74 -0
- data/vendor/requests/packages/urllib3/util/response.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/retry.py +300 -0
- data/vendor/requests/packages/urllib3/util/retry.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/ssl_.py +320 -0
- data/vendor/requests/packages/urllib3/util/ssl_.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/timeout.py +242 -0
- data/vendor/requests/packages/urllib3/util/timeout.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/url.py +217 -0
- data/vendor/requests/packages/urllib3/util/url.pyc +0 -0
- data/vendor/requests/sessions.py +712 -0
- data/vendor/requests/sessions.pyc +0 -0
- data/vendor/requests/status_codes.py +91 -0
- data/vendor/requests/status_codes.pyc +0 -0
- data/vendor/requests/structures.py +105 -0
- data/vendor/requests/structures.pyc +0 -0
- data/vendor/requests/utils.py +817 -0
- data/vendor/requests/utils.pyc +0 -0
- data/vendor/requests-2.11.1.dist-info/DESCRIPTION.rst +1294 -0
- data/vendor/requests-2.11.1.dist-info/INSTALLER +1 -0
- data/vendor/requests-2.11.1.dist-info/METADATA +1323 -0
- data/vendor/requests-2.11.1.dist-info/RECORD +170 -0
- data/vendor/requests-2.11.1.dist-info/WHEEL +6 -0
- data/vendor/requests-2.11.1.dist-info/metadata.json +1 -0
- data/vendor/requests-2.11.1.dist-info/top_level.txt +1 -0
- data/vendor/rigid/__init__.py +1 -0
- data/vendor/rigid/__init__.pyc +0 -0
- data/vendor/rigid/api.py +129 -0
- data/vendor/rigid/api.pyc +0 -0
- data/vendor/rigid/commands/__init__.py +260 -0
- data/vendor/rigid/commands/__init__.pyc +0 -0
- data/vendor/rigid/commands/deploy.py +0 -0
- data/vendor/rigid/commands/deploy.pyc +0 -0
- data/vendor/rigid/deploy.py +70 -0
- data/vendor/rigid/deploy.pyc +0 -0
- data/vendor/rigid/file_scanner.py +63 -0
- data/vendor/rigid/file_scanner.pyc +0 -0
- data/vendor/rigid/utils.py +17 -0
- data/vendor/rigid/utils.pyc +0 -0
- data/vendor/rigid-0.2.0.dist-info/DESCRIPTION.rst +3 -0
- data/vendor/rigid-0.2.0.dist-info/INSTALLER +1 -0
- data/vendor/rigid-0.2.0.dist-info/METADATA +23 -0
- data/vendor/rigid-0.2.0.dist-info/RECORD +49 -0
- data/vendor/rigid-0.2.0.dist-info/WHEEL +5 -0
- data/vendor/rigid-0.2.0.dist-info/entry_points.txt +3 -0
- data/vendor/rigid-0.2.0.dist-info/metadata.json +1 -0
- data/vendor/rigid-0.2.0.dist-info/top_level.txt +2 -0
- data/vendor/setuptools-28.8.0.dist-info/DESCRIPTION.rst +243 -0
- data/vendor/setuptools-28.8.0.dist-info/INSTALLER +1 -0
- data/vendor/setuptools-28.8.0.dist-info/METADATA +272 -0
- data/vendor/setuptools-28.8.0.dist-info/RECORD +143 -0
- data/vendor/setuptools-28.8.0.dist-info/WHEEL +6 -0
- data/vendor/setuptools-28.8.0.dist-info/dependency_links.txt +2 -0
- data/vendor/setuptools-28.8.0.dist-info/entry_points.txt +63 -0
- data/vendor/setuptools-28.8.0.dist-info/metadata.json +1 -0
- data/vendor/setuptools-28.8.0.dist-info/top_level.txt +3 -0
- data/vendor/setuptools-28.8.0.dist-info/zip-safe +1 -0
- data/vendor/tests/__init__.py +0 -0
- data/vendor/tests/__init__.pyc +0 -0
- data/vendor/tests/integration/__init__.py +0 -0
- data/vendor/tests/integration/__init__.pyc +0 -0
- data/vendor/tests/integration/test_app.py +63 -0
- data/vendor/tests/integration/test_app.pyc +0 -0
- data/vendor/tests/integration/test_apps.py +27 -0
- data/vendor/tests/integration/test_apps.pyc +0 -0
- data/vendor/tests/integration/test_deploy.py +128 -0
- data/vendor/tests/integration/test_deploy.pyc +0 -0
- data/vendor/tests/integration/test_domains.py +35 -0
- data/vendor/tests/integration/test_domains.pyc +0 -0
- data/vendor/tests/integration/test_login.py +37 -0
- data/vendor/tests/integration/test_login.pyc +0 -0
- data/vendor/tests/integration/test_promote.py +24 -0
- data/vendor/tests/integration/test_promote.pyc +0 -0
- data/vendor/tests/integration/test_token.py +33 -0
- data/vendor/tests/integration/test_token.pyc +0 -0
- data/vendor/tests/integration/test_whoami.py +24 -0
- data/vendor/tests/integration/test_whoami.pyc +0 -0
- data/vendor/tests/test_deploy.py +33 -0
- data/vendor/tests/test_deploy.pyc +0 -0
- data/vendor/tests/test_file_scanner.py +89 -0
- data/vendor/tests/test_file_scanner.pyc +0 -0
- data/vendor/tests/utils.py +78 -0
- data/vendor/tests/utils.pyc +0 -0
- data/vendor/wheel-0.30.0a0.dist-info/DESCRIPTION.rst +325 -0
- data/vendor/wheel-0.30.0a0.dist-info/INSTALLER +1 -0
- data/vendor/wheel-0.30.0a0.dist-info/LICENSE.txt +22 -0
- data/vendor/wheel-0.30.0a0.dist-info/METADATA +357 -0
- data/vendor/wheel-0.30.0a0.dist-info/RECORD +86 -0
- data/vendor/wheel-0.30.0a0.dist-info/WHEEL +6 -0
- data/vendor/wheel-0.30.0a0.dist-info/entry_points.txt +6 -0
- data/vendor/wheel-0.30.0a0.dist-info/metadata.json +1 -0
- data/vendor/wheel-0.30.0a0.dist-info/top_level.txt +1 -0
- data/vendor/yaml/__init__.py +315 -0
- data/vendor/yaml/__init__.pyc +0 -0
- data/vendor/yaml/composer.py +139 -0
- data/vendor/yaml/composer.pyc +0 -0
- data/vendor/yaml/constructor.py +675 -0
- data/vendor/yaml/constructor.pyc +0 -0
- data/vendor/yaml/cyaml.py +85 -0
- data/vendor/yaml/cyaml.pyc +0 -0
- data/vendor/yaml/dumper.py +62 -0
- data/vendor/yaml/dumper.pyc +0 -0
- data/vendor/yaml/emitter.py +1140 -0
- data/vendor/yaml/emitter.pyc +0 -0
- data/vendor/yaml/error.py +75 -0
- data/vendor/yaml/error.pyc +0 -0
- data/vendor/yaml/events.py +86 -0
- data/vendor/yaml/events.pyc +0 -0
- data/vendor/yaml/loader.py +40 -0
- data/vendor/yaml/loader.pyc +0 -0
- data/vendor/yaml/nodes.py +49 -0
- data/vendor/yaml/nodes.pyc +0 -0
- data/vendor/yaml/parser.py +589 -0
- data/vendor/yaml/parser.pyc +0 -0
- data/vendor/yaml/reader.py +190 -0
- data/vendor/yaml/reader.pyc +0 -0
- data/vendor/yaml/representer.py +486 -0
- data/vendor/yaml/representer.pyc +0 -0
- data/vendor/yaml/resolver.py +227 -0
- data/vendor/yaml/resolver.pyc +0 -0
- data/vendor/yaml/scanner.py +1453 -0
- data/vendor/yaml/scanner.pyc +0 -0
- data/vendor/yaml/serializer.py +111 -0
- data/vendor/yaml/serializer.pyc +0 -0
- data/vendor/yaml/tokens.py +104 -0
- data/vendor/yaml/tokens.pyc +0 -0
- metadata +407 -0
Binary file
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# This file is dual licensed under the terms of the Apache License, Version
|
2
|
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
3
|
+
# for complete details.
|
4
|
+
from __future__ import absolute_import, division, print_function
|
5
|
+
|
6
|
+
import re
|
7
|
+
|
8
|
+
|
9
|
+
_canonicalize_regex = re.compile(r"[-_.]+")
|
10
|
+
|
11
|
+
|
12
|
+
def canonicalize_name(name):
|
13
|
+
# This is taken from PEP 503.
|
14
|
+
return _canonicalize_regex.sub("-", name).lower()
|
Binary file
|
@@ -0,0 +1,393 @@
|
|
1
|
+
# This file is dual licensed under the terms of the Apache License, Version
|
2
|
+
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
3
|
+
# for complete details.
|
4
|
+
from __future__ import absolute_import, division, print_function
|
5
|
+
|
6
|
+
import collections
|
7
|
+
import itertools
|
8
|
+
import re
|
9
|
+
|
10
|
+
from ._structures import Infinity
|
11
|
+
|
12
|
+
|
13
|
+
__all__ = [
|
14
|
+
"parse", "Version", "LegacyVersion", "InvalidVersion", "VERSION_PATTERN"
|
15
|
+
]
|
16
|
+
|
17
|
+
|
18
|
+
_Version = collections.namedtuple(
|
19
|
+
"_Version",
|
20
|
+
["epoch", "release", "dev", "pre", "post", "local"],
|
21
|
+
)
|
22
|
+
|
23
|
+
|
24
|
+
def parse(version):
|
25
|
+
"""
|
26
|
+
Parse the given version string and return either a :class:`Version` object
|
27
|
+
or a :class:`LegacyVersion` object depending on if the given version is
|
28
|
+
a valid PEP 440 version or a legacy version.
|
29
|
+
"""
|
30
|
+
try:
|
31
|
+
return Version(version)
|
32
|
+
except InvalidVersion:
|
33
|
+
return LegacyVersion(version)
|
34
|
+
|
35
|
+
|
36
|
+
class InvalidVersion(ValueError):
|
37
|
+
"""
|
38
|
+
An invalid version was found, users should refer to PEP 440.
|
39
|
+
"""
|
40
|
+
|
41
|
+
|
42
|
+
class _BaseVersion(object):
|
43
|
+
|
44
|
+
def __hash__(self):
|
45
|
+
return hash(self._key)
|
46
|
+
|
47
|
+
def __lt__(self, other):
|
48
|
+
return self._compare(other, lambda s, o: s < o)
|
49
|
+
|
50
|
+
def __le__(self, other):
|
51
|
+
return self._compare(other, lambda s, o: s <= o)
|
52
|
+
|
53
|
+
def __eq__(self, other):
|
54
|
+
return self._compare(other, lambda s, o: s == o)
|
55
|
+
|
56
|
+
def __ge__(self, other):
|
57
|
+
return self._compare(other, lambda s, o: s >= o)
|
58
|
+
|
59
|
+
def __gt__(self, other):
|
60
|
+
return self._compare(other, lambda s, o: s > o)
|
61
|
+
|
62
|
+
def __ne__(self, other):
|
63
|
+
return self._compare(other, lambda s, o: s != o)
|
64
|
+
|
65
|
+
def _compare(self, other, method):
|
66
|
+
if not isinstance(other, _BaseVersion):
|
67
|
+
return NotImplemented
|
68
|
+
|
69
|
+
return method(self._key, other._key)
|
70
|
+
|
71
|
+
|
72
|
+
class LegacyVersion(_BaseVersion):
|
73
|
+
|
74
|
+
def __init__(self, version):
|
75
|
+
self._version = str(version)
|
76
|
+
self._key = _legacy_cmpkey(self._version)
|
77
|
+
|
78
|
+
def __str__(self):
|
79
|
+
return self._version
|
80
|
+
|
81
|
+
def __repr__(self):
|
82
|
+
return "<LegacyVersion({0})>".format(repr(str(self)))
|
83
|
+
|
84
|
+
@property
|
85
|
+
def public(self):
|
86
|
+
return self._version
|
87
|
+
|
88
|
+
@property
|
89
|
+
def base_version(self):
|
90
|
+
return self._version
|
91
|
+
|
92
|
+
@property
|
93
|
+
def local(self):
|
94
|
+
return None
|
95
|
+
|
96
|
+
@property
|
97
|
+
def is_prerelease(self):
|
98
|
+
return False
|
99
|
+
|
100
|
+
@property
|
101
|
+
def is_postrelease(self):
|
102
|
+
return False
|
103
|
+
|
104
|
+
|
105
|
+
_legacy_version_component_re = re.compile(
|
106
|
+
r"(\d+ | [a-z]+ | \.| -)", re.VERBOSE,
|
107
|
+
)
|
108
|
+
|
109
|
+
_legacy_version_replacement_map = {
|
110
|
+
"pre": "c", "preview": "c", "-": "final-", "rc": "c", "dev": "@",
|
111
|
+
}
|
112
|
+
|
113
|
+
|
114
|
+
def _parse_version_parts(s):
|
115
|
+
for part in _legacy_version_component_re.split(s):
|
116
|
+
part = _legacy_version_replacement_map.get(part, part)
|
117
|
+
|
118
|
+
if not part or part == ".":
|
119
|
+
continue
|
120
|
+
|
121
|
+
if part[:1] in "0123456789":
|
122
|
+
# pad for numeric comparison
|
123
|
+
yield part.zfill(8)
|
124
|
+
else:
|
125
|
+
yield "*" + part
|
126
|
+
|
127
|
+
# ensure that alpha/beta/candidate are before final
|
128
|
+
yield "*final"
|
129
|
+
|
130
|
+
|
131
|
+
def _legacy_cmpkey(version):
|
132
|
+
# We hardcode an epoch of -1 here. A PEP 440 version can only have a epoch
|
133
|
+
# greater than or equal to 0. This will effectively put the LegacyVersion,
|
134
|
+
# which uses the defacto standard originally implemented by setuptools,
|
135
|
+
# as before all PEP 440 versions.
|
136
|
+
epoch = -1
|
137
|
+
|
138
|
+
# This scheme is taken from pkg_resources.parse_version setuptools prior to
|
139
|
+
# it's adoption of the packaging library.
|
140
|
+
parts = []
|
141
|
+
for part in _parse_version_parts(version.lower()):
|
142
|
+
if part.startswith("*"):
|
143
|
+
# remove "-" before a prerelease tag
|
144
|
+
if part < "*final":
|
145
|
+
while parts and parts[-1] == "*final-":
|
146
|
+
parts.pop()
|
147
|
+
|
148
|
+
# remove trailing zeros from each series of numeric parts
|
149
|
+
while parts and parts[-1] == "00000000":
|
150
|
+
parts.pop()
|
151
|
+
|
152
|
+
parts.append(part)
|
153
|
+
parts = tuple(parts)
|
154
|
+
|
155
|
+
return epoch, parts
|
156
|
+
|
157
|
+
# Deliberately not anchored to the start and end of the string, to make it
|
158
|
+
# easier for 3rd party code to reuse
|
159
|
+
VERSION_PATTERN = r"""
|
160
|
+
v?
|
161
|
+
(?:
|
162
|
+
(?:(?P<epoch>[0-9]+)!)? # epoch
|
163
|
+
(?P<release>[0-9]+(?:\.[0-9]+)*) # release segment
|
164
|
+
(?P<pre> # pre-release
|
165
|
+
[-_\.]?
|
166
|
+
(?P<pre_l>(a|b|c|rc|alpha|beta|pre|preview))
|
167
|
+
[-_\.]?
|
168
|
+
(?P<pre_n>[0-9]+)?
|
169
|
+
)?
|
170
|
+
(?P<post> # post release
|
171
|
+
(?:-(?P<post_n1>[0-9]+))
|
172
|
+
|
|
173
|
+
(?:
|
174
|
+
[-_\.]?
|
175
|
+
(?P<post_l>post|rev|r)
|
176
|
+
[-_\.]?
|
177
|
+
(?P<post_n2>[0-9]+)?
|
178
|
+
)
|
179
|
+
)?
|
180
|
+
(?P<dev> # dev release
|
181
|
+
[-_\.]?
|
182
|
+
(?P<dev_l>dev)
|
183
|
+
[-_\.]?
|
184
|
+
(?P<dev_n>[0-9]+)?
|
185
|
+
)?
|
186
|
+
)
|
187
|
+
(?:\+(?P<local>[a-z0-9]+(?:[-_\.][a-z0-9]+)*))? # local version
|
188
|
+
"""
|
189
|
+
|
190
|
+
|
191
|
+
class Version(_BaseVersion):
|
192
|
+
|
193
|
+
_regex = re.compile(
|
194
|
+
r"^\s*" + VERSION_PATTERN + r"\s*$",
|
195
|
+
re.VERBOSE | re.IGNORECASE,
|
196
|
+
)
|
197
|
+
|
198
|
+
def __init__(self, version):
|
199
|
+
# Validate the version and parse it into pieces
|
200
|
+
match = self._regex.search(version)
|
201
|
+
if not match:
|
202
|
+
raise InvalidVersion("Invalid version: '{0}'".format(version))
|
203
|
+
|
204
|
+
# Store the parsed out pieces of the version
|
205
|
+
self._version = _Version(
|
206
|
+
epoch=int(match.group("epoch")) if match.group("epoch") else 0,
|
207
|
+
release=tuple(int(i) for i in match.group("release").split(".")),
|
208
|
+
pre=_parse_letter_version(
|
209
|
+
match.group("pre_l"),
|
210
|
+
match.group("pre_n"),
|
211
|
+
),
|
212
|
+
post=_parse_letter_version(
|
213
|
+
match.group("post_l"),
|
214
|
+
match.group("post_n1") or match.group("post_n2"),
|
215
|
+
),
|
216
|
+
dev=_parse_letter_version(
|
217
|
+
match.group("dev_l"),
|
218
|
+
match.group("dev_n"),
|
219
|
+
),
|
220
|
+
local=_parse_local_version(match.group("local")),
|
221
|
+
)
|
222
|
+
|
223
|
+
# Generate a key which will be used for sorting
|
224
|
+
self._key = _cmpkey(
|
225
|
+
self._version.epoch,
|
226
|
+
self._version.release,
|
227
|
+
self._version.pre,
|
228
|
+
self._version.post,
|
229
|
+
self._version.dev,
|
230
|
+
self._version.local,
|
231
|
+
)
|
232
|
+
|
233
|
+
def __repr__(self):
|
234
|
+
return "<Version({0})>".format(repr(str(self)))
|
235
|
+
|
236
|
+
def __str__(self):
|
237
|
+
parts = []
|
238
|
+
|
239
|
+
# Epoch
|
240
|
+
if self._version.epoch != 0:
|
241
|
+
parts.append("{0}!".format(self._version.epoch))
|
242
|
+
|
243
|
+
# Release segment
|
244
|
+
parts.append(".".join(str(x) for x in self._version.release))
|
245
|
+
|
246
|
+
# Pre-release
|
247
|
+
if self._version.pre is not None:
|
248
|
+
parts.append("".join(str(x) for x in self._version.pre))
|
249
|
+
|
250
|
+
# Post-release
|
251
|
+
if self._version.post is not None:
|
252
|
+
parts.append(".post{0}".format(self._version.post[1]))
|
253
|
+
|
254
|
+
# Development release
|
255
|
+
if self._version.dev is not None:
|
256
|
+
parts.append(".dev{0}".format(self._version.dev[1]))
|
257
|
+
|
258
|
+
# Local version segment
|
259
|
+
if self._version.local is not None:
|
260
|
+
parts.append(
|
261
|
+
"+{0}".format(".".join(str(x) for x in self._version.local))
|
262
|
+
)
|
263
|
+
|
264
|
+
return "".join(parts)
|
265
|
+
|
266
|
+
@property
|
267
|
+
def public(self):
|
268
|
+
return str(self).split("+", 1)[0]
|
269
|
+
|
270
|
+
@property
|
271
|
+
def base_version(self):
|
272
|
+
parts = []
|
273
|
+
|
274
|
+
# Epoch
|
275
|
+
if self._version.epoch != 0:
|
276
|
+
parts.append("{0}!".format(self._version.epoch))
|
277
|
+
|
278
|
+
# Release segment
|
279
|
+
parts.append(".".join(str(x) for x in self._version.release))
|
280
|
+
|
281
|
+
return "".join(parts)
|
282
|
+
|
283
|
+
@property
|
284
|
+
def local(self):
|
285
|
+
version_string = str(self)
|
286
|
+
if "+" in version_string:
|
287
|
+
return version_string.split("+", 1)[1]
|
288
|
+
|
289
|
+
@property
|
290
|
+
def is_prerelease(self):
|
291
|
+
return bool(self._version.dev or self._version.pre)
|
292
|
+
|
293
|
+
@property
|
294
|
+
def is_postrelease(self):
|
295
|
+
return bool(self._version.post)
|
296
|
+
|
297
|
+
|
298
|
+
def _parse_letter_version(letter, number):
|
299
|
+
if letter:
|
300
|
+
# We consider there to be an implicit 0 in a pre-release if there is
|
301
|
+
# not a numeral associated with it.
|
302
|
+
if number is None:
|
303
|
+
number = 0
|
304
|
+
|
305
|
+
# We normalize any letters to their lower case form
|
306
|
+
letter = letter.lower()
|
307
|
+
|
308
|
+
# We consider some words to be alternate spellings of other words and
|
309
|
+
# in those cases we want to normalize the spellings to our preferred
|
310
|
+
# spelling.
|
311
|
+
if letter == "alpha":
|
312
|
+
letter = "a"
|
313
|
+
elif letter == "beta":
|
314
|
+
letter = "b"
|
315
|
+
elif letter in ["c", "pre", "preview"]:
|
316
|
+
letter = "rc"
|
317
|
+
elif letter in ["rev", "r"]:
|
318
|
+
letter = "post"
|
319
|
+
|
320
|
+
return letter, int(number)
|
321
|
+
if not letter and number:
|
322
|
+
# We assume if we are given a number, but we are not given a letter
|
323
|
+
# then this is using the implicit post release syntax (e.g. 1.0-1)
|
324
|
+
letter = "post"
|
325
|
+
|
326
|
+
return letter, int(number)
|
327
|
+
|
328
|
+
|
329
|
+
_local_version_seperators = re.compile(r"[\._-]")
|
330
|
+
|
331
|
+
|
332
|
+
def _parse_local_version(local):
|
333
|
+
"""
|
334
|
+
Takes a string like abc.1.twelve and turns it into ("abc", 1, "twelve").
|
335
|
+
"""
|
336
|
+
if local is not None:
|
337
|
+
return tuple(
|
338
|
+
part.lower() if not part.isdigit() else int(part)
|
339
|
+
for part in _local_version_seperators.split(local)
|
340
|
+
)
|
341
|
+
|
342
|
+
|
343
|
+
def _cmpkey(epoch, release, pre, post, dev, local):
|
344
|
+
# When we compare a release version, we want to compare it with all of the
|
345
|
+
# trailing zeros removed. So we'll use a reverse the list, drop all the now
|
346
|
+
# leading zeros until we come to something non zero, then take the rest
|
347
|
+
# re-reverse it back into the correct order and make it a tuple and use
|
348
|
+
# that for our sorting key.
|
349
|
+
release = tuple(
|
350
|
+
reversed(list(
|
351
|
+
itertools.dropwhile(
|
352
|
+
lambda x: x == 0,
|
353
|
+
reversed(release),
|
354
|
+
)
|
355
|
+
))
|
356
|
+
)
|
357
|
+
|
358
|
+
# We need to "trick" the sorting algorithm to put 1.0.dev0 before 1.0a0.
|
359
|
+
# We'll do this by abusing the pre segment, but we _only_ want to do this
|
360
|
+
# if there is not a pre or a post segment. If we have one of those then
|
361
|
+
# the normal sorting rules will handle this case correctly.
|
362
|
+
if pre is None and post is None and dev is not None:
|
363
|
+
pre = -Infinity
|
364
|
+
# Versions without a pre-release (except as noted above) should sort after
|
365
|
+
# those with one.
|
366
|
+
elif pre is None:
|
367
|
+
pre = Infinity
|
368
|
+
|
369
|
+
# Versions without a post segment should sort before those with one.
|
370
|
+
if post is None:
|
371
|
+
post = -Infinity
|
372
|
+
|
373
|
+
# Versions without a development segment should sort after those with one.
|
374
|
+
if dev is None:
|
375
|
+
dev = Infinity
|
376
|
+
|
377
|
+
if local is None:
|
378
|
+
# Versions without a local segment should sort before those with one.
|
379
|
+
local = -Infinity
|
380
|
+
else:
|
381
|
+
# Versions with a local segment need that segment parsed to implement
|
382
|
+
# the sorting rules in PEP440.
|
383
|
+
# - Alpha numeric segments sort before numeric segments
|
384
|
+
# - Alpha numeric segments sort lexicographically
|
385
|
+
# - Numeric segments sort numerically
|
386
|
+
# - Shorter versions sort before longer versions when the prefixes
|
387
|
+
# match exactly
|
388
|
+
local = tuple(
|
389
|
+
(i, "") if isinstance(i, int) else (-Infinity, i)
|
390
|
+
for i in local
|
391
|
+
)
|
392
|
+
|
393
|
+
return epoch, release, pre, post, dev, local
|
Binary file
|