rigid 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (364) hide show
  1. checksums.yaml +7 -0
  2. data/bin/rigid +4 -0
  3. data/rigid +16 -0
  4. data/vendor/PyYAML-3.12.dist-info/DESCRIPTION.rst +12 -0
  5. data/vendor/PyYAML-3.12.dist-info/INSTALLER +1 -0
  6. data/vendor/PyYAML-3.12.dist-info/METADATA +35 -0
  7. data/vendor/PyYAML-3.12.dist-info/RECORD +42 -0
  8. data/vendor/PyYAML-3.12.dist-info/WHEEL +5 -0
  9. data/vendor/PyYAML-3.12.dist-info/metadata.json +1 -0
  10. data/vendor/PyYAML-3.12.dist-info/top_level.txt +2 -0
  11. data/vendor/_yaml.so +0 -0
  12. data/vendor/click/__init__.py +98 -0
  13. data/vendor/click/__init__.pyc +0 -0
  14. data/vendor/click/_bashcomplete.py +83 -0
  15. data/vendor/click/_bashcomplete.pyc +0 -0
  16. data/vendor/click/_compat.py +642 -0
  17. data/vendor/click/_compat.pyc +0 -0
  18. data/vendor/click/_termui_impl.py +547 -0
  19. data/vendor/click/_termui_impl.pyc +0 -0
  20. data/vendor/click/_textwrap.py +38 -0
  21. data/vendor/click/_textwrap.pyc +0 -0
  22. data/vendor/click/_unicodefun.py +119 -0
  23. data/vendor/click/_unicodefun.pyc +0 -0
  24. data/vendor/click/_winconsole.py +273 -0
  25. data/vendor/click/_winconsole.pyc +0 -0
  26. data/vendor/click/core.py +1738 -0
  27. data/vendor/click/core.pyc +0 -0
  28. data/vendor/click/decorators.py +304 -0
  29. data/vendor/click/decorators.pyc +0 -0
  30. data/vendor/click/exceptions.py +201 -0
  31. data/vendor/click/exceptions.pyc +0 -0
  32. data/vendor/click/formatting.py +256 -0
  33. data/vendor/click/formatting.pyc +0 -0
  34. data/vendor/click/globals.py +48 -0
  35. data/vendor/click/globals.pyc +0 -0
  36. data/vendor/click/parser.py +426 -0
  37. data/vendor/click/parser.pyc +0 -0
  38. data/vendor/click/termui.py +539 -0
  39. data/vendor/click/termui.pyc +0 -0
  40. data/vendor/click/testing.py +322 -0
  41. data/vendor/click/testing.pyc +0 -0
  42. data/vendor/click/types.py +550 -0
  43. data/vendor/click/types.pyc +0 -0
  44. data/vendor/click/utils.py +415 -0
  45. data/vendor/click/utils.pyc +0 -0
  46. data/vendor/click-6.6.dist-info/DESCRIPTION.rst +3 -0
  47. data/vendor/click-6.6.dist-info/INSTALLER +1 -0
  48. data/vendor/click-6.6.dist-info/METADATA +16 -0
  49. data/vendor/click-6.6.dist-info/RECORD +41 -0
  50. data/vendor/click-6.6.dist-info/WHEEL +6 -0
  51. data/vendor/click-6.6.dist-info/metadata.json +1 -0
  52. data/vendor/click-6.6.dist-info/top_level.txt +1 -0
  53. data/vendor/easy_install.py +5 -0
  54. data/vendor/easy_install.pyc +0 -0
  55. data/vendor/pip-9.0.1.dist-info/DESCRIPTION.rst +39 -0
  56. data/vendor/pip-9.0.1.dist-info/INSTALLER +1 -0
  57. data/vendor/pip-9.0.1.dist-info/METADATA +69 -0
  58. data/vendor/pip-9.0.1.dist-info/RECORD +501 -0
  59. data/vendor/pip-9.0.1.dist-info/WHEEL +6 -0
  60. data/vendor/pip-9.0.1.dist-info/entry_points.txt +5 -0
  61. data/vendor/pip-9.0.1.dist-info/metadata.json +1 -0
  62. data/vendor/pip-9.0.1.dist-info/top_level.txt +1 -0
  63. data/vendor/pkg_resources/__init__.py +3051 -0
  64. data/vendor/pkg_resources/__init__.pyc +0 -0
  65. data/vendor/pkg_resources/_vendor/__init__.py +0 -0
  66. data/vendor/pkg_resources/_vendor/__init__.pyc +0 -0
  67. data/vendor/pkg_resources/_vendor/appdirs.py +552 -0
  68. data/vendor/pkg_resources/_vendor/appdirs.pyc +0 -0
  69. data/vendor/pkg_resources/_vendor/packaging/__about__.py +21 -0
  70. data/vendor/pkg_resources/_vendor/packaging/__about__.pyc +0 -0
  71. data/vendor/pkg_resources/_vendor/packaging/__init__.py +14 -0
  72. data/vendor/pkg_resources/_vendor/packaging/__init__.pyc +0 -0
  73. data/vendor/pkg_resources/_vendor/packaging/_compat.py +30 -0
  74. data/vendor/pkg_resources/_vendor/packaging/_compat.pyc +0 -0
  75. data/vendor/pkg_resources/_vendor/packaging/_structures.py +68 -0
  76. data/vendor/pkg_resources/_vendor/packaging/_structures.pyc +0 -0
  77. data/vendor/pkg_resources/_vendor/packaging/markers.py +287 -0
  78. data/vendor/pkg_resources/_vendor/packaging/markers.pyc +0 -0
  79. data/vendor/pkg_resources/_vendor/packaging/requirements.py +127 -0
  80. data/vendor/pkg_resources/_vendor/packaging/requirements.pyc +0 -0
  81. data/vendor/pkg_resources/_vendor/packaging/specifiers.py +774 -0
  82. data/vendor/pkg_resources/_vendor/packaging/specifiers.pyc +0 -0
  83. data/vendor/pkg_resources/_vendor/packaging/utils.py +14 -0
  84. data/vendor/pkg_resources/_vendor/packaging/utils.pyc +0 -0
  85. data/vendor/pkg_resources/_vendor/packaging/version.py +393 -0
  86. data/vendor/pkg_resources/_vendor/packaging/version.pyc +0 -0
  87. data/vendor/pkg_resources/_vendor/pyparsing.py +5696 -0
  88. data/vendor/pkg_resources/_vendor/pyparsing.pyc +0 -0
  89. data/vendor/pkg_resources/_vendor/six.py +868 -0
  90. data/vendor/pkg_resources/_vendor/six.pyc +0 -0
  91. data/vendor/pkg_resources/extern/__init__.py +73 -0
  92. data/vendor/pkg_resources/extern/__init__.pyc +0 -0
  93. data/vendor/requests/__init__.py +86 -0
  94. data/vendor/requests/__init__.pyc +0 -0
  95. data/vendor/requests/adapters.py +503 -0
  96. data/vendor/requests/adapters.pyc +0 -0
  97. data/vendor/requests/api.py +148 -0
  98. data/vendor/requests/api.pyc +0 -0
  99. data/vendor/requests/auth.py +252 -0
  100. data/vendor/requests/auth.pyc +0 -0
  101. data/vendor/requests/cacert.pem +5616 -0
  102. data/vendor/requests/certs.py +25 -0
  103. data/vendor/requests/certs.pyc +0 -0
  104. data/vendor/requests/compat.py +66 -0
  105. data/vendor/requests/compat.pyc +0 -0
  106. data/vendor/requests/cookies.py +540 -0
  107. data/vendor/requests/cookies.pyc +0 -0
  108. data/vendor/requests/exceptions.py +114 -0
  109. data/vendor/requests/exceptions.pyc +0 -0
  110. data/vendor/requests/hooks.py +34 -0
  111. data/vendor/requests/hooks.pyc +0 -0
  112. data/vendor/requests/models.py +873 -0
  113. data/vendor/requests/models.pyc +0 -0
  114. data/vendor/requests/packages/__init__.py +36 -0
  115. data/vendor/requests/packages/__init__.pyc +0 -0
  116. data/vendor/requests/packages/chardet/__init__.py +32 -0
  117. data/vendor/requests/packages/chardet/__init__.pyc +0 -0
  118. data/vendor/requests/packages/chardet/big5freq.py +925 -0
  119. data/vendor/requests/packages/chardet/big5freq.pyc +0 -0
  120. data/vendor/requests/packages/chardet/big5prober.py +42 -0
  121. data/vendor/requests/packages/chardet/big5prober.pyc +0 -0
  122. data/vendor/requests/packages/chardet/chardetect.py +80 -0
  123. data/vendor/requests/packages/chardet/chardetect.pyc +0 -0
  124. data/vendor/requests/packages/chardet/chardistribution.py +231 -0
  125. data/vendor/requests/packages/chardet/chardistribution.pyc +0 -0
  126. data/vendor/requests/packages/chardet/charsetgroupprober.py +106 -0
  127. data/vendor/requests/packages/chardet/charsetgroupprober.pyc +0 -0
  128. data/vendor/requests/packages/chardet/charsetprober.py +62 -0
  129. data/vendor/requests/packages/chardet/charsetprober.pyc +0 -0
  130. data/vendor/requests/packages/chardet/codingstatemachine.py +61 -0
  131. data/vendor/requests/packages/chardet/codingstatemachine.pyc +0 -0
  132. data/vendor/requests/packages/chardet/compat.py +34 -0
  133. data/vendor/requests/packages/chardet/compat.pyc +0 -0
  134. data/vendor/requests/packages/chardet/constants.py +39 -0
  135. data/vendor/requests/packages/chardet/constants.pyc +0 -0
  136. data/vendor/requests/packages/chardet/cp949prober.py +44 -0
  137. data/vendor/requests/packages/chardet/cp949prober.pyc +0 -0
  138. data/vendor/requests/packages/chardet/escprober.py +86 -0
  139. data/vendor/requests/packages/chardet/escprober.pyc +0 -0
  140. data/vendor/requests/packages/chardet/escsm.py +242 -0
  141. data/vendor/requests/packages/chardet/escsm.pyc +0 -0
  142. data/vendor/requests/packages/chardet/eucjpprober.py +90 -0
  143. data/vendor/requests/packages/chardet/eucjpprober.pyc +0 -0
  144. data/vendor/requests/packages/chardet/euckrfreq.py +596 -0
  145. data/vendor/requests/packages/chardet/euckrfreq.pyc +0 -0
  146. data/vendor/requests/packages/chardet/euckrprober.py +42 -0
  147. data/vendor/requests/packages/chardet/euckrprober.pyc +0 -0
  148. data/vendor/requests/packages/chardet/euctwfreq.py +428 -0
  149. data/vendor/requests/packages/chardet/euctwfreq.pyc +0 -0
  150. data/vendor/requests/packages/chardet/euctwprober.py +41 -0
  151. data/vendor/requests/packages/chardet/euctwprober.pyc +0 -0
  152. data/vendor/requests/packages/chardet/gb2312freq.py +472 -0
  153. data/vendor/requests/packages/chardet/gb2312freq.pyc +0 -0
  154. data/vendor/requests/packages/chardet/gb2312prober.py +41 -0
  155. data/vendor/requests/packages/chardet/gb2312prober.pyc +0 -0
  156. data/vendor/requests/packages/chardet/hebrewprober.py +283 -0
  157. data/vendor/requests/packages/chardet/hebrewprober.pyc +0 -0
  158. data/vendor/requests/packages/chardet/jisfreq.py +569 -0
  159. data/vendor/requests/packages/chardet/jisfreq.pyc +0 -0
  160. data/vendor/requests/packages/chardet/jpcntx.py +227 -0
  161. data/vendor/requests/packages/chardet/jpcntx.pyc +0 -0
  162. data/vendor/requests/packages/chardet/langbulgarianmodel.py +229 -0
  163. data/vendor/requests/packages/chardet/langbulgarianmodel.pyc +0 -0
  164. data/vendor/requests/packages/chardet/langcyrillicmodel.py +329 -0
  165. data/vendor/requests/packages/chardet/langcyrillicmodel.pyc +0 -0
  166. data/vendor/requests/packages/chardet/langgreekmodel.py +225 -0
  167. data/vendor/requests/packages/chardet/langgreekmodel.pyc +0 -0
  168. data/vendor/requests/packages/chardet/langhebrewmodel.py +201 -0
  169. data/vendor/requests/packages/chardet/langhebrewmodel.pyc +0 -0
  170. data/vendor/requests/packages/chardet/langhungarianmodel.py +225 -0
  171. data/vendor/requests/packages/chardet/langhungarianmodel.pyc +0 -0
  172. data/vendor/requests/packages/chardet/langthaimodel.py +200 -0
  173. data/vendor/requests/packages/chardet/langthaimodel.pyc +0 -0
  174. data/vendor/requests/packages/chardet/latin1prober.py +139 -0
  175. data/vendor/requests/packages/chardet/latin1prober.pyc +0 -0
  176. data/vendor/requests/packages/chardet/mbcharsetprober.py +86 -0
  177. data/vendor/requests/packages/chardet/mbcharsetprober.pyc +0 -0
  178. data/vendor/requests/packages/chardet/mbcsgroupprober.py +54 -0
  179. data/vendor/requests/packages/chardet/mbcsgroupprober.pyc +0 -0
  180. data/vendor/requests/packages/chardet/mbcssm.py +572 -0
  181. data/vendor/requests/packages/chardet/mbcssm.pyc +0 -0
  182. data/vendor/requests/packages/chardet/sbcharsetprober.py +120 -0
  183. data/vendor/requests/packages/chardet/sbcharsetprober.pyc +0 -0
  184. data/vendor/requests/packages/chardet/sbcsgroupprober.py +69 -0
  185. data/vendor/requests/packages/chardet/sbcsgroupprober.pyc +0 -0
  186. data/vendor/requests/packages/chardet/sjisprober.py +91 -0
  187. data/vendor/requests/packages/chardet/sjisprober.pyc +0 -0
  188. data/vendor/requests/packages/chardet/universaldetector.py +170 -0
  189. data/vendor/requests/packages/chardet/universaldetector.pyc +0 -0
  190. data/vendor/requests/packages/chardet/utf8prober.py +76 -0
  191. data/vendor/requests/packages/chardet/utf8prober.pyc +0 -0
  192. data/vendor/requests/packages/urllib3/__init__.py +96 -0
  193. data/vendor/requests/packages/urllib3/__init__.pyc +0 -0
  194. data/vendor/requests/packages/urllib3/_collections.py +324 -0
  195. data/vendor/requests/packages/urllib3/_collections.pyc +0 -0
  196. data/vendor/requests/packages/urllib3/connection.py +330 -0
  197. data/vendor/requests/packages/urllib3/connection.pyc +0 -0
  198. data/vendor/requests/packages/urllib3/connectionpool.py +866 -0
  199. data/vendor/requests/packages/urllib3/connectionpool.pyc +0 -0
  200. data/vendor/requests/packages/urllib3/contrib/__init__.py +0 -0
  201. data/vendor/requests/packages/urllib3/contrib/__init__.pyc +0 -0
  202. data/vendor/requests/packages/urllib3/contrib/appengine.py +231 -0
  203. data/vendor/requests/packages/urllib3/contrib/appengine.pyc +0 -0
  204. data/vendor/requests/packages/urllib3/contrib/ntlmpool.py +115 -0
  205. data/vendor/requests/packages/urllib3/contrib/ntlmpool.pyc +0 -0
  206. data/vendor/requests/packages/urllib3/contrib/pyopenssl.py +358 -0
  207. data/vendor/requests/packages/urllib3/contrib/pyopenssl.pyc +0 -0
  208. data/vendor/requests/packages/urllib3/contrib/socks.py +172 -0
  209. data/vendor/requests/packages/urllib3/contrib/socks.pyc +0 -0
  210. data/vendor/requests/packages/urllib3/exceptions.py +209 -0
  211. data/vendor/requests/packages/urllib3/exceptions.pyc +0 -0
  212. data/vendor/requests/packages/urllib3/fields.py +178 -0
  213. data/vendor/requests/packages/urllib3/fields.pyc +0 -0
  214. data/vendor/requests/packages/urllib3/filepost.py +94 -0
  215. data/vendor/requests/packages/urllib3/filepost.pyc +0 -0
  216. data/vendor/requests/packages/urllib3/packages/__init__.py +5 -0
  217. data/vendor/requests/packages/urllib3/packages/__init__.pyc +0 -0
  218. data/vendor/requests/packages/urllib3/packages/ordered_dict.py +259 -0
  219. data/vendor/requests/packages/urllib3/packages/ordered_dict.pyc +0 -0
  220. data/vendor/requests/packages/urllib3/packages/six.py +868 -0
  221. data/vendor/requests/packages/urllib3/packages/six.pyc +0 -0
  222. data/vendor/requests/packages/urllib3/packages/ssl_match_hostname/__init__.py +13 -0
  223. data/vendor/requests/packages/urllib3/packages/ssl_match_hostname/__init__.pyc +0 -0
  224. data/vendor/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.py +105 -0
  225. data/vendor/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.pyc +0 -0
  226. data/vendor/requests/packages/urllib3/poolmanager.py +367 -0
  227. data/vendor/requests/packages/urllib3/poolmanager.pyc +0 -0
  228. data/vendor/requests/packages/urllib3/request.py +151 -0
  229. data/vendor/requests/packages/urllib3/request.pyc +0 -0
  230. data/vendor/requests/packages/urllib3/response.py +530 -0
  231. data/vendor/requests/packages/urllib3/response.pyc +0 -0
  232. data/vendor/requests/packages/urllib3/util/__init__.py +46 -0
  233. data/vendor/requests/packages/urllib3/util/__init__.pyc +0 -0
  234. data/vendor/requests/packages/urllib3/util/connection.py +144 -0
  235. data/vendor/requests/packages/urllib3/util/connection.pyc +0 -0
  236. data/vendor/requests/packages/urllib3/util/request.py +72 -0
  237. data/vendor/requests/packages/urllib3/util/request.pyc +0 -0
  238. data/vendor/requests/packages/urllib3/util/response.py +74 -0
  239. data/vendor/requests/packages/urllib3/util/response.pyc +0 -0
  240. data/vendor/requests/packages/urllib3/util/retry.py +300 -0
  241. data/vendor/requests/packages/urllib3/util/retry.pyc +0 -0
  242. data/vendor/requests/packages/urllib3/util/ssl_.py +320 -0
  243. data/vendor/requests/packages/urllib3/util/ssl_.pyc +0 -0
  244. data/vendor/requests/packages/urllib3/util/timeout.py +242 -0
  245. data/vendor/requests/packages/urllib3/util/timeout.pyc +0 -0
  246. data/vendor/requests/packages/urllib3/util/url.py +217 -0
  247. data/vendor/requests/packages/urllib3/util/url.pyc +0 -0
  248. data/vendor/requests/sessions.py +712 -0
  249. data/vendor/requests/sessions.pyc +0 -0
  250. data/vendor/requests/status_codes.py +91 -0
  251. data/vendor/requests/status_codes.pyc +0 -0
  252. data/vendor/requests/structures.py +105 -0
  253. data/vendor/requests/structures.pyc +0 -0
  254. data/vendor/requests/utils.py +817 -0
  255. data/vendor/requests/utils.pyc +0 -0
  256. data/vendor/requests-2.11.1.dist-info/DESCRIPTION.rst +1294 -0
  257. data/vendor/requests-2.11.1.dist-info/INSTALLER +1 -0
  258. data/vendor/requests-2.11.1.dist-info/METADATA +1323 -0
  259. data/vendor/requests-2.11.1.dist-info/RECORD +170 -0
  260. data/vendor/requests-2.11.1.dist-info/WHEEL +6 -0
  261. data/vendor/requests-2.11.1.dist-info/metadata.json +1 -0
  262. data/vendor/requests-2.11.1.dist-info/top_level.txt +1 -0
  263. data/vendor/rigid/__init__.py +1 -0
  264. data/vendor/rigid/__init__.pyc +0 -0
  265. data/vendor/rigid/api.py +129 -0
  266. data/vendor/rigid/api.pyc +0 -0
  267. data/vendor/rigid/commands/__init__.py +260 -0
  268. data/vendor/rigid/commands/__init__.pyc +0 -0
  269. data/vendor/rigid/commands/deploy.py +0 -0
  270. data/vendor/rigid/commands/deploy.pyc +0 -0
  271. data/vendor/rigid/deploy.py +70 -0
  272. data/vendor/rigid/deploy.pyc +0 -0
  273. data/vendor/rigid/file_scanner.py +63 -0
  274. data/vendor/rigid/file_scanner.pyc +0 -0
  275. data/vendor/rigid/utils.py +17 -0
  276. data/vendor/rigid/utils.pyc +0 -0
  277. data/vendor/rigid-0.2.0.dist-info/DESCRIPTION.rst +3 -0
  278. data/vendor/rigid-0.2.0.dist-info/INSTALLER +1 -0
  279. data/vendor/rigid-0.2.0.dist-info/METADATA +23 -0
  280. data/vendor/rigid-0.2.0.dist-info/RECORD +49 -0
  281. data/vendor/rigid-0.2.0.dist-info/WHEEL +5 -0
  282. data/vendor/rigid-0.2.0.dist-info/entry_points.txt +3 -0
  283. data/vendor/rigid-0.2.0.dist-info/metadata.json +1 -0
  284. data/vendor/rigid-0.2.0.dist-info/top_level.txt +2 -0
  285. data/vendor/setuptools-28.8.0.dist-info/DESCRIPTION.rst +243 -0
  286. data/vendor/setuptools-28.8.0.dist-info/INSTALLER +1 -0
  287. data/vendor/setuptools-28.8.0.dist-info/METADATA +272 -0
  288. data/vendor/setuptools-28.8.0.dist-info/RECORD +143 -0
  289. data/vendor/setuptools-28.8.0.dist-info/WHEEL +6 -0
  290. data/vendor/setuptools-28.8.0.dist-info/dependency_links.txt +2 -0
  291. data/vendor/setuptools-28.8.0.dist-info/entry_points.txt +63 -0
  292. data/vendor/setuptools-28.8.0.dist-info/metadata.json +1 -0
  293. data/vendor/setuptools-28.8.0.dist-info/top_level.txt +3 -0
  294. data/vendor/setuptools-28.8.0.dist-info/zip-safe +1 -0
  295. data/vendor/tests/__init__.py +0 -0
  296. data/vendor/tests/__init__.pyc +0 -0
  297. data/vendor/tests/integration/__init__.py +0 -0
  298. data/vendor/tests/integration/__init__.pyc +0 -0
  299. data/vendor/tests/integration/test_app.py +63 -0
  300. data/vendor/tests/integration/test_app.pyc +0 -0
  301. data/vendor/tests/integration/test_apps.py +27 -0
  302. data/vendor/tests/integration/test_apps.pyc +0 -0
  303. data/vendor/tests/integration/test_deploy.py +128 -0
  304. data/vendor/tests/integration/test_deploy.pyc +0 -0
  305. data/vendor/tests/integration/test_domains.py +35 -0
  306. data/vendor/tests/integration/test_domains.pyc +0 -0
  307. data/vendor/tests/integration/test_login.py +37 -0
  308. data/vendor/tests/integration/test_login.pyc +0 -0
  309. data/vendor/tests/integration/test_promote.py +24 -0
  310. data/vendor/tests/integration/test_promote.pyc +0 -0
  311. data/vendor/tests/integration/test_token.py +33 -0
  312. data/vendor/tests/integration/test_token.pyc +0 -0
  313. data/vendor/tests/integration/test_whoami.py +24 -0
  314. data/vendor/tests/integration/test_whoami.pyc +0 -0
  315. data/vendor/tests/test_deploy.py +33 -0
  316. data/vendor/tests/test_deploy.pyc +0 -0
  317. data/vendor/tests/test_file_scanner.py +89 -0
  318. data/vendor/tests/test_file_scanner.pyc +0 -0
  319. data/vendor/tests/utils.py +78 -0
  320. data/vendor/tests/utils.pyc +0 -0
  321. data/vendor/wheel-0.30.0a0.dist-info/DESCRIPTION.rst +325 -0
  322. data/vendor/wheel-0.30.0a0.dist-info/INSTALLER +1 -0
  323. data/vendor/wheel-0.30.0a0.dist-info/LICENSE.txt +22 -0
  324. data/vendor/wheel-0.30.0a0.dist-info/METADATA +357 -0
  325. data/vendor/wheel-0.30.0a0.dist-info/RECORD +86 -0
  326. data/vendor/wheel-0.30.0a0.dist-info/WHEEL +6 -0
  327. data/vendor/wheel-0.30.0a0.dist-info/entry_points.txt +6 -0
  328. data/vendor/wheel-0.30.0a0.dist-info/metadata.json +1 -0
  329. data/vendor/wheel-0.30.0a0.dist-info/top_level.txt +1 -0
  330. data/vendor/yaml/__init__.py +315 -0
  331. data/vendor/yaml/__init__.pyc +0 -0
  332. data/vendor/yaml/composer.py +139 -0
  333. data/vendor/yaml/composer.pyc +0 -0
  334. data/vendor/yaml/constructor.py +675 -0
  335. data/vendor/yaml/constructor.pyc +0 -0
  336. data/vendor/yaml/cyaml.py +85 -0
  337. data/vendor/yaml/cyaml.pyc +0 -0
  338. data/vendor/yaml/dumper.py +62 -0
  339. data/vendor/yaml/dumper.pyc +0 -0
  340. data/vendor/yaml/emitter.py +1140 -0
  341. data/vendor/yaml/emitter.pyc +0 -0
  342. data/vendor/yaml/error.py +75 -0
  343. data/vendor/yaml/error.pyc +0 -0
  344. data/vendor/yaml/events.py +86 -0
  345. data/vendor/yaml/events.pyc +0 -0
  346. data/vendor/yaml/loader.py +40 -0
  347. data/vendor/yaml/loader.pyc +0 -0
  348. data/vendor/yaml/nodes.py +49 -0
  349. data/vendor/yaml/nodes.pyc +0 -0
  350. data/vendor/yaml/parser.py +589 -0
  351. data/vendor/yaml/parser.pyc +0 -0
  352. data/vendor/yaml/reader.py +190 -0
  353. data/vendor/yaml/reader.pyc +0 -0
  354. data/vendor/yaml/representer.py +486 -0
  355. data/vendor/yaml/representer.pyc +0 -0
  356. data/vendor/yaml/resolver.py +227 -0
  357. data/vendor/yaml/resolver.pyc +0 -0
  358. data/vendor/yaml/scanner.py +1453 -0
  359. data/vendor/yaml/scanner.pyc +0 -0
  360. data/vendor/yaml/serializer.py +111 -0
  361. data/vendor/yaml/serializer.pyc +0 -0
  362. data/vendor/yaml/tokens.py +104 -0
  363. data/vendor/yaml/tokens.pyc +0 -0
  364. metadata +407 -0
@@ -0,0 +1,642 @@
1
+ import re
2
+ import io
3
+ import os
4
+ import sys
5
+ import codecs
6
+ from weakref import WeakKeyDictionary
7
+
8
+
9
+ PY2 = sys.version_info[0] == 2
10
+ WIN = sys.platform.startswith('win')
11
+ DEFAULT_COLUMNS = 80
12
+
13
+
14
+ _ansi_re = re.compile('\033\[((?:\d|;)*)([a-zA-Z])')
15
+
16
+
17
+ def get_filesystem_encoding():
18
+ return sys.getfilesystemencoding() or sys.getdefaultencoding()
19
+
20
+
21
+ def _make_text_stream(stream, encoding, errors):
22
+ if encoding is None:
23
+ encoding = get_best_encoding(stream)
24
+ if errors is None:
25
+ errors = 'replace'
26
+ return _NonClosingTextIOWrapper(stream, encoding, errors,
27
+ line_buffering=True)
28
+
29
+
30
+ def is_ascii_encoding(encoding):
31
+ """Checks if a given encoding is ascii."""
32
+ try:
33
+ return codecs.lookup(encoding).name == 'ascii'
34
+ except LookupError:
35
+ return False
36
+
37
+
38
+ def get_best_encoding(stream):
39
+ """Returns the default stream encoding if not found."""
40
+ rv = getattr(stream, 'encoding', None) or sys.getdefaultencoding()
41
+ if is_ascii_encoding(rv):
42
+ return 'utf-8'
43
+ return rv
44
+
45
+
46
+ class _NonClosingTextIOWrapper(io.TextIOWrapper):
47
+
48
+ def __init__(self, stream, encoding, errors, **extra):
49
+ self._stream = stream = _FixupStream(stream)
50
+ io.TextIOWrapper.__init__(self, stream, encoding, errors, **extra)
51
+
52
+ # The io module is a place where the Python 3 text behavior
53
+ # was forced upon Python 2, so we need to unbreak
54
+ # it to look like Python 2.
55
+ if PY2:
56
+ def write(self, x):
57
+ if isinstance(x, str) or is_bytes(x):
58
+ try:
59
+ self.flush()
60
+ except Exception:
61
+ pass
62
+ return self.buffer.write(str(x))
63
+ return io.TextIOWrapper.write(self, x)
64
+
65
+ def writelines(self, lines):
66
+ for line in lines:
67
+ self.write(line)
68
+
69
+ def __del__(self):
70
+ try:
71
+ self.detach()
72
+ except Exception:
73
+ pass
74
+
75
+ def isatty(self):
76
+ # https://bitbucket.org/pypy/pypy/issue/1803
77
+ return self._stream.isatty()
78
+
79
+
80
+ class _FixupStream(object):
81
+ """The new io interface needs more from streams than streams
82
+ traditionally implement. As such, this fix-up code is necessary in
83
+ some circumstances.
84
+ """
85
+
86
+ def __init__(self, stream):
87
+ self._stream = stream
88
+
89
+ def __getattr__(self, name):
90
+ return getattr(self._stream, name)
91
+
92
+ def read1(self, size):
93
+ f = getattr(self._stream, 'read1', None)
94
+ if f is not None:
95
+ return f(size)
96
+ # We only dispatch to readline instead of read in Python 2 as we
97
+ # do not want cause problems with the different implementation
98
+ # of line buffering.
99
+ if PY2:
100
+ return self._stream.readline(size)
101
+ return self._stream.read(size)
102
+
103
+ def readable(self):
104
+ x = getattr(self._stream, 'readable', None)
105
+ if x is not None:
106
+ return x()
107
+ try:
108
+ self._stream.read(0)
109
+ except Exception:
110
+ return False
111
+ return True
112
+
113
+ def writable(self):
114
+ x = getattr(self._stream, 'writable', None)
115
+ if x is not None:
116
+ return x()
117
+ try:
118
+ self._stream.write('')
119
+ except Exception:
120
+ try:
121
+ self._stream.write(b'')
122
+ except Exception:
123
+ return False
124
+ return True
125
+
126
+ def seekable(self):
127
+ x = getattr(self._stream, 'seekable', None)
128
+ if x is not None:
129
+ return x()
130
+ try:
131
+ self._stream.seek(self._stream.tell())
132
+ except Exception:
133
+ return False
134
+ return True
135
+
136
+
137
+ if PY2:
138
+ text_type = unicode
139
+ bytes = str
140
+ raw_input = raw_input
141
+ string_types = (str, unicode)
142
+ iteritems = lambda x: x.iteritems()
143
+ range_type = xrange
144
+
145
+ def is_bytes(x):
146
+ return isinstance(x, (buffer, bytearray))
147
+
148
+ _identifier_re = re.compile(r'^[a-zA-Z_][a-zA-Z0-9_]*$')
149
+
150
+ # For Windows, we need to force stdout/stdin/stderr to binary if it's
151
+ # fetched for that. This obviously is not the most correct way to do
152
+ # it as it changes global state. Unfortunately, there does not seem to
153
+ # be a clear better way to do it as just reopening the file in binary
154
+ # mode does not change anything.
155
+ #
156
+ # An option would be to do what Python 3 does and to open the file as
157
+ # binary only, patch it back to the system, and then use a wrapper
158
+ # stream that converts newlines. It's not quite clear what's the
159
+ # correct option here.
160
+ #
161
+ # This code also lives in _winconsole for the fallback to the console
162
+ # emulation stream.
163
+ if WIN:
164
+ import msvcrt
165
+ def set_binary_mode(f):
166
+ try:
167
+ fileno = f.fileno()
168
+ except Exception:
169
+ pass
170
+ else:
171
+ msvcrt.setmode(fileno, os.O_BINARY)
172
+ return f
173
+ else:
174
+ set_binary_mode = lambda x: x
175
+
176
+ def isidentifier(x):
177
+ return _identifier_re.search(x) is not None
178
+
179
+ def get_binary_stdin():
180
+ return set_binary_mode(sys.stdin)
181
+
182
+ def get_binary_stdout():
183
+ return set_binary_mode(sys.stdout)
184
+
185
+ def get_binary_stderr():
186
+ return set_binary_mode(sys.stderr)
187
+
188
+ def get_text_stdin(encoding=None, errors=None):
189
+ rv = _get_windows_console_stream(sys.stdin, encoding, errors)
190
+ if rv is not None:
191
+ return rv
192
+ return _make_text_stream(sys.stdin, encoding, errors)
193
+
194
+ def get_text_stdout(encoding=None, errors=None):
195
+ rv = _get_windows_console_stream(sys.stdout, encoding, errors)
196
+ if rv is not None:
197
+ return rv
198
+ return _make_text_stream(sys.stdout, encoding, errors)
199
+
200
+ def get_text_stderr(encoding=None, errors=None):
201
+ rv = _get_windows_console_stream(sys.stderr, encoding, errors)
202
+ if rv is not None:
203
+ return rv
204
+ return _make_text_stream(sys.stderr, encoding, errors)
205
+
206
+ def filename_to_ui(value):
207
+ if isinstance(value, bytes):
208
+ value = value.decode(get_filesystem_encoding(), 'replace')
209
+ return value
210
+ else:
211
+ import io
212
+ text_type = str
213
+ raw_input = input
214
+ string_types = (str,)
215
+ range_type = range
216
+ isidentifier = lambda x: x.isidentifier()
217
+ iteritems = lambda x: iter(x.items())
218
+
219
+ def is_bytes(x):
220
+ return isinstance(x, (bytes, memoryview, bytearray))
221
+
222
+ def _is_binary_reader(stream, default=False):
223
+ try:
224
+ return isinstance(stream.read(0), bytes)
225
+ except Exception:
226
+ return default
227
+ # This happens in some cases where the stream was already
228
+ # closed. In this case, we assume the default.
229
+
230
+ def _is_binary_writer(stream, default=False):
231
+ try:
232
+ stream.write(b'')
233
+ except Exception:
234
+ try:
235
+ stream.write('')
236
+ return False
237
+ except Exception:
238
+ pass
239
+ return default
240
+ return True
241
+
242
+ def _find_binary_reader(stream):
243
+ # We need to figure out if the given stream is already binary.
244
+ # This can happen because the official docs recommend detaching
245
+ # the streams to get binary streams. Some code might do this, so
246
+ # we need to deal with this case explicitly.
247
+ if _is_binary_reader(stream, False):
248
+ return stream
249
+
250
+ buf = getattr(stream, 'buffer', None)
251
+
252
+ # Same situation here; this time we assume that the buffer is
253
+ # actually binary in case it's closed.
254
+ if buf is not None and _is_binary_reader(buf, True):
255
+ return buf
256
+
257
+ def _find_binary_writer(stream):
258
+ # We need to figure out if the given stream is already binary.
259
+ # This can happen because the official docs recommend detatching
260
+ # the streams to get binary streams. Some code might do this, so
261
+ # we need to deal with this case explicitly.
262
+ if _is_binary_writer(stream, False):
263
+ return stream
264
+
265
+ buf = getattr(stream, 'buffer', None)
266
+
267
+ # Same situation here; this time we assume that the buffer is
268
+ # actually binary in case it's closed.
269
+ if buf is not None and _is_binary_writer(buf, True):
270
+ return buf
271
+
272
+ def _stream_is_misconfigured(stream):
273
+ """A stream is misconfigured if its encoding is ASCII."""
274
+ # If the stream does not have an encoding set, we assume it's set
275
+ # to ASCII. This appears to happen in certain unittest
276
+ # environments. It's not quite clear what the correct behavior is
277
+ # but this at least will force Click to recover somehow.
278
+ return is_ascii_encoding(getattr(stream, 'encoding', None) or 'ascii')
279
+
280
+ def _is_compatible_text_stream(stream, encoding, errors):
281
+ stream_encoding = getattr(stream, 'encoding', None)
282
+ stream_errors = getattr(stream, 'errors', None)
283
+
284
+ # Perfect match.
285
+ if stream_encoding == encoding and stream_errors == errors:
286
+ return True
287
+
288
+ # Otherwise, it's only a compatible stream if we did not ask for
289
+ # an encoding.
290
+ if encoding is None:
291
+ return stream_encoding is not None
292
+
293
+ return False
294
+
295
+ def _force_correct_text_reader(text_reader, encoding, errors):
296
+ if _is_binary_reader(text_reader, False):
297
+ binary_reader = text_reader
298
+ else:
299
+ # If there is no target encoding set, we need to verify that the
300
+ # reader is not actually misconfigured.
301
+ if encoding is None and not _stream_is_misconfigured(text_reader):
302
+ return text_reader
303
+
304
+ if _is_compatible_text_stream(text_reader, encoding, errors):
305
+ return text_reader
306
+
307
+ # If the reader has no encoding, we try to find the underlying
308
+ # binary reader for it. If that fails because the environment is
309
+ # misconfigured, we silently go with the same reader because this
310
+ # is too common to happen. In that case, mojibake is better than
311
+ # exceptions.
312
+ binary_reader = _find_binary_reader(text_reader)
313
+ if binary_reader is None:
314
+ return text_reader
315
+
316
+ # At this point, we default the errors to replace instead of strict
317
+ # because nobody handles those errors anyways and at this point
318
+ # we're so fundamentally fucked that nothing can repair it.
319
+ if errors is None:
320
+ errors = 'replace'
321
+ return _make_text_stream(binary_reader, encoding, errors)
322
+
323
+ def _force_correct_text_writer(text_writer, encoding, errors):
324
+ if _is_binary_writer(text_writer, False):
325
+ binary_writer = text_writer
326
+ else:
327
+ # If there is no target encoding set, we need to verify that the
328
+ # writer is not actually misconfigured.
329
+ if encoding is None and not _stream_is_misconfigured(text_writer):
330
+ return text_writer
331
+
332
+ if _is_compatible_text_stream(text_writer, encoding, errors):
333
+ return text_writer
334
+
335
+ # If the writer has no encoding, we try to find the underlying
336
+ # binary writer for it. If that fails because the environment is
337
+ # misconfigured, we silently go with the same writer because this
338
+ # is too common to happen. In that case, mojibake is better than
339
+ # exceptions.
340
+ binary_writer = _find_binary_writer(text_writer)
341
+ if binary_writer is None:
342
+ return text_writer
343
+
344
+ # At this point, we default the errors to replace instead of strict
345
+ # because nobody handles those errors anyways and at this point
346
+ # we're so fundamentally fucked that nothing can repair it.
347
+ if errors is None:
348
+ errors = 'replace'
349
+ return _make_text_stream(binary_writer, encoding, errors)
350
+
351
+ def get_binary_stdin():
352
+ reader = _find_binary_reader(sys.stdin)
353
+ if reader is None:
354
+ raise RuntimeError('Was not able to determine binary '
355
+ 'stream for sys.stdin.')
356
+ return reader
357
+
358
+ def get_binary_stdout():
359
+ writer = _find_binary_writer(sys.stdout)
360
+ if writer is None:
361
+ raise RuntimeError('Was not able to determine binary '
362
+ 'stream for sys.stdout.')
363
+ return writer
364
+
365
+ def get_binary_stderr():
366
+ writer = _find_binary_writer(sys.stderr)
367
+ if writer is None:
368
+ raise RuntimeError('Was not able to determine binary '
369
+ 'stream for sys.stderr.')
370
+ return writer
371
+
372
+ def get_text_stdin(encoding=None, errors=None):
373
+ rv = _get_windows_console_stream(sys.stdin, encoding, errors)
374
+ if rv is not None:
375
+ return rv
376
+ return _force_correct_text_reader(sys.stdin, encoding, errors)
377
+
378
+ def get_text_stdout(encoding=None, errors=None):
379
+ rv = _get_windows_console_stream(sys.stdout, encoding, errors)
380
+ if rv is not None:
381
+ return rv
382
+ return _force_correct_text_writer(sys.stdout, encoding, errors)
383
+
384
+ def get_text_stderr(encoding=None, errors=None):
385
+ rv = _get_windows_console_stream(sys.stderr, encoding, errors)
386
+ if rv is not None:
387
+ return rv
388
+ return _force_correct_text_writer(sys.stderr, encoding, errors)
389
+
390
+ def filename_to_ui(value):
391
+ if isinstance(value, bytes):
392
+ value = value.decode(get_filesystem_encoding(), 'replace')
393
+ else:
394
+ value = value.encode('utf-8', 'surrogateescape') \
395
+ .decode('utf-8', 'replace')
396
+ return value
397
+
398
+
399
+ def get_streerror(e, default=None):
400
+ if hasattr(e, 'strerror'):
401
+ msg = e.strerror
402
+ else:
403
+ if default is not None:
404
+ msg = default
405
+ else:
406
+ msg = str(e)
407
+ if isinstance(msg, bytes):
408
+ msg = msg.decode('utf-8', 'replace')
409
+ return msg
410
+
411
+
412
+ def open_stream(filename, mode='r', encoding=None, errors='strict',
413
+ atomic=False):
414
+ # Standard streams first. These are simple because they don't need
415
+ # special handling for the atomic flag. It's entirely ignored.
416
+ if filename == '-':
417
+ if 'w' in mode:
418
+ if 'b' in mode:
419
+ return get_binary_stdout(), False
420
+ return get_text_stdout(encoding=encoding, errors=errors), False
421
+ if 'b' in mode:
422
+ return get_binary_stdin(), False
423
+ return get_text_stdin(encoding=encoding, errors=errors), False
424
+
425
+ # Non-atomic writes directly go out through the regular open functions.
426
+ if not atomic:
427
+ if encoding is None:
428
+ return open(filename, mode), True
429
+ return io.open(filename, mode, encoding=encoding, errors=errors), True
430
+
431
+ # Some usability stuff for atomic writes
432
+ if 'a' in mode:
433
+ raise ValueError(
434
+ 'Appending to an existing file is not supported, because that '
435
+ 'would involve an expensive `copy`-operation to a temporary '
436
+ 'file. Open the file in normal `w`-mode and copy explicitly '
437
+ 'if that\'s what you\'re after.'
438
+ )
439
+ if 'x' in mode:
440
+ raise ValueError('Use the `overwrite`-parameter instead.')
441
+ if 'w' not in mode:
442
+ raise ValueError('Atomic writes only make sense with `w`-mode.')
443
+
444
+ # Atomic writes are more complicated. They work by opening a file
445
+ # as a proxy in the same folder and then using the fdopen
446
+ # functionality to wrap it in a Python file. Then we wrap it in an
447
+ # atomic file that moves the file over on close.
448
+ import tempfile
449
+ fd, tmp_filename = tempfile.mkstemp(dir=os.path.dirname(filename),
450
+ prefix='.__atomic-write')
451
+
452
+ if encoding is not None:
453
+ f = io.open(fd, mode, encoding=encoding, errors=errors)
454
+ else:
455
+ f = os.fdopen(fd, mode)
456
+
457
+ return _AtomicFile(f, tmp_filename, filename), True
458
+
459
+
460
+ # Used in a destructor call, needs extra protection from interpreter cleanup.
461
+ if hasattr(os, 'replace'):
462
+ _replace = os.replace
463
+ _can_replace = True
464
+ else:
465
+ _replace = os.rename
466
+ _can_replace = not WIN
467
+
468
+
469
+ class _AtomicFile(object):
470
+
471
+ def __init__(self, f, tmp_filename, real_filename):
472
+ self._f = f
473
+ self._tmp_filename = tmp_filename
474
+ self._real_filename = real_filename
475
+ self.closed = False
476
+
477
+ @property
478
+ def name(self):
479
+ return self._real_filename
480
+
481
+ def close(self, delete=False):
482
+ if self.closed:
483
+ return
484
+ self._f.close()
485
+ if not _can_replace:
486
+ try:
487
+ os.remove(self._real_filename)
488
+ except OSError:
489
+ pass
490
+ _replace(self._tmp_filename, self._real_filename)
491
+ self.closed = True
492
+
493
+ def __getattr__(self, name):
494
+ return getattr(self._f, name)
495
+
496
+ def __enter__(self):
497
+ return self
498
+
499
+ def __exit__(self, exc_type, exc_value, tb):
500
+ self.close(delete=exc_type is not None)
501
+
502
+ def __repr__(self):
503
+ return repr(self._f)
504
+
505
+
506
+ auto_wrap_for_ansi = None
507
+ colorama = None
508
+ get_winterm_size = None
509
+
510
+
511
+ def strip_ansi(value):
512
+ return _ansi_re.sub('', value)
513
+
514
+
515
+ def should_strip_ansi(stream=None, color=None):
516
+ if color is None:
517
+ if stream is None:
518
+ stream = sys.stdin
519
+ return not isatty(stream)
520
+ return not color
521
+
522
+
523
+ # If we're on Windows, we provide transparent integration through
524
+ # colorama. This will make ANSI colors through the echo function
525
+ # work automatically.
526
+ if WIN:
527
+ # Windows has a smaller terminal
528
+ DEFAULT_COLUMNS = 79
529
+
530
+ from ._winconsole import _get_windows_console_stream
531
+
532
+ def _get_argv_encoding():
533
+ import locale
534
+ return locale.getpreferredencoding()
535
+
536
+ if PY2:
537
+ def raw_input(prompt=''):
538
+ sys.stderr.flush()
539
+ if prompt:
540
+ stdout = _default_text_stdout()
541
+ stdout.write(prompt)
542
+ stdin = _default_text_stdin()
543
+ return stdin.readline().rstrip('\r\n')
544
+
545
+ try:
546
+ import colorama
547
+ except ImportError:
548
+ pass
549
+ else:
550
+ _ansi_stream_wrappers = WeakKeyDictionary()
551
+
552
+ def auto_wrap_for_ansi(stream, color=None):
553
+ """This function wraps a stream so that calls through colorama
554
+ are issued to the win32 console API to recolor on demand. It
555
+ also ensures to reset the colors if a write call is interrupted
556
+ to not destroy the console afterwards.
557
+ """
558
+ try:
559
+ cached = _ansi_stream_wrappers.get(stream)
560
+ except Exception:
561
+ cached = None
562
+ if cached is not None:
563
+ return cached
564
+ strip = should_strip_ansi(stream, color)
565
+ ansi_wrapper = colorama.AnsiToWin32(stream, strip=strip)
566
+ rv = ansi_wrapper.stream
567
+ _write = rv.write
568
+
569
+ def _safe_write(s):
570
+ try:
571
+ return _write(s)
572
+ except:
573
+ ansi_wrapper.reset_all()
574
+ raise
575
+
576
+ rv.write = _safe_write
577
+ try:
578
+ _ansi_stream_wrappers[stream] = rv
579
+ except Exception:
580
+ pass
581
+ return rv
582
+
583
+ def get_winterm_size():
584
+ win = colorama.win32.GetConsoleScreenBufferInfo(
585
+ colorama.win32.STDOUT).srWindow
586
+ return win.Right - win.Left, win.Bottom - win.Top
587
+ else:
588
+ def _get_argv_encoding():
589
+ return getattr(sys.stdin, 'encoding', None) or get_filesystem_encoding()
590
+
591
+ _get_windows_console_stream = lambda *x: None
592
+
593
+
594
+ def term_len(x):
595
+ return len(strip_ansi(x))
596
+
597
+
598
+ def isatty(stream):
599
+ try:
600
+ return stream.isatty()
601
+ except Exception:
602
+ return False
603
+
604
+
605
+ def _make_cached_stream_func(src_func, wrapper_func):
606
+ cache = WeakKeyDictionary()
607
+ def func():
608
+ stream = src_func()
609
+ try:
610
+ rv = cache.get(stream)
611
+ except Exception:
612
+ rv = None
613
+ if rv is not None:
614
+ return rv
615
+ rv = wrapper_func()
616
+ try:
617
+ cache[stream] = rv
618
+ except Exception:
619
+ pass
620
+ return rv
621
+ return func
622
+
623
+
624
+ _default_text_stdin = _make_cached_stream_func(
625
+ lambda: sys.stdin, get_text_stdin)
626
+ _default_text_stdout = _make_cached_stream_func(
627
+ lambda: sys.stdout, get_text_stdout)
628
+ _default_text_stderr = _make_cached_stream_func(
629
+ lambda: sys.stderr, get_text_stderr)
630
+
631
+
632
+ binary_streams = {
633
+ 'stdin': get_binary_stdin,
634
+ 'stdout': get_binary_stdout,
635
+ 'stderr': get_binary_stderr,
636
+ }
637
+
638
+ text_streams = {
639
+ 'stdin': get_text_stdin,
640
+ 'stdout': get_text_stdout,
641
+ 'stderr': get_text_stderr,
642
+ }
Binary file