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
@@ -0,0 +1,68 @@
|
|
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
|
+
|
7
|
+
class Infinity(object):
|
8
|
+
|
9
|
+
def __repr__(self):
|
10
|
+
return "Infinity"
|
11
|
+
|
12
|
+
def __hash__(self):
|
13
|
+
return hash(repr(self))
|
14
|
+
|
15
|
+
def __lt__(self, other):
|
16
|
+
return False
|
17
|
+
|
18
|
+
def __le__(self, other):
|
19
|
+
return False
|
20
|
+
|
21
|
+
def __eq__(self, other):
|
22
|
+
return isinstance(other, self.__class__)
|
23
|
+
|
24
|
+
def __ne__(self, other):
|
25
|
+
return not isinstance(other, self.__class__)
|
26
|
+
|
27
|
+
def __gt__(self, other):
|
28
|
+
return True
|
29
|
+
|
30
|
+
def __ge__(self, other):
|
31
|
+
return True
|
32
|
+
|
33
|
+
def __neg__(self):
|
34
|
+
return NegativeInfinity
|
35
|
+
|
36
|
+
Infinity = Infinity()
|
37
|
+
|
38
|
+
|
39
|
+
class NegativeInfinity(object):
|
40
|
+
|
41
|
+
def __repr__(self):
|
42
|
+
return "-Infinity"
|
43
|
+
|
44
|
+
def __hash__(self):
|
45
|
+
return hash(repr(self))
|
46
|
+
|
47
|
+
def __lt__(self, other):
|
48
|
+
return True
|
49
|
+
|
50
|
+
def __le__(self, other):
|
51
|
+
return True
|
52
|
+
|
53
|
+
def __eq__(self, other):
|
54
|
+
return isinstance(other, self.__class__)
|
55
|
+
|
56
|
+
def __ne__(self, other):
|
57
|
+
return not isinstance(other, self.__class__)
|
58
|
+
|
59
|
+
def __gt__(self, other):
|
60
|
+
return False
|
61
|
+
|
62
|
+
def __ge__(self, other):
|
63
|
+
return False
|
64
|
+
|
65
|
+
def __neg__(self):
|
66
|
+
return Infinity
|
67
|
+
|
68
|
+
NegativeInfinity = NegativeInfinity()
|
Binary file
|
@@ -0,0 +1,287 @@
|
|
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 operator
|
7
|
+
import os
|
8
|
+
import platform
|
9
|
+
import sys
|
10
|
+
|
11
|
+
from pkg_resources.extern.pyparsing import ParseException, ParseResults, stringStart, stringEnd
|
12
|
+
from pkg_resources.extern.pyparsing import ZeroOrMore, Group, Forward, QuotedString
|
13
|
+
from pkg_resources.extern.pyparsing import Literal as L # noqa
|
14
|
+
|
15
|
+
from ._compat import string_types
|
16
|
+
from .specifiers import Specifier, InvalidSpecifier
|
17
|
+
|
18
|
+
|
19
|
+
__all__ = [
|
20
|
+
"InvalidMarker", "UndefinedComparison", "UndefinedEnvironmentName",
|
21
|
+
"Marker", "default_environment",
|
22
|
+
]
|
23
|
+
|
24
|
+
|
25
|
+
class InvalidMarker(ValueError):
|
26
|
+
"""
|
27
|
+
An invalid marker was found, users should refer to PEP 508.
|
28
|
+
"""
|
29
|
+
|
30
|
+
|
31
|
+
class UndefinedComparison(ValueError):
|
32
|
+
"""
|
33
|
+
An invalid operation was attempted on a value that doesn't support it.
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
class UndefinedEnvironmentName(ValueError):
|
38
|
+
"""
|
39
|
+
A name was attempted to be used that does not exist inside of the
|
40
|
+
environment.
|
41
|
+
"""
|
42
|
+
|
43
|
+
|
44
|
+
class Node(object):
|
45
|
+
|
46
|
+
def __init__(self, value):
|
47
|
+
self.value = value
|
48
|
+
|
49
|
+
def __str__(self):
|
50
|
+
return str(self.value)
|
51
|
+
|
52
|
+
def __repr__(self):
|
53
|
+
return "<{0}({1!r})>".format(self.__class__.__name__, str(self))
|
54
|
+
|
55
|
+
|
56
|
+
class Variable(Node):
|
57
|
+
pass
|
58
|
+
|
59
|
+
|
60
|
+
class Value(Node):
|
61
|
+
pass
|
62
|
+
|
63
|
+
|
64
|
+
VARIABLE = (
|
65
|
+
L("implementation_version") |
|
66
|
+
L("platform_python_implementation") |
|
67
|
+
L("implementation_name") |
|
68
|
+
L("python_full_version") |
|
69
|
+
L("platform_release") |
|
70
|
+
L("platform_version") |
|
71
|
+
L("platform_machine") |
|
72
|
+
L("platform_system") |
|
73
|
+
L("python_version") |
|
74
|
+
L("sys_platform") |
|
75
|
+
L("os_name") |
|
76
|
+
L("os.name") | # PEP-345
|
77
|
+
L("sys.platform") | # PEP-345
|
78
|
+
L("platform.version") | # PEP-345
|
79
|
+
L("platform.machine") | # PEP-345
|
80
|
+
L("platform.python_implementation") | # PEP-345
|
81
|
+
L("python_implementation") | # undocumented setuptools legacy
|
82
|
+
L("extra")
|
83
|
+
)
|
84
|
+
ALIASES = {
|
85
|
+
'os.name': 'os_name',
|
86
|
+
'sys.platform': 'sys_platform',
|
87
|
+
'platform.version': 'platform_version',
|
88
|
+
'platform.machine': 'platform_machine',
|
89
|
+
'platform.python_implementation': 'platform_python_implementation',
|
90
|
+
'python_implementation': 'platform_python_implementation'
|
91
|
+
}
|
92
|
+
VARIABLE.setParseAction(lambda s, l, t: Variable(ALIASES.get(t[0], t[0])))
|
93
|
+
|
94
|
+
VERSION_CMP = (
|
95
|
+
L("===") |
|
96
|
+
L("==") |
|
97
|
+
L(">=") |
|
98
|
+
L("<=") |
|
99
|
+
L("!=") |
|
100
|
+
L("~=") |
|
101
|
+
L(">") |
|
102
|
+
L("<")
|
103
|
+
)
|
104
|
+
|
105
|
+
MARKER_OP = VERSION_CMP | L("not in") | L("in")
|
106
|
+
|
107
|
+
MARKER_VALUE = QuotedString("'") | QuotedString('"')
|
108
|
+
MARKER_VALUE.setParseAction(lambda s, l, t: Value(t[0]))
|
109
|
+
|
110
|
+
BOOLOP = L("and") | L("or")
|
111
|
+
|
112
|
+
MARKER_VAR = VARIABLE | MARKER_VALUE
|
113
|
+
|
114
|
+
MARKER_ITEM = Group(MARKER_VAR + MARKER_OP + MARKER_VAR)
|
115
|
+
MARKER_ITEM.setParseAction(lambda s, l, t: tuple(t[0]))
|
116
|
+
|
117
|
+
LPAREN = L("(").suppress()
|
118
|
+
RPAREN = L(")").suppress()
|
119
|
+
|
120
|
+
MARKER_EXPR = Forward()
|
121
|
+
MARKER_ATOM = MARKER_ITEM | Group(LPAREN + MARKER_EXPR + RPAREN)
|
122
|
+
MARKER_EXPR << MARKER_ATOM + ZeroOrMore(BOOLOP + MARKER_EXPR)
|
123
|
+
|
124
|
+
MARKER = stringStart + MARKER_EXPR + stringEnd
|
125
|
+
|
126
|
+
|
127
|
+
def _coerce_parse_result(results):
|
128
|
+
if isinstance(results, ParseResults):
|
129
|
+
return [_coerce_parse_result(i) for i in results]
|
130
|
+
else:
|
131
|
+
return results
|
132
|
+
|
133
|
+
|
134
|
+
def _format_marker(marker, first=True):
|
135
|
+
assert isinstance(marker, (list, tuple, string_types))
|
136
|
+
|
137
|
+
# Sometimes we have a structure like [[...]] which is a single item list
|
138
|
+
# where the single item is itself it's own list. In that case we want skip
|
139
|
+
# the rest of this function so that we don't get extraneous () on the
|
140
|
+
# outside.
|
141
|
+
if (isinstance(marker, list) and len(marker) == 1 and
|
142
|
+
isinstance(marker[0], (list, tuple))):
|
143
|
+
return _format_marker(marker[0])
|
144
|
+
|
145
|
+
if isinstance(marker, list):
|
146
|
+
inner = (_format_marker(m, first=False) for m in marker)
|
147
|
+
if first:
|
148
|
+
return " ".join(inner)
|
149
|
+
else:
|
150
|
+
return "(" + " ".join(inner) + ")"
|
151
|
+
elif isinstance(marker, tuple):
|
152
|
+
return '{0} {1} "{2}"'.format(*marker)
|
153
|
+
else:
|
154
|
+
return marker
|
155
|
+
|
156
|
+
|
157
|
+
_operators = {
|
158
|
+
"in": lambda lhs, rhs: lhs in rhs,
|
159
|
+
"not in": lambda lhs, rhs: lhs not in rhs,
|
160
|
+
"<": operator.lt,
|
161
|
+
"<=": operator.le,
|
162
|
+
"==": operator.eq,
|
163
|
+
"!=": operator.ne,
|
164
|
+
">=": operator.ge,
|
165
|
+
">": operator.gt,
|
166
|
+
}
|
167
|
+
|
168
|
+
|
169
|
+
def _eval_op(lhs, op, rhs):
|
170
|
+
try:
|
171
|
+
spec = Specifier("".join([op, rhs]))
|
172
|
+
except InvalidSpecifier:
|
173
|
+
pass
|
174
|
+
else:
|
175
|
+
return spec.contains(lhs)
|
176
|
+
|
177
|
+
oper = _operators.get(op)
|
178
|
+
if oper is None:
|
179
|
+
raise UndefinedComparison(
|
180
|
+
"Undefined {0!r} on {1!r} and {2!r}.".format(op, lhs, rhs)
|
181
|
+
)
|
182
|
+
|
183
|
+
return oper(lhs, rhs)
|
184
|
+
|
185
|
+
|
186
|
+
_undefined = object()
|
187
|
+
|
188
|
+
|
189
|
+
def _get_env(environment, name):
|
190
|
+
value = environment.get(name, _undefined)
|
191
|
+
|
192
|
+
if value is _undefined:
|
193
|
+
raise UndefinedEnvironmentName(
|
194
|
+
"{0!r} does not exist in evaluation environment.".format(name)
|
195
|
+
)
|
196
|
+
|
197
|
+
return value
|
198
|
+
|
199
|
+
|
200
|
+
def _evaluate_markers(markers, environment):
|
201
|
+
groups = [[]]
|
202
|
+
|
203
|
+
for marker in markers:
|
204
|
+
assert isinstance(marker, (list, tuple, string_types))
|
205
|
+
|
206
|
+
if isinstance(marker, list):
|
207
|
+
groups[-1].append(_evaluate_markers(marker, environment))
|
208
|
+
elif isinstance(marker, tuple):
|
209
|
+
lhs, op, rhs = marker
|
210
|
+
|
211
|
+
if isinstance(lhs, Variable):
|
212
|
+
lhs_value = _get_env(environment, lhs.value)
|
213
|
+
rhs_value = rhs.value
|
214
|
+
else:
|
215
|
+
lhs_value = lhs.value
|
216
|
+
rhs_value = _get_env(environment, rhs.value)
|
217
|
+
|
218
|
+
groups[-1].append(_eval_op(lhs_value, op, rhs_value))
|
219
|
+
else:
|
220
|
+
assert marker in ["and", "or"]
|
221
|
+
if marker == "or":
|
222
|
+
groups.append([])
|
223
|
+
|
224
|
+
return any(all(item) for item in groups)
|
225
|
+
|
226
|
+
|
227
|
+
def format_full_version(info):
|
228
|
+
version = '{0.major}.{0.minor}.{0.micro}'.format(info)
|
229
|
+
kind = info.releaselevel
|
230
|
+
if kind != 'final':
|
231
|
+
version += kind[0] + str(info.serial)
|
232
|
+
return version
|
233
|
+
|
234
|
+
|
235
|
+
def default_environment():
|
236
|
+
if hasattr(sys, 'implementation'):
|
237
|
+
iver = format_full_version(sys.implementation.version)
|
238
|
+
implementation_name = sys.implementation.name
|
239
|
+
else:
|
240
|
+
iver = '0'
|
241
|
+
implementation_name = ''
|
242
|
+
|
243
|
+
return {
|
244
|
+
"implementation_name": implementation_name,
|
245
|
+
"implementation_version": iver,
|
246
|
+
"os_name": os.name,
|
247
|
+
"platform_machine": platform.machine(),
|
248
|
+
"platform_release": platform.release(),
|
249
|
+
"platform_system": platform.system(),
|
250
|
+
"platform_version": platform.version(),
|
251
|
+
"python_full_version": platform.python_version(),
|
252
|
+
"platform_python_implementation": platform.python_implementation(),
|
253
|
+
"python_version": platform.python_version()[:3],
|
254
|
+
"sys_platform": sys.platform,
|
255
|
+
}
|
256
|
+
|
257
|
+
|
258
|
+
class Marker(object):
|
259
|
+
|
260
|
+
def __init__(self, marker):
|
261
|
+
try:
|
262
|
+
self._markers = _coerce_parse_result(MARKER.parseString(marker))
|
263
|
+
except ParseException as e:
|
264
|
+
err_str = "Invalid marker: {0!r}, parse error at {1!r}".format(
|
265
|
+
marker, marker[e.loc:e.loc + 8])
|
266
|
+
raise InvalidMarker(err_str)
|
267
|
+
|
268
|
+
def __str__(self):
|
269
|
+
return _format_marker(self._markers)
|
270
|
+
|
271
|
+
def __repr__(self):
|
272
|
+
return "<Marker({0!r})>".format(str(self))
|
273
|
+
|
274
|
+
def evaluate(self, environment=None):
|
275
|
+
"""Evaluate a marker.
|
276
|
+
|
277
|
+
Return the boolean from evaluating the given marker against the
|
278
|
+
environment. environment is an optional argument to override all or
|
279
|
+
part of the determined environment.
|
280
|
+
|
281
|
+
The environment is determined from the current Python process.
|
282
|
+
"""
|
283
|
+
current_environment = default_environment()
|
284
|
+
if environment is not None:
|
285
|
+
current_environment.update(environment)
|
286
|
+
|
287
|
+
return _evaluate_markers(self._markers, current_environment)
|
Binary file
|
@@ -0,0 +1,127 @@
|
|
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 string
|
7
|
+
import re
|
8
|
+
|
9
|
+
from pkg_resources.extern.pyparsing import stringStart, stringEnd, originalTextFor, ParseException
|
10
|
+
from pkg_resources.extern.pyparsing import ZeroOrMore, Word, Optional, Regex, Combine
|
11
|
+
from pkg_resources.extern.pyparsing import Literal as L # noqa
|
12
|
+
from pkg_resources.extern.six.moves.urllib import parse as urlparse
|
13
|
+
|
14
|
+
from .markers import MARKER_EXPR, Marker
|
15
|
+
from .specifiers import LegacySpecifier, Specifier, SpecifierSet
|
16
|
+
|
17
|
+
|
18
|
+
class InvalidRequirement(ValueError):
|
19
|
+
"""
|
20
|
+
An invalid requirement was found, users should refer to PEP 508.
|
21
|
+
"""
|
22
|
+
|
23
|
+
|
24
|
+
ALPHANUM = Word(string.ascii_letters + string.digits)
|
25
|
+
|
26
|
+
LBRACKET = L("[").suppress()
|
27
|
+
RBRACKET = L("]").suppress()
|
28
|
+
LPAREN = L("(").suppress()
|
29
|
+
RPAREN = L(")").suppress()
|
30
|
+
COMMA = L(",").suppress()
|
31
|
+
SEMICOLON = L(";").suppress()
|
32
|
+
AT = L("@").suppress()
|
33
|
+
|
34
|
+
PUNCTUATION = Word("-_.")
|
35
|
+
IDENTIFIER_END = ALPHANUM | (ZeroOrMore(PUNCTUATION) + ALPHANUM)
|
36
|
+
IDENTIFIER = Combine(ALPHANUM + ZeroOrMore(IDENTIFIER_END))
|
37
|
+
|
38
|
+
NAME = IDENTIFIER("name")
|
39
|
+
EXTRA = IDENTIFIER
|
40
|
+
|
41
|
+
URI = Regex(r'[^ ]+')("url")
|
42
|
+
URL = (AT + URI)
|
43
|
+
|
44
|
+
EXTRAS_LIST = EXTRA + ZeroOrMore(COMMA + EXTRA)
|
45
|
+
EXTRAS = (LBRACKET + Optional(EXTRAS_LIST) + RBRACKET)("extras")
|
46
|
+
|
47
|
+
VERSION_PEP440 = Regex(Specifier._regex_str, re.VERBOSE | re.IGNORECASE)
|
48
|
+
VERSION_LEGACY = Regex(LegacySpecifier._regex_str, re.VERBOSE | re.IGNORECASE)
|
49
|
+
|
50
|
+
VERSION_ONE = VERSION_PEP440 ^ VERSION_LEGACY
|
51
|
+
VERSION_MANY = Combine(VERSION_ONE + ZeroOrMore(COMMA + VERSION_ONE),
|
52
|
+
joinString=",", adjacent=False)("_raw_spec")
|
53
|
+
_VERSION_SPEC = Optional(((LPAREN + VERSION_MANY + RPAREN) | VERSION_MANY))
|
54
|
+
_VERSION_SPEC.setParseAction(lambda s, l, t: t._raw_spec or '')
|
55
|
+
|
56
|
+
VERSION_SPEC = originalTextFor(_VERSION_SPEC)("specifier")
|
57
|
+
VERSION_SPEC.setParseAction(lambda s, l, t: t[1])
|
58
|
+
|
59
|
+
MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
|
60
|
+
MARKER_EXPR.setParseAction(
|
61
|
+
lambda s, l, t: Marker(s[t._original_start:t._original_end])
|
62
|
+
)
|
63
|
+
MARKER_SEPERATOR = SEMICOLON
|
64
|
+
MARKER = MARKER_SEPERATOR + MARKER_EXPR
|
65
|
+
|
66
|
+
VERSION_AND_MARKER = VERSION_SPEC + Optional(MARKER)
|
67
|
+
URL_AND_MARKER = URL + Optional(MARKER)
|
68
|
+
|
69
|
+
NAMED_REQUIREMENT = \
|
70
|
+
NAME + Optional(EXTRAS) + (URL_AND_MARKER | VERSION_AND_MARKER)
|
71
|
+
|
72
|
+
REQUIREMENT = stringStart + NAMED_REQUIREMENT + stringEnd
|
73
|
+
|
74
|
+
|
75
|
+
class Requirement(object):
|
76
|
+
"""Parse a requirement.
|
77
|
+
|
78
|
+
Parse a given requirement string into its parts, such as name, specifier,
|
79
|
+
URL, and extras. Raises InvalidRequirement on a badly-formed requirement
|
80
|
+
string.
|
81
|
+
"""
|
82
|
+
|
83
|
+
# TODO: Can we test whether something is contained within a requirement?
|
84
|
+
# If so how do we do that? Do we need to test against the _name_ of
|
85
|
+
# the thing as well as the version? What about the markers?
|
86
|
+
# TODO: Can we normalize the name and extra name?
|
87
|
+
|
88
|
+
def __init__(self, requirement_string):
|
89
|
+
try:
|
90
|
+
req = REQUIREMENT.parseString(requirement_string)
|
91
|
+
except ParseException as e:
|
92
|
+
raise InvalidRequirement(
|
93
|
+
"Invalid requirement, parse error at \"{0!r}\"".format(
|
94
|
+
requirement_string[e.loc:e.loc + 8]))
|
95
|
+
|
96
|
+
self.name = req.name
|
97
|
+
if req.url:
|
98
|
+
parsed_url = urlparse.urlparse(req.url)
|
99
|
+
if not (parsed_url.scheme and parsed_url.netloc) or (
|
100
|
+
not parsed_url.scheme and not parsed_url.netloc):
|
101
|
+
raise InvalidRequirement("Invalid URL given")
|
102
|
+
self.url = req.url
|
103
|
+
else:
|
104
|
+
self.url = None
|
105
|
+
self.extras = set(req.extras.asList() if req.extras else [])
|
106
|
+
self.specifier = SpecifierSet(req.specifier)
|
107
|
+
self.marker = req.marker if req.marker else None
|
108
|
+
|
109
|
+
def __str__(self):
|
110
|
+
parts = [self.name]
|
111
|
+
|
112
|
+
if self.extras:
|
113
|
+
parts.append("[{0}]".format(",".join(sorted(self.extras))))
|
114
|
+
|
115
|
+
if self.specifier:
|
116
|
+
parts.append(str(self.specifier))
|
117
|
+
|
118
|
+
if self.url:
|
119
|
+
parts.append("@ {0}".format(self.url))
|
120
|
+
|
121
|
+
if self.marker:
|
122
|
+
parts.append("; {0}".format(self.marker))
|
123
|
+
|
124
|
+
return "".join(parts)
|
125
|
+
|
126
|
+
def __repr__(self):
|
127
|
+
return "<Requirement({0!r})>".format(str(self))
|
Binary file
|