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,273 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# This module is based on the excellent work by Adam Bartoš who
|
3
|
+
# provided a lot of what went into the implementation here in
|
4
|
+
# the discussion to issue1602 in the Python bug tracker.
|
5
|
+
#
|
6
|
+
# There are some general differences in regards to how this works
|
7
|
+
# compared to the original patches as we do not need to patch
|
8
|
+
# the entire interpreter but just work in our little world of
|
9
|
+
# echo and prmopt.
|
10
|
+
|
11
|
+
import io
|
12
|
+
import os
|
13
|
+
import sys
|
14
|
+
import zlib
|
15
|
+
import time
|
16
|
+
import ctypes
|
17
|
+
import msvcrt
|
18
|
+
from click._compat import _NonClosingTextIOWrapper, text_type, PY2
|
19
|
+
from ctypes import byref, POINTER, c_int, c_char, c_char_p, \
|
20
|
+
c_void_p, py_object, c_ssize_t, c_ulong, windll, WINFUNCTYPE
|
21
|
+
try:
|
22
|
+
from ctypes import pythonapi
|
23
|
+
PyObject_GetBuffer = pythonapi.PyObject_GetBuffer
|
24
|
+
PyBuffer_Release = pythonapi.PyBuffer_Release
|
25
|
+
except ImportError:
|
26
|
+
pythonapi = None
|
27
|
+
from ctypes.wintypes import LPWSTR, LPCWSTR
|
28
|
+
|
29
|
+
|
30
|
+
c_ssize_p = POINTER(c_ssize_t)
|
31
|
+
|
32
|
+
kernel32 = windll.kernel32
|
33
|
+
GetStdHandle = kernel32.GetStdHandle
|
34
|
+
ReadConsoleW = kernel32.ReadConsoleW
|
35
|
+
WriteConsoleW = kernel32.WriteConsoleW
|
36
|
+
GetLastError = kernel32.GetLastError
|
37
|
+
GetCommandLineW = WINFUNCTYPE(LPWSTR)(
|
38
|
+
('GetCommandLineW', windll.kernel32))
|
39
|
+
CommandLineToArgvW = WINFUNCTYPE(
|
40
|
+
POINTER(LPWSTR), LPCWSTR, POINTER(c_int))(
|
41
|
+
('CommandLineToArgvW', windll.shell32))
|
42
|
+
|
43
|
+
|
44
|
+
STDIN_HANDLE = GetStdHandle(-10)
|
45
|
+
STDOUT_HANDLE = GetStdHandle(-11)
|
46
|
+
STDERR_HANDLE = GetStdHandle(-12)
|
47
|
+
|
48
|
+
|
49
|
+
PyBUF_SIMPLE = 0
|
50
|
+
PyBUF_WRITABLE = 1
|
51
|
+
|
52
|
+
ERROR_SUCCESS = 0
|
53
|
+
ERROR_NOT_ENOUGH_MEMORY = 8
|
54
|
+
ERROR_OPERATION_ABORTED = 995
|
55
|
+
|
56
|
+
STDIN_FILENO = 0
|
57
|
+
STDOUT_FILENO = 1
|
58
|
+
STDERR_FILENO = 2
|
59
|
+
|
60
|
+
EOF = b'\x1a'
|
61
|
+
MAX_BYTES_WRITTEN = 32767
|
62
|
+
|
63
|
+
|
64
|
+
class Py_buffer(ctypes.Structure):
|
65
|
+
_fields_ = [
|
66
|
+
('buf', c_void_p),
|
67
|
+
('obj', py_object),
|
68
|
+
('len', c_ssize_t),
|
69
|
+
('itemsize', c_ssize_t),
|
70
|
+
('readonly', c_int),
|
71
|
+
('ndim', c_int),
|
72
|
+
('format', c_char_p),
|
73
|
+
('shape', c_ssize_p),
|
74
|
+
('strides', c_ssize_p),
|
75
|
+
('suboffsets', c_ssize_p),
|
76
|
+
('internal', c_void_p)
|
77
|
+
]
|
78
|
+
|
79
|
+
if PY2:
|
80
|
+
_fields_.insert(-1, ('smalltable', c_ssize_t * 2))
|
81
|
+
|
82
|
+
|
83
|
+
# On PyPy we cannot get buffers so our ability to operate here is
|
84
|
+
# serverly limited.
|
85
|
+
if pythonapi is None:
|
86
|
+
get_buffer = None
|
87
|
+
else:
|
88
|
+
def get_buffer(obj, writable=False):
|
89
|
+
buf = Py_buffer()
|
90
|
+
flags = PyBUF_WRITABLE if writable else PyBUF_SIMPLE
|
91
|
+
PyObject_GetBuffer(py_object(obj), byref(buf), flags)
|
92
|
+
try:
|
93
|
+
buffer_type = c_char * buf.len
|
94
|
+
return buffer_type.from_address(buf.buf)
|
95
|
+
finally:
|
96
|
+
PyBuffer_Release(byref(buf))
|
97
|
+
|
98
|
+
|
99
|
+
class _WindowsConsoleRawIOBase(io.RawIOBase):
|
100
|
+
|
101
|
+
def __init__(self, handle):
|
102
|
+
self.handle = handle
|
103
|
+
|
104
|
+
def isatty(self):
|
105
|
+
io.RawIOBase.isatty(self)
|
106
|
+
return True
|
107
|
+
|
108
|
+
|
109
|
+
class _WindowsConsoleReader(_WindowsConsoleRawIOBase):
|
110
|
+
|
111
|
+
def readable(self):
|
112
|
+
return True
|
113
|
+
|
114
|
+
def readinto(self, b):
|
115
|
+
bytes_to_be_read = len(b)
|
116
|
+
if not bytes_to_be_read:
|
117
|
+
return 0
|
118
|
+
elif bytes_to_be_read % 2:
|
119
|
+
raise ValueError('cannot read odd number of bytes from '
|
120
|
+
'UTF-16-LE encoded console')
|
121
|
+
|
122
|
+
buffer = get_buffer(b, writable=True)
|
123
|
+
code_units_to_be_read = bytes_to_be_read // 2
|
124
|
+
code_units_read = c_ulong()
|
125
|
+
|
126
|
+
rv = ReadConsoleW(self.handle, buffer, code_units_to_be_read,
|
127
|
+
byref(code_units_read), None)
|
128
|
+
if GetLastError() == ERROR_OPERATION_ABORTED:
|
129
|
+
# wait for KeyboardInterrupt
|
130
|
+
time.sleep(0.1)
|
131
|
+
if not rv:
|
132
|
+
raise OSError('Windows error: %s' % GetLastError())
|
133
|
+
|
134
|
+
if buffer[0] == EOF:
|
135
|
+
return 0
|
136
|
+
return 2 * code_units_read.value
|
137
|
+
|
138
|
+
|
139
|
+
class _WindowsConsoleWriter(_WindowsConsoleRawIOBase):
|
140
|
+
|
141
|
+
def writable(self):
|
142
|
+
return True
|
143
|
+
|
144
|
+
@staticmethod
|
145
|
+
def _get_error_message(errno):
|
146
|
+
if errno == ERROR_SUCCESS:
|
147
|
+
return 'ERROR_SUCCESS'
|
148
|
+
elif errno == ERROR_NOT_ENOUGH_MEMORY:
|
149
|
+
return 'ERROR_NOT_ENOUGH_MEMORY'
|
150
|
+
return 'Windows error %s' % errno
|
151
|
+
|
152
|
+
def write(self, b):
|
153
|
+
bytes_to_be_written = len(b)
|
154
|
+
buf = get_buffer(b)
|
155
|
+
code_units_to_be_written = min(bytes_to_be_written,
|
156
|
+
MAX_BYTES_WRITTEN) // 2
|
157
|
+
code_units_written = c_ulong()
|
158
|
+
|
159
|
+
WriteConsoleW(self.handle, buf, code_units_to_be_written,
|
160
|
+
byref(code_units_written), None)
|
161
|
+
bytes_written = 2 * code_units_written.value
|
162
|
+
|
163
|
+
if bytes_written == 0 and bytes_to_be_written > 0:
|
164
|
+
raise OSError(self._get_error_message(GetLastError()))
|
165
|
+
return bytes_written
|
166
|
+
|
167
|
+
|
168
|
+
class ConsoleStream(object):
|
169
|
+
|
170
|
+
def __init__(self, text_stream, byte_stream):
|
171
|
+
self._text_stream = text_stream
|
172
|
+
self.buffer = byte_stream
|
173
|
+
|
174
|
+
@property
|
175
|
+
def name(self):
|
176
|
+
return self.buffer.name
|
177
|
+
|
178
|
+
def write(self, x):
|
179
|
+
if isinstance(x, text_type):
|
180
|
+
return self._text_stream.write(x)
|
181
|
+
try:
|
182
|
+
self.flush()
|
183
|
+
except Exception:
|
184
|
+
pass
|
185
|
+
return self.buffer.write(x)
|
186
|
+
|
187
|
+
def writelines(self, lines):
|
188
|
+
for line in lines:
|
189
|
+
self.write(line)
|
190
|
+
|
191
|
+
def __getattr__(self, name):
|
192
|
+
return getattr(self._text_stream, name)
|
193
|
+
|
194
|
+
def isatty(self):
|
195
|
+
return self.buffer.isatty()
|
196
|
+
|
197
|
+
def __repr__(self):
|
198
|
+
return '<ConsoleStream name=%r encoding=%r>' % (
|
199
|
+
self.name,
|
200
|
+
self.encoding,
|
201
|
+
)
|
202
|
+
|
203
|
+
|
204
|
+
def _get_text_stdin(buffer_stream):
|
205
|
+
text_stream = _NonClosingTextIOWrapper(
|
206
|
+
io.BufferedReader(_WindowsConsoleReader(STDIN_HANDLE)),
|
207
|
+
'utf-16-le', 'strict', line_buffering=True)
|
208
|
+
return ConsoleStream(text_stream, buffer_stream)
|
209
|
+
|
210
|
+
|
211
|
+
def _get_text_stdout(buffer_stream):
|
212
|
+
text_stream = _NonClosingTextIOWrapper(
|
213
|
+
_WindowsConsoleWriter(STDOUT_HANDLE),
|
214
|
+
'utf-16-le', 'strict', line_buffering=True)
|
215
|
+
return ConsoleStream(text_stream, buffer_stream)
|
216
|
+
|
217
|
+
|
218
|
+
def _get_text_stderr(buffer_stream):
|
219
|
+
text_stream = _NonClosingTextIOWrapper(
|
220
|
+
_WindowsConsoleWriter(STDERR_HANDLE),
|
221
|
+
'utf-16-le', 'strict', line_buffering=True)
|
222
|
+
return ConsoleStream(text_stream, buffer_stream)
|
223
|
+
|
224
|
+
|
225
|
+
if PY2:
|
226
|
+
def _hash_py_argv():
|
227
|
+
return zlib.crc32('\x00'.join(sys.argv[1:]))
|
228
|
+
|
229
|
+
_initial_argv_hash = _hash_py_argv()
|
230
|
+
|
231
|
+
def _get_windows_argv():
|
232
|
+
argc = c_int(0)
|
233
|
+
argv_unicode = CommandLineToArgvW(GetCommandLineW(), byref(argc))
|
234
|
+
argv = [argv_unicode[i] for i in range(0, argc.value)]
|
235
|
+
|
236
|
+
if not hasattr(sys, 'frozen'):
|
237
|
+
argv = argv[1:]
|
238
|
+
while len(argv) > 0:
|
239
|
+
arg = argv[0]
|
240
|
+
if not arg.startswith('-') or arg == '-':
|
241
|
+
break
|
242
|
+
argv = argv[1:]
|
243
|
+
if arg.startswith(('-c', '-m')):
|
244
|
+
break
|
245
|
+
|
246
|
+
return argv[1:]
|
247
|
+
|
248
|
+
|
249
|
+
_stream_factories = {
|
250
|
+
0: _get_text_stdin,
|
251
|
+
1: _get_text_stdout,
|
252
|
+
2: _get_text_stderr,
|
253
|
+
}
|
254
|
+
|
255
|
+
|
256
|
+
def _get_windows_console_stream(f, encoding, errors):
|
257
|
+
if get_buffer is not None and \
|
258
|
+
encoding in ('utf-16-le', None) \
|
259
|
+
and errors in ('strict', None) and \
|
260
|
+
hasattr(f, 'isatty') and f.isatty():
|
261
|
+
func = _stream_factories.get(f.fileno())
|
262
|
+
if func is not None:
|
263
|
+
if not PY2:
|
264
|
+
f = getattr(f, 'buffer')
|
265
|
+
if f is None:
|
266
|
+
return None
|
267
|
+
else:
|
268
|
+
# If we are on Python 2 we need to set the stream that we
|
269
|
+
# deal with to binary mode as otherwise the exercise if a
|
270
|
+
# bit moot. The same problems apply as for
|
271
|
+
# get_binary_stdin and friends from _compat.
|
272
|
+
msvcrt.setmode(f.fileno(), os.O_BINARY)
|
273
|
+
return func(f)
|
Binary file
|