You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@senssoft.apache.org by ar...@apache.org on 2016/11/20 14:16:23 UTC
[47/51] [partial] incubator-senssoft-tap git commit: Initial
containerized docker build for tap+es+distill
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/docker/webserver/Dockerfile
----------------------------------------------------------------------
diff --git a/docker/webserver/Dockerfile b/docker/webserver/Dockerfile
new file mode 100644
index 0000000..99fc7a5
--- /dev/null
+++ b/docker/webserver/Dockerfile
@@ -0,0 +1,34 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+FROM python:2
+
+# install system wide deps
+RUN apt-get -yqq update
+RUN apt-get -yqq install nginx
+
+# Install Supervisord
+RUN pip install supervisor-stdout
+
+# Add configuration files
+ADD ./supervisord.conf /etc/supervisord.conf
+ADD ./gunicorn.cfg /etc/gunicorn.cfg
+ADD ./nginx.conf /etc/nginx/nginx.conf
+
+# restart nginx to load the config
+RUN service nginx stop
+
+# start supervisor to run our wsgi server
+CMD supervisord -c /etc/supervisord.conf -n
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/docker/webserver/gunicorn.cfg
----------------------------------------------------------------------
diff --git a/docker/webserver/gunicorn.cfg b/docker/webserver/gunicorn.cfg
new file mode 100644
index 0000000..5b199c4
--- /dev/null
+++ b/docker/webserver/gunicorn.cfg
@@ -0,0 +1,27 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+"""
+gunicorn WSGI server configuration.
+"""
+
+import multiprocessing
+
+bind = ["unix:distill.sock"]
+workers = max (multiprocessing.cpu_count () * 2 + 1, 4)
+timeout = 10
+umask = 007
+accesslog = "-"
+errorlog = "-"
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/docker/webserver/nginx.conf
----------------------------------------------------------------------
diff --git a/docker/webserver/nginx.conf b/docker/webserver/nginx.conf
new file mode 100644
index 0000000..3a46ed8
--- /dev/null
+++ b/docker/webserver/nginx.conf
@@ -0,0 +1,57 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+sudo /etc/init.d/nginx start
+sudo rm /etc/nginx/sites-enabled/default
+sudo touch /etc/nginx/sites-available/distill
+sudo ln -s /etc/nginx/sites-available/distill /etc/nginx/sites-enabled/distill
+
+sudo vim /etc/nginx/sites-enabled/distill
+
+user nobody;
+worker_processes 2;
+
+error_log /var/log/nginx/error.log;
+error_log /var/log/nginx/error.log notice;
+error_log /var/log/nginx/error.log info;
+
+# user nobody nogroup
+pid /tmp/nginx.pid;
+
+events {
+ worker_connections 1024;
+}
+
+http {
+ include mime.types;
+ default_type application/octet-stream;
+ access_log /var/log/nginx/access.log combined;
+ sendfile on;
+
+ server {
+ listen 80 default;
+ server_name localhost;
+ keepalive_timeout 5;
+
+ access_log /var/log/nginx/distill.log;
+
+ location / {
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header Host $host;
+ proxy_pass http://127.0.0.1:8000;
+ }
+
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/docker/webserver/supervisord.conf
----------------------------------------------------------------------
diff --git a/docker/webserver/supervisord.conf b/docker/webserver/supervisord.conf
new file mode 100644
index 0000000..4d29abd
--- /dev/null
+++ b/docker/webserver/supervisord.conf
@@ -0,0 +1,28 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+[supervisord]
+nodaemon = true
+
+[program:nginx]
+command = /usr/sbin/nginx
+startsecs = 5
+stdout_events_enabled = true
+stderr_events_enabled = true
+
+[program:app-gunicorn]
+command = gunicorn -c "/etc/gunicorn.cfg" scripts/run_server:app
+stdout_events_enabled = true
+stderr_events_enabled = true
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/.Python
----------------------------------------------------------------------
diff --git a/env2/.Python b/env2/.Python
new file mode 120000
index 0000000..cc24a1e
--- /dev/null
+++ b/env2/.Python
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/Python
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/bin/activate
----------------------------------------------------------------------
diff --git a/env2/bin/activate b/env2/bin/activate
new file mode 100644
index 0000000..16b1850
--- /dev/null
+++ b/env2/bin/activate
@@ -0,0 +1,78 @@
+# This file must be used with "source bin/activate" *from bash*
+# you cannot run it directly
+
+deactivate () {
+ unset -f pydoc >/dev/null 2>&1
+
+ # reset old environment variables
+ # ! [ -z ${VAR+_} ] returns true if VAR is declared at all
+ if ! [ -z "${_OLD_VIRTUAL_PATH+_}" ] ; then
+ PATH="$_OLD_VIRTUAL_PATH"
+ export PATH
+ unset _OLD_VIRTUAL_PATH
+ fi
+ if ! [ -z "${_OLD_VIRTUAL_PYTHONHOME+_}" ] ; then
+ PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME"
+ export PYTHONHOME
+ unset _OLD_VIRTUAL_PYTHONHOME
+ fi
+
+ # This should detect bash and zsh, which have a hash command that must
+ # be called to get it to forget past commands. Without forgetting
+ # past commands the $PATH changes we made may not be respected
+ if [ -n "${BASH-}" ] || [ -n "${ZSH_VERSION-}" ] ; then
+ hash -r 2>/dev/null
+ fi
+
+ if ! [ -z "${_OLD_VIRTUAL_PS1+_}" ] ; then
+ PS1="$_OLD_VIRTUAL_PS1"
+ export PS1
+ unset _OLD_VIRTUAL_PS1
+ fi
+
+ unset VIRTUAL_ENV
+ if [ ! "${1-}" = "nondestructive" ] ; then
+ # Self destruct!
+ unset -f deactivate
+ fi
+}
+
+# unset irrelevant variables
+deactivate nondestructive
+
+VIRTUAL_ENV="/Users/aqv3407/Documents/TAPRepos/dockersetup/incubator-senssoft-tap/env2"
+export VIRTUAL_ENV
+
+_OLD_VIRTUAL_PATH="$PATH"
+PATH="$VIRTUAL_ENV/bin:$PATH"
+export PATH
+
+# unset PYTHONHOME if set
+if ! [ -z "${PYTHONHOME+_}" ] ; then
+ _OLD_VIRTUAL_PYTHONHOME="$PYTHONHOME"
+ unset PYTHONHOME
+fi
+
+if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then
+ _OLD_VIRTUAL_PS1="$PS1"
+ if [ "x" != x ] ; then
+ PS1="$PS1"
+ else
+ PS1="(`basename \"$VIRTUAL_ENV\"`) $PS1"
+ fi
+ export PS1
+fi
+
+# Make sure to unalias pydoc if it's already there
+alias pydoc 2>/dev/null >/dev/null && unalias pydoc
+
+pydoc () {
+ python -m pydoc "$@"
+}
+
+# This should detect bash and zsh, which have a hash command that must
+# be called to get it to forget past commands. Without forgetting
+# past commands the $PATH changes we made may not be respected
+if [ -n "${BASH-}" ] || [ -n "${ZSH_VERSION-}" ] ; then
+ hash -r 2>/dev/null
+fi
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/bin/activate.csh
----------------------------------------------------------------------
diff --git a/env2/bin/activate.csh b/env2/bin/activate.csh
new file mode 100644
index 0000000..5462cbb
--- /dev/null
+++ b/env2/bin/activate.csh
@@ -0,0 +1,36 @@
+# This file must be used with "source bin/activate.csh" *from csh*.
+# You cannot run it directly.
+# Created by Davide Di Blasi <da...@gmail.com>.
+
+alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc'
+
+# Unset irrelevant variables.
+deactivate nondestructive
+
+setenv VIRTUAL_ENV "/Users/aqv3407/Documents/TAPRepos/dockersetup/incubator-senssoft-tap/env2"
+
+set _OLD_VIRTUAL_PATH="$PATH"
+setenv PATH "$VIRTUAL_ENV/bin:$PATH"
+
+
+
+if ("" != "") then
+ set env_name = ""
+else
+ set env_name = `basename "$VIRTUAL_ENV"`
+endif
+
+# Could be in a non-interactive environment,
+# in which case, $prompt is undefined and we wouldn't
+# care about the prompt anyway.
+if ( $?prompt ) then
+ set _OLD_VIRTUAL_PROMPT="$prompt"
+ set prompt = "[$env_name] $prompt"
+endif
+
+unset env_name
+
+alias pydoc python -m pydoc
+
+rehash
+
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/bin/activate.fish
----------------------------------------------------------------------
diff --git a/env2/bin/activate.fish b/env2/bin/activate.fish
new file mode 100644
index 0000000..93280d9
--- /dev/null
+++ b/env2/bin/activate.fish
@@ -0,0 +1,76 @@
+# This file must be used using `. bin/activate.fish` *within a running fish ( http://fishshell.com ) session*.
+# Do not run it directly.
+
+function deactivate -d 'Exit virtualenv mode and return to the normal environment.'
+ # reset old environment variables
+ if test -n "$_OLD_VIRTUAL_PATH"
+ set -gx PATH $_OLD_VIRTUAL_PATH
+ set -e _OLD_VIRTUAL_PATH
+ end
+
+ if test -n "$_OLD_VIRTUAL_PYTHONHOME"
+ set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME
+ set -e _OLD_VIRTUAL_PYTHONHOME
+ end
+
+ if test -n "$_OLD_FISH_PROMPT_OVERRIDE"
+ # Set an empty local `$fish_function_path` to allow the removal of `fish_prompt` using `functions -e`.
+ set -l fish_function_path
+
+ # Erase virtualenv's `fish_prompt` and restore the original.
+ functions -e fish_prompt
+ functions -c _old_fish_prompt fish_prompt
+ functions -e _old_fish_prompt
+ set -e _OLD_FISH_PROMPT_OVERRIDE
+ end
+
+ set -e VIRTUAL_ENV
+
+ if test "$argv[1]" != 'nondestructive'
+ # Self-destruct!
+ functions -e pydoc
+ functions -e deactivate
+ end
+end
+
+# Unset irrelevant variables.
+deactivate nondestructive
+
+set -gx VIRTUAL_ENV "/Users/aqv3407/Documents/TAPRepos/dockersetup/incubator-senssoft-tap/env2"
+
+set -gx _OLD_VIRTUAL_PATH $PATH
+set -gx PATH "$VIRTUAL_ENV/bin" $PATH
+
+# Unset `$PYTHONHOME` if set.
+if set -q PYTHONHOME
+ set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME
+ set -e PYTHONHOME
+end
+
+function pydoc
+ python -m pydoc $argv
+end
+
+if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
+ # Copy the current `fish_prompt` function as `_old_fish_prompt`.
+ functions -c fish_prompt _old_fish_prompt
+
+ function fish_prompt
+ # Save the current $status, for fish_prompts that display it.
+ set -l old_status $status
+
+ # Prompt override provided?
+ # If not, just prepend the environment name.
+ if test -n ""
+ printf '%s%s' "" (set_color normal)
+ else
+ printf '%s(%s) ' (set_color normal) (basename "$VIRTUAL_ENV")
+ end
+
+ # Restore the original $status
+ echo "exit $old_status" | source
+ _old_fish_prompt
+ end
+
+ set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
+end
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/bin/activate_this.py
----------------------------------------------------------------------
diff --git a/env2/bin/activate_this.py b/env2/bin/activate_this.py
new file mode 100644
index 0000000..f18193b
--- /dev/null
+++ b/env2/bin/activate_this.py
@@ -0,0 +1,34 @@
+"""By using execfile(this_file, dict(__file__=this_file)) you will
+activate this virtualenv environment.
+
+This can be used when you must use an existing Python interpreter, not
+the virtualenv bin/python
+"""
+
+try:
+ __file__
+except NameError:
+ raise AssertionError(
+ "You must run this like execfile('path/to/activate_this.py', dict(__file__='path/to/activate_this.py'))")
+import sys
+import os
+
+old_os_path = os.environ.get('PATH', '')
+os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + os.pathsep + old_os_path
+base = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+if sys.platform == 'win32':
+ site_packages = os.path.join(base, 'Lib', 'site-packages')
+else:
+ site_packages = os.path.join(base, 'lib', 'python%s' % sys.version[:3], 'site-packages')
+prev_sys_path = list(sys.path)
+import site
+site.addsitedir(site_packages)
+sys.real_prefix = sys.prefix
+sys.prefix = base
+# Move the added items to the front of the path:
+new_sys_path = []
+for item in list(sys.path):
+ if item not in prev_sys_path:
+ new_sys_path.append(item)
+ sys.path.remove(item)
+sys.path[:0] = new_sys_path
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/bin/docker-compose
----------------------------------------------------------------------
diff --git a/env2/bin/docker-compose b/env2/bin/docker-compose
new file mode 100755
index 0000000..be103b6
--- /dev/null
+++ b/env2/bin/docker-compose
@@ -0,0 +1,11 @@
+#!/Users/aqv3407/Documents/TAPRepos/dockersetup/incubator-senssoft-tap/env2/bin/python
+
+# -*- coding: utf-8 -*-
+import re
+import sys
+
+from compose.cli.main import main
+
+if __name__ == '__main__':
+ sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
+ sys.exit(main())
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/bin/easy_install
----------------------------------------------------------------------
diff --git a/env2/bin/easy_install b/env2/bin/easy_install
new file mode 100755
index 0000000..b00ebdf
--- /dev/null
+++ b/env2/bin/easy_install
@@ -0,0 +1,11 @@
+#!/Users/aqv3407/Documents/TAPRepos/dockersetup/incubator-senssoft-tap/env2/bin/python
+
+# -*- coding: utf-8 -*-
+import re
+import sys
+
+from setuptools.command.easy_install import main
+
+if __name__ == '__main__':
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
+ sys.exit(main())
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/bin/easy_install-2.7
----------------------------------------------------------------------
diff --git a/env2/bin/easy_install-2.7 b/env2/bin/easy_install-2.7
new file mode 100755
index 0000000..b00ebdf
--- /dev/null
+++ b/env2/bin/easy_install-2.7
@@ -0,0 +1,11 @@
+#!/Users/aqv3407/Documents/TAPRepos/dockersetup/incubator-senssoft-tap/env2/bin/python
+
+# -*- coding: utf-8 -*-
+import re
+import sys
+
+from setuptools.command.easy_install import main
+
+if __name__ == '__main__':
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
+ sys.exit(main())
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/bin/jsonschema
----------------------------------------------------------------------
diff --git a/env2/bin/jsonschema b/env2/bin/jsonschema
new file mode 100755
index 0000000..fb4d2bf
--- /dev/null
+++ b/env2/bin/jsonschema
@@ -0,0 +1,11 @@
+#!/Users/aqv3407/Documents/TAPRepos/dockersetup/incubator-senssoft-tap/env2/bin/python
+
+# -*- coding: utf-8 -*-
+import re
+import sys
+
+from jsonschema.cli import main
+
+if __name__ == '__main__':
+ sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
+ sys.exit(main())
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/bin/pip
----------------------------------------------------------------------
diff --git a/env2/bin/pip b/env2/bin/pip
new file mode 100755
index 0000000..a6f8d10
--- /dev/null
+++ b/env2/bin/pip
@@ -0,0 +1,11 @@
+#!/Users/aqv3407/Documents/TAPRepos/dockersetup/incubator-senssoft-tap/env2/bin/python
+
+# -*- coding: utf-8 -*-
+import re
+import sys
+
+from pip import main
+
+if __name__ == '__main__':
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
+ sys.exit(main())
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/bin/pip2
----------------------------------------------------------------------
diff --git a/env2/bin/pip2 b/env2/bin/pip2
new file mode 100755
index 0000000..a6f8d10
--- /dev/null
+++ b/env2/bin/pip2
@@ -0,0 +1,11 @@
+#!/Users/aqv3407/Documents/TAPRepos/dockersetup/incubator-senssoft-tap/env2/bin/python
+
+# -*- coding: utf-8 -*-
+import re
+import sys
+
+from pip import main
+
+if __name__ == '__main__':
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
+ sys.exit(main())
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/bin/pip2.7
----------------------------------------------------------------------
diff --git a/env2/bin/pip2.7 b/env2/bin/pip2.7
new file mode 100755
index 0000000..a6f8d10
--- /dev/null
+++ b/env2/bin/pip2.7
@@ -0,0 +1,11 @@
+#!/Users/aqv3407/Documents/TAPRepos/dockersetup/incubator-senssoft-tap/env2/bin/python
+
+# -*- coding: utf-8 -*-
+import re
+import sys
+
+from pip import main
+
+if __name__ == '__main__':
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
+ sys.exit(main())
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/bin/python
----------------------------------------------------------------------
diff --git a/env2/bin/python b/env2/bin/python
new file mode 100755
index 0000000..947e565
Binary files /dev/null and b/env2/bin/python differ
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/bin/python-config
----------------------------------------------------------------------
diff --git a/env2/bin/python-config b/env2/bin/python-config
new file mode 100755
index 0000000..eb32b1c
--- /dev/null
+++ b/env2/bin/python-config
@@ -0,0 +1,78 @@
+#!/Users/aqv3407/Documents/TAPRepos/dockersetup/incubator-senssoft-tap/env2/bin/python
+
+import sys
+import getopt
+import sysconfig
+
+valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
+ 'ldflags', 'help']
+
+if sys.version_info >= (3, 2):
+ valid_opts.insert(-1, 'extension-suffix')
+ valid_opts.append('abiflags')
+if sys.version_info >= (3, 3):
+ valid_opts.append('configdir')
+
+
+def exit_with_usage(code=1):
+ sys.stderr.write("Usage: {0} [{1}]\n".format(
+ sys.argv[0], '|'.join('--'+opt for opt in valid_opts)))
+ sys.exit(code)
+
+try:
+ opts, args = getopt.getopt(sys.argv[1:], '', valid_opts)
+except getopt.error:
+ exit_with_usage()
+
+if not opts:
+ exit_with_usage()
+
+pyver = sysconfig.get_config_var('VERSION')
+getvar = sysconfig.get_config_var
+
+opt_flags = [flag for (flag, val) in opts]
+
+if '--help' in opt_flags:
+ exit_with_usage(code=0)
+
+for opt in opt_flags:
+ if opt == '--prefix':
+ print(sysconfig.get_config_var('prefix'))
+
+ elif opt == '--exec-prefix':
+ print(sysconfig.get_config_var('exec_prefix'))
+
+ elif opt in ('--includes', '--cflags'):
+ flags = ['-I' + sysconfig.get_path('include'),
+ '-I' + sysconfig.get_path('platinclude')]
+ if opt == '--cflags':
+ flags.extend(getvar('CFLAGS').split())
+ print(' '.join(flags))
+
+ elif opt in ('--libs', '--ldflags'):
+ abiflags = getattr(sys, 'abiflags', '')
+ libs = ['-lpython' + pyver + abiflags]
+ libs += getvar('LIBS').split()
+ libs += getvar('SYSLIBS').split()
+ # add the prefix/lib/pythonX.Y/config dir, but only if there is no
+ # shared library in prefix/lib/.
+ if opt == '--ldflags':
+ if not getvar('Py_ENABLE_SHARED'):
+ libs.insert(0, '-L' + getvar('LIBPL'))
+ if not getvar('PYTHONFRAMEWORK'):
+ libs.extend(getvar('LINKFORSHARED').split())
+ print(' '.join(libs))
+
+ elif opt == '--extension-suffix':
+ ext_suffix = sysconfig.get_config_var('EXT_SUFFIX')
+ if ext_suffix is None:
+ ext_suffix = sysconfig.get_config_var('SO')
+ print(ext_suffix)
+
+ elif opt == '--abiflags':
+ if not getattr(sys, 'abiflags', None):
+ exit_with_usage()
+ print(sys.abiflags)
+
+ elif opt == '--configdir':
+ print(sysconfig.get_config_var('LIBPL'))
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/bin/python2
----------------------------------------------------------------------
diff --git a/env2/bin/python2 b/env2/bin/python2
new file mode 120000
index 0000000..d8654aa
--- /dev/null
+++ b/env2/bin/python2
@@ -0,0 +1 @@
+python
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/bin/python2.7
----------------------------------------------------------------------
diff --git a/env2/bin/python2.7 b/env2/bin/python2.7
new file mode 120000
index 0000000..d8654aa
--- /dev/null
+++ b/env2/bin/python2.7
@@ -0,0 +1 @@
+python
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/bin/wheel
----------------------------------------------------------------------
diff --git a/env2/bin/wheel b/env2/bin/wheel
new file mode 100755
index 0000000..5ba3210
--- /dev/null
+++ b/env2/bin/wheel
@@ -0,0 +1,11 @@
+#!/Users/aqv3407/Documents/TAPRepos/dockersetup/incubator-senssoft-tap/env2/bin/python
+
+# -*- coding: utf-8 -*-
+import re
+import sys
+
+from wheel.tool import main
+
+if __name__ == '__main__':
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
+ sys.exit(main())
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/bin/wsdump.py
----------------------------------------------------------------------
diff --git a/env2/bin/wsdump.py b/env2/bin/wsdump.py
new file mode 100755
index 0000000..6a57857
--- /dev/null
+++ b/env2/bin/wsdump.py
@@ -0,0 +1,185 @@
+#!/Users/aqv3407/Documents/TAPRepos/dockersetup/incubator-senssoft-tap/env2/bin/python
+
+import argparse
+import code
+import six
+import sys
+import threading
+import time
+import websocket
+from six.moves.urllib.parse import urlparse
+try:
+ import readline
+except:
+ pass
+
+
+def get_encoding():
+ encoding = getattr(sys.stdin, "encoding", "")
+ if not encoding:
+ return "utf-8"
+ else:
+ return encoding.lower()
+
+
+OPCODE_DATA = (websocket.ABNF.OPCODE_TEXT, websocket.ABNF.OPCODE_BINARY)
+ENCODING = get_encoding()
+
+
+class VAction(argparse.Action):
+ def __call__(self, parser, args, values, option_string=None):
+ if values==None:
+ values = "1"
+ try:
+ values = int(values)
+ except ValueError:
+ values = values.count("v")+1
+ setattr(args, self.dest, values)
+
+def parse_args():
+ parser = argparse.ArgumentParser(description="WebSocket Simple Dump Tool")
+ parser.add_argument("url", metavar="ws_url",
+ help="websocket url. ex. ws://echo.websocket.org/")
+ parser.add_argument("-p", "--proxy",
+ help="proxy url. ex. http://127.0.0.1:8080")
+ parser.add_argument("-v", "--verbose", default=0, nargs='?', action=VAction,
+ dest="verbose",
+ help="set verbose mode. If set to 1, show opcode. "
+ "If set to 2, enable to trace websocket module")
+ parser.add_argument("-n", "--nocert", action='store_true',
+ help="Ignore invalid SSL cert")
+ parser.add_argument("-r", "--raw", action="store_true",
+ help="raw output")
+ parser.add_argument("-s", "--subprotocols", nargs='*',
+ help="Set subprotocols")
+ parser.add_argument("-o", "--origin",
+ help="Set origin")
+ parser.add_argument("--eof-wait", default=0, type=int,
+ help="wait time(second) after 'EOF' received.")
+ parser.add_argument("-t", "--text",
+ help="Send initial text")
+ parser.add_argument("--timings", action="store_true",
+ help="Print timings in seconds")
+
+ return parser.parse_args()
+
+class RawInput():
+ def raw_input(self, prompt):
+ if six.PY3:
+ line = input(prompt)
+ else:
+ line = raw_input(prompt)
+
+ if ENCODING and ENCODING != "utf-8" and not isinstance(line, six.text_type):
+ line = line.decode(ENCODING).encode("utf-8")
+ elif isinstance(line, six.text_type):
+ line = line.encode("utf-8")
+
+ return line
+
+class InteractiveConsole(RawInput, code.InteractiveConsole):
+ def write(self, data):
+ sys.stdout.write("\033[2K\033[E")
+ # sys.stdout.write("\n")
+ sys.stdout.write("\033[34m< " + data + "\033[39m")
+ sys.stdout.write("\n> ")
+ sys.stdout.flush()
+
+ def read(self):
+ return self.raw_input("> ")
+
+class NonInteractive(RawInput):
+ def write(self, data):
+ sys.stdout.write(data)
+ sys.stdout.write("\n")
+ sys.stdout.flush()
+
+ def read(self):
+ return self.raw_input("")
+
+def main():
+ start_time = time.time()
+ args = parse_args()
+ if args.verbose > 1:
+ websocket.enableTrace(True)
+ options = {}
+ if (args.proxy):
+ p = urlparse(args.proxy)
+ options["http_proxy_host"] = p.hostname
+ options["http_proxy_port"] = p.port
+ if (args.origin):
+ options["origin"] = args.origin
+ if (args.subprotocols):
+ options["subprotocols"] = args.subprotocols
+ opts = {}
+ if (args.nocert):
+ opts = { "cert_reqs": websocket.ssl.CERT_NONE, "check_hostname": False }
+ ws = websocket.create_connection(args.url, sslopt=opts, **options)
+ if args.raw:
+ console = NonInteractive()
+ else:
+ console = InteractiveConsole()
+ print("Press Ctrl+C to quit")
+
+ def recv():
+ try:
+ frame = ws.recv_frame()
+ except websocket.WebSocketException:
+ return (websocket.ABNF.OPCODE_CLOSE, None)
+ if not frame:
+ raise websocket.WebSocketException("Not a valid frame %s" % frame)
+ elif frame.opcode in OPCODE_DATA:
+ return (frame.opcode, frame.data)
+ elif frame.opcode == websocket.ABNF.OPCODE_CLOSE:
+ ws.send_close()
+ return (frame.opcode, None)
+ elif frame.opcode == websocket.ABNF.OPCODE_PING:
+ ws.pong(frame.data)
+ return frame.opcode, frame.data
+
+ return frame.opcode, frame.data
+
+
+ def recv_ws():
+ while True:
+ opcode, data = recv()
+ msg = None
+ if six.PY3 and opcode == websocket.ABNF.OPCODE_TEXT and isinstance(data, bytes):
+ data = str(data, "utf-8")
+ if not args.verbose and opcode in OPCODE_DATA:
+ msg = data
+ elif args.verbose:
+ msg = "%s: %s" % (websocket.ABNF.OPCODE_MAP.get(opcode), data)
+
+ if msg is not None:
+ if (args.timings):
+ console.write(str(time.time() - start_time) + ": " + msg)
+ else:
+ console.write(msg)
+
+ if opcode == websocket.ABNF.OPCODE_CLOSE:
+ break
+
+ thread = threading.Thread(target=recv_ws)
+ thread.daemon = True
+ thread.start()
+
+ if args.text:
+ ws.send(args.text)
+
+ while True:
+ try:
+ message = console.read()
+ ws.send(message)
+ except KeyboardInterrupt:
+ return
+ except EOFError:
+ time.sleep(args.eof_wait)
+ return
+
+
+if __name__ == "__main__":
+ try:
+ main()
+ except Exception as e:
+ print(e)
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/include/python2.7
----------------------------------------------------------------------
diff --git a/env2/include/python2.7 b/env2/include/python2.7
new file mode 120000
index 0000000..3fe034f
--- /dev/null
+++ b/env2/include/python2.7
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/UserDict.py
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/UserDict.py b/env2/lib/python2.7/UserDict.py
new file mode 120000
index 0000000..b735f02
--- /dev/null
+++ b/env2/lib/python2.7/UserDict.py
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/_abcoll.py
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/_abcoll.py b/env2/lib/python2.7/_abcoll.py
new file mode 120000
index 0000000..4a595bc
--- /dev/null
+++ b/env2/lib/python2.7/_abcoll.py
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_abcoll.py
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/_weakrefset.py
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/_weakrefset.py b/env2/lib/python2.7/_weakrefset.py
new file mode 120000
index 0000000..b8b09b7
--- /dev/null
+++ b/env2/lib/python2.7/_weakrefset.py
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_weakrefset.py
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/abc.py
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/abc.py b/env2/lib/python2.7/abc.py
new file mode 120000
index 0000000..87956e5
--- /dev/null
+++ b/env2/lib/python2.7/abc.py
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/abc.py
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/codecs.py
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/codecs.py b/env2/lib/python2.7/codecs.py
new file mode 120000
index 0000000..b18c8d6
--- /dev/null
+++ b/env2/lib/python2.7/codecs.py
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/config
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/config b/env2/lib/python2.7/config
new file mode 120000
index 0000000..88ddfa1
--- /dev/null
+++ b/env2/lib/python2.7/config
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/copy_reg.py
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/copy_reg.py b/env2/lib/python2.7/copy_reg.py
new file mode 120000
index 0000000..8d0265c
--- /dev/null
+++ b/env2/lib/python2.7/copy_reg.py
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy_reg.py
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/distutils/__init__.py
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/distutils/__init__.py b/env2/lib/python2.7/distutils/__init__.py
new file mode 100644
index 0000000..29fc1da
--- /dev/null
+++ b/env2/lib/python2.7/distutils/__init__.py
@@ -0,0 +1,101 @@
+import os
+import sys
+import warnings
+import imp
+import opcode # opcode is not a virtualenv module, so we can use it to find the stdlib
+ # Important! To work on pypy, this must be a module that resides in the
+ # lib-python/modified-x.y.z directory
+
+dirname = os.path.dirname
+
+distutils_path = os.path.join(os.path.dirname(opcode.__file__), 'distutils')
+if os.path.normpath(distutils_path) == os.path.dirname(os.path.normpath(__file__)):
+ warnings.warn(
+ "The virtualenv distutils package at %s appears to be in the same location as the system distutils?")
+else:
+ __path__.insert(0, distutils_path)
+ real_distutils = imp.load_module("_virtualenv_distutils", None, distutils_path, ('', '', imp.PKG_DIRECTORY))
+ # Copy the relevant attributes
+ try:
+ __revision__ = real_distutils.__revision__
+ except AttributeError:
+ pass
+ __version__ = real_distutils.__version__
+
+from distutils import dist, sysconfig
+
+try:
+ basestring
+except NameError:
+ basestring = str
+
+## patch build_ext (distutils doesn't know how to get the libs directory
+## path on windows - it hardcodes the paths around the patched sys.prefix)
+
+if sys.platform == 'win32':
+ from distutils.command.build_ext import build_ext as old_build_ext
+ class build_ext(old_build_ext):
+ def finalize_options (self):
+ if self.library_dirs is None:
+ self.library_dirs = []
+ elif isinstance(self.library_dirs, basestring):
+ self.library_dirs = self.library_dirs.split(os.pathsep)
+
+ self.library_dirs.insert(0, os.path.join(sys.real_prefix, "Libs"))
+ old_build_ext.finalize_options(self)
+
+ from distutils.command import build_ext as build_ext_module
+ build_ext_module.build_ext = build_ext
+
+## distutils.dist patches:
+
+old_find_config_files = dist.Distribution.find_config_files
+def find_config_files(self):
+ found = old_find_config_files(self)
+ system_distutils = os.path.join(distutils_path, 'distutils.cfg')
+ #if os.path.exists(system_distutils):
+ # found.insert(0, system_distutils)
+ # What to call the per-user config file
+ if os.name == 'posix':
+ user_filename = ".pydistutils.cfg"
+ else:
+ user_filename = "pydistutils.cfg"
+ user_filename = os.path.join(sys.prefix, user_filename)
+ if os.path.isfile(user_filename):
+ for item in list(found):
+ if item.endswith('pydistutils.cfg'):
+ found.remove(item)
+ found.append(user_filename)
+ return found
+dist.Distribution.find_config_files = find_config_files
+
+## distutils.sysconfig patches:
+
+old_get_python_inc = sysconfig.get_python_inc
+def sysconfig_get_python_inc(plat_specific=0, prefix=None):
+ if prefix is None:
+ prefix = sys.real_prefix
+ return old_get_python_inc(plat_specific, prefix)
+sysconfig_get_python_inc.__doc__ = old_get_python_inc.__doc__
+sysconfig.get_python_inc = sysconfig_get_python_inc
+
+old_get_python_lib = sysconfig.get_python_lib
+def sysconfig_get_python_lib(plat_specific=0, standard_lib=0, prefix=None):
+ if standard_lib and prefix is None:
+ prefix = sys.real_prefix
+ return old_get_python_lib(plat_specific, standard_lib, prefix)
+sysconfig_get_python_lib.__doc__ = old_get_python_lib.__doc__
+sysconfig.get_python_lib = sysconfig_get_python_lib
+
+old_get_config_vars = sysconfig.get_config_vars
+def sysconfig_get_config_vars(*args):
+ real_vars = old_get_config_vars(*args)
+ if sys.platform == 'win32':
+ lib_dir = os.path.join(sys.real_prefix, "libs")
+ if isinstance(real_vars, dict) and 'LIBDIR' not in real_vars:
+ real_vars['LIBDIR'] = lib_dir # asked for all
+ elif isinstance(real_vars, list) and 'LIBDIR' in args:
+ real_vars = real_vars + [lib_dir] # asked for list
+ return real_vars
+sysconfig_get_config_vars.__doc__ = old_get_config_vars.__doc__
+sysconfig.get_config_vars = sysconfig_get_config_vars
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/distutils/distutils.cfg
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/distutils/distutils.cfg b/env2/lib/python2.7/distutils/distutils.cfg
new file mode 100644
index 0000000..1af230e
--- /dev/null
+++ b/env2/lib/python2.7/distutils/distutils.cfg
@@ -0,0 +1,6 @@
+# This is a config file local to this virtualenv installation
+# You may include options that will be used by all distutils commands,
+# and by easy_install. For instance:
+#
+# [easy_install]
+# find_links = http://mylocalsite
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/encodings
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/encodings b/env2/lib/python2.7/encodings
new file mode 120000
index 0000000..8732f85
--- /dev/null
+++ b/env2/lib/python2.7/encodings
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/fnmatch.py
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/fnmatch.py b/env2/lib/python2.7/fnmatch.py
new file mode 120000
index 0000000..49b6bc0
--- /dev/null
+++ b/env2/lib/python2.7/fnmatch.py
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/fnmatch.py
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/genericpath.py
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/genericpath.py b/env2/lib/python2.7/genericpath.py
new file mode 120000
index 0000000..7843bce
--- /dev/null
+++ b/env2/lib/python2.7/genericpath.py
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.py
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/lib-dynload
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/lib-dynload b/env2/lib/python2.7/lib-dynload
new file mode 120000
index 0000000..24c555e
--- /dev/null
+++ b/env2/lib/python2.7/lib-dynload
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/linecache.py
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/linecache.py b/env2/lib/python2.7/linecache.py
new file mode 120000
index 0000000..1f79a61
--- /dev/null
+++ b/env2/lib/python2.7/linecache.py
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/linecache.py
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/locale.py
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/locale.py b/env2/lib/python2.7/locale.py
new file mode 120000
index 0000000..cc8a5a7
--- /dev/null
+++ b/env2/lib/python2.7/locale.py
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/no-global-site-packages.txt
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/no-global-site-packages.txt b/env2/lib/python2.7/no-global-site-packages.txt
new file mode 100644
index 0000000..e69de29
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/ntpath.py
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/ntpath.py b/env2/lib/python2.7/ntpath.py
new file mode 120000
index 0000000..af0bbe7
--- /dev/null
+++ b/env2/lib/python2.7/ntpath.py
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ntpath.py
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/orig-prefix.txt
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/orig-prefix.txt b/env2/lib/python2.7/orig-prefix.txt
new file mode 100644
index 0000000..2a45120
--- /dev/null
+++ b/env2/lib/python2.7/orig-prefix.txt
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/os.py
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/os.py b/env2/lib/python2.7/os.py
new file mode 120000
index 0000000..04db928
--- /dev/null
+++ b/env2/lib/python2.7/os.py
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/posixpath.py
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/posixpath.py b/env2/lib/python2.7/posixpath.py
new file mode 120000
index 0000000..cc89aa2
--- /dev/null
+++ b/env2/lib/python2.7/posixpath.py
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/re.py
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/re.py b/env2/lib/python2.7/re.py
new file mode 120000
index 0000000..b1a8e65
--- /dev/null
+++ b/env2/lib/python2.7/re.py
@@ -0,0 +1 @@
+/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/DESCRIPTION.rst
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/DESCRIPTION.rst b/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/DESCRIPTION.rst
new file mode 100644
index 0000000..94d55d3
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/DESCRIPTION.rst
@@ -0,0 +1,12 @@
+YAML is a data serialization format designed for human readability
+and interaction with scripting languages. PyYAML is a YAML parser
+and emitter for Python.
+
+PyYAML features a complete YAML 1.1 parser, Unicode support, pickle
+support, capable extension API, and sensible error messages. PyYAML
+supports standard YAML tags and provides Python-specific tags that
+allow to represent an arbitrary Python object.
+
+PyYAML is applicable for a broad range of tasks from complex
+configuration files to object serialization and persistance.
+
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/INSTALLER
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/INSTALLER b/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/INSTALLER
new file mode 100644
index 0000000..a1b589e
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/INSTALLER
@@ -0,0 +1 @@
+pip
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/METADATA
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/METADATA b/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/METADATA
new file mode 100644
index 0000000..0839366
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/METADATA
@@ -0,0 +1,35 @@
+Metadata-Version: 2.0
+Name: PyYAML
+Version: 3.12
+Summary: YAML parser and emitter for Python
+Home-page: http://pyyaml.org/wiki/PyYAML
+Author: Kirill Simonov
+Author-email: xi@resolvent.net
+License: MIT
+Download-URL: http://pyyaml.org/download/pyyaml/PyYAML-3.12.tar.gz
+Platform: Any
+Classifier: Development Status :: 5 - Production/Stable
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Operating System :: OS Independent
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Topic :: Software Development :: Libraries :: Python Modules
+Classifier: Topic :: Text Processing :: Markup
+
+YAML is a data serialization format designed for human readability
+and interaction with scripting languages. PyYAML is a YAML parser
+and emitter for Python.
+
+PyYAML features a complete YAML 1.1 parser, Unicode support, pickle
+support, capable extension API, and sensible error messages. PyYAML
+supports standard YAML tags and provides Python-specific tags that
+allow to represent an arbitrary Python object.
+
+PyYAML is applicable for a broad range of tasks from complex
+configuration files to object serialization and persistance.
+
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/RECORD
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/RECORD b/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/RECORD
new file mode 100644
index 0000000..d0c14a2
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/RECORD
@@ -0,0 +1,41 @@
+PyYAML-3.12.dist-info/DESCRIPTION.rst,sha256=4nzkrOwMTYfusIfdRz4-dl_9Blan5axHPKMiVJEOV-4,534
+PyYAML-3.12.dist-info/METADATA,sha256=pLhIwT2X7saN_aEwYCwTMYl0U9KDA4jYEyL140QAOJg,1424
+PyYAML-3.12.dist-info/RECORD,,
+PyYAML-3.12.dist-info/WHEEL,sha256=c72nWt1i7I3ForbdXG35p-8sTv3cN_E1sA3uLvkN51M,110
+PyYAML-3.12.dist-info/metadata.json,sha256=ACNazIcYAAYWEcmweRN5f76IWRewL5YSVmjkqEx4gFo,1013
+PyYAML-3.12.dist-info/top_level.txt,sha256=mBo8NF3j3lG5BeAeV7Eg19Y0FKQnxcXuw9SUEemIwB4,11
+yaml/__init__.py,sha256=qfSzlV4ZwTZZBGZQg7CfDRj4cfVXlk4B7cltM61_ZyU,9776
+yaml/composer.py,sha256=pOjZ5afqNfH22WXyS6xlQCB2PbSrFPjK-qFPOEI76fw,4921
+yaml/constructor.py,sha256=S_Pux76-hgmgtJeJVtSvQ9ynmtEIR2jAx2ljAochKU0,25145
+yaml/cyaml.py,sha256=xK_IxkrRcetZeNwB_wzDAHYCWsumOFfsTlk3CeoM5kQ,3290
+yaml/dumper.py,sha256=ONPYNHirnLm-qCm-h9swnMWzZhncilexboIPRoNdcq4,2719
+yaml/emitter.py,sha256=Xya7zhTX3ykxMAdAgDIedejmLb1Q71W2G4yt4nTSMIM,43298
+yaml/error.py,sha256=7K-NdIv0qNKPKbnXxEg0L_b9K7nYDORr3rzm8_b-iBY,2559
+yaml/events.py,sha256=50_TksgQiE4up-lKo_V-nBy-tAIxkIPQxY5qDhKCeHw,2445
+yaml/loader.py,sha256=t_WLbw1-iWQ4KT_FUppJu30cFIU-l8NCb7bjoXJoV6A,1132
+yaml/nodes.py,sha256=gPKNj8pKCdh2d4gr3gIYINnPOaOxGhJAUiYhGRnPE84,1440
+yaml/parser.py,sha256=sgXahZA3DkySYnaC4D_zcl3l2y4Y5R40icWtdwkF_NE,25542
+yaml/reader.py,sha256=hKuxSbid1rSlfKBsshf5qaPwVduaCJA5t5S9Jum6CAA,6746
+yaml/representer.py,sha256=x3F9vDF4iiPit8sR8tgR-kjtotWTzH_Zv9moq0fMtlY,17711
+yaml/resolver.py,sha256=5Z3boiMikL6Qt6fS5Mt8fHym0GxbW7CMT2f2fnD1ZPQ,9122
+yaml/scanner.py,sha256=ft5i4fP9m0MrpKY9N8Xa24H1LqKhwGQXLG1Hd9gCSsk,52446
+yaml/serializer.py,sha256=tRsRwfu5E9fpLU7LY3vBQf2prt77hwnYlMt5dnBJLig,4171
+yaml/tokens.py,sha256=lTQIzSVw8Mg9wv459-TjiOQe6wVziqaRlqX2_89rp54,2573
+PyYAML-3.12.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
+yaml/loader.pyc,,
+yaml/__init__.pyc,,
+yaml/reader.pyc,,
+yaml/cyaml.pyc,,
+yaml/resolver.pyc,,
+yaml/constructor.pyc,,
+yaml/scanner.pyc,,
+yaml/dumper.pyc,,
+yaml/serializer.pyc,,
+yaml/nodes.pyc,,
+yaml/events.pyc,,
+yaml/representer.pyc,,
+yaml/error.pyc,,
+yaml/tokens.pyc,,
+yaml/parser.pyc,,
+yaml/composer.pyc,,
+yaml/emitter.pyc,,
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/WHEEL
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/WHEEL b/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/WHEEL
new file mode 100644
index 0000000..0d9cf7a
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/WHEEL
@@ -0,0 +1,5 @@
+Wheel-Version: 1.0
+Generator: bdist_wheel (0.29.0)
+Root-Is-Purelib: false
+Tag: cp27-cp27m-macosx_10_11_intel
+
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/metadata.json
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/metadata.json b/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/metadata.json
new file mode 100644
index 0000000..73f25a1
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/metadata.json
@@ -0,0 +1 @@
+{"classifiers": ["Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Markup"], "download_url": "http://pyyaml.org/download/pyyaml/PyYAML-3.12.tar.gz", "extensions": {"python.details": {"contacts": [{"email": "xi@resolvent.net", "name": "Kirill Simonov", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "http://pyyaml.org/wiki/PyYAML"}}}, "generator": "bdist_wheel (0.29.0)", "license": "MIT", "metadata_version": "2.0", "name": "PyYAML", "platform": "Any", "summary": "YAML parser and emitter for Python", "v
ersion": "3.12"}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/top_level.txt
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/top_level.txt b/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/top_level.txt
new file mode 100644
index 0000000..7a159e7
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/PyYAML-3.12.dist-info/top_level.txt
@@ -0,0 +1,2 @@
+yaml
+_yaml
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/DESCRIPTION.rst
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/DESCRIPTION.rst b/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/DESCRIPTION.rst
new file mode 100644
index 0000000..b8800d6
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/DESCRIPTION.rst
@@ -0,0 +1,70 @@
+The ssl.match_hostname() function from Python 3.5
+=================================================
+
+The Secure Sockets Layer is only actually *secure*
+if you check the hostname in the certificate returned
+by the server to which you are connecting,
+and verify that it matches to hostname
+that you are trying to reach.
+
+But the matching logic, defined in `RFC2818`_,
+can be a bit tricky to implement on your own.
+So the ``ssl`` package in the Standard Library of Python 3.2
+and greater now includes a ``match_hostname()`` function
+for performing this check instead of requiring every application
+to implement the check separately.
+
+This backport brings ``match_hostname()`` to users
+of earlier versions of Python.
+Simply make this distribution a dependency of your package,
+and then use it like this::
+
+ from backports.ssl_match_hostname import match_hostname, CertificateError
+ [...]
+ sslsock = ssl.wrap_socket(sock, ssl_version=ssl.PROTOCOL_SSLv23,
+ cert_reqs=ssl.CERT_REQUIRED, ca_certs=...)
+ try:
+ match_hostname(sslsock.getpeercert(), hostname)
+ except CertificateError, ce:
+ ...
+
+Brandon Craig Rhodes is merely the packager of this distribution;
+the actual code inside comes from Python 3.5 with small changes for
+portability.
+
+
+Requirements
+------------
+
+* If you want to verify hosts match with certificates via ServerAltname
+ IPAddress fields, you need to install the `ipaddress module`_.
+ backports.ssl_match_hostname will continue to work without ipaddress but
+ will only be able to handle ServerAltName DNSName fields, not IPAddress.
+ System packagers (Linux distributions, et al) are encouraged to add
+ this as a hard dependency in their packages.
+
+* If you need to use this on Python versions earlier than 2.6 you will need to
+ install the `ssl module`_. From Python 2.6 upwards ``ssl`` is included in
+ the Python Standard Library so you do not need to install it separately.
+
+.. _`ipaddress module`:: https://pypi.python.org/pypi/ipaddress
+.. _`ssl module`:: https://pypi.python.org/pypi/ssl
+
+History
+-------
+
+* This function was introduced in python-3.2
+* It was updated for python-3.4a1 for a CVE
+ (backports-ssl_match_hostname-3.4.0.1)
+* It was updated from RFC2818 to RFC 6125 compliance in order to fix another
+ security flaw for python-3.3.3 and python-3.4a5
+ (backports-ssl_match_hostname-3.4.0.2)
+* It was updated in python-3.5 to handle IPAddresses in ServerAltName fields
+ (something that backports.ssl_match_hostname will do if you also install the
+ ipaddress library from pypi).
+
+
+.. _RFC2818: http://tools.ietf.org/html/rfc2818.html
+
+
+
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/INSTALLER
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/INSTALLER b/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/INSTALLER
new file mode 100644
index 0000000..a1b589e
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/INSTALLER
@@ -0,0 +1 @@
+pip
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/METADATA
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/METADATA b/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/METADATA
new file mode 100644
index 0000000..550988e
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/METADATA
@@ -0,0 +1,90 @@
+Metadata-Version: 2.0
+Name: backports.ssl-match-hostname
+Version: 3.5.0.1
+Summary: The ssl.match_hostname() function from Python 3.5
+Home-page: http://bitbucket.org/brandon/backports.ssl_match_hostname
+Author: Toshio Kuratomi
+Author-email: toshio@fedoraproject.org
+License: Python Software Foundation License
+Platform: UNKNOWN
+Classifier: Development Status :: 5 - Production/Stable
+Classifier: License :: OSI Approved :: Python Software Foundation License
+Classifier: Programming Language :: Python :: 2.4
+Classifier: Programming Language :: Python :: 2.5
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.0
+Classifier: Programming Language :: Python :: 3.1
+Classifier: Topic :: Security :: Cryptography
+
+The ssl.match_hostname() function from Python 3.5
+=================================================
+
+The Secure Sockets Layer is only actually *secure*
+if you check the hostname in the certificate returned
+by the server to which you are connecting,
+and verify that it matches to hostname
+that you are trying to reach.
+
+But the matching logic, defined in `RFC2818`_,
+can be a bit tricky to implement on your own.
+So the ``ssl`` package in the Standard Library of Python 3.2
+and greater now includes a ``match_hostname()`` function
+for performing this check instead of requiring every application
+to implement the check separately.
+
+This backport brings ``match_hostname()`` to users
+of earlier versions of Python.
+Simply make this distribution a dependency of your package,
+and then use it like this::
+
+ from backports.ssl_match_hostname import match_hostname, CertificateError
+ [...]
+ sslsock = ssl.wrap_socket(sock, ssl_version=ssl.PROTOCOL_SSLv23,
+ cert_reqs=ssl.CERT_REQUIRED, ca_certs=...)
+ try:
+ match_hostname(sslsock.getpeercert(), hostname)
+ except CertificateError, ce:
+ ...
+
+Brandon Craig Rhodes is merely the packager of this distribution;
+the actual code inside comes from Python 3.5 with small changes for
+portability.
+
+
+Requirements
+------------
+
+* If you want to verify hosts match with certificates via ServerAltname
+ IPAddress fields, you need to install the `ipaddress module`_.
+ backports.ssl_match_hostname will continue to work without ipaddress but
+ will only be able to handle ServerAltName DNSName fields, not IPAddress.
+ System packagers (Linux distributions, et al) are encouraged to add
+ this as a hard dependency in their packages.
+
+* If you need to use this on Python versions earlier than 2.6 you will need to
+ install the `ssl module`_. From Python 2.6 upwards ``ssl`` is included in
+ the Python Standard Library so you do not need to install it separately.
+
+.. _`ipaddress module`:: https://pypi.python.org/pypi/ipaddress
+.. _`ssl module`:: https://pypi.python.org/pypi/ssl
+
+History
+-------
+
+* This function was introduced in python-3.2
+* It was updated for python-3.4a1 for a CVE
+ (backports-ssl_match_hostname-3.4.0.1)
+* It was updated from RFC2818 to RFC 6125 compliance in order to fix another
+ security flaw for python-3.3.3 and python-3.4a5
+ (backports-ssl_match_hostname-3.4.0.2)
+* It was updated in python-3.5 to handle IPAddresses in ServerAltName fields
+ (something that backports.ssl_match_hostname will do if you also install the
+ ipaddress library from pypi).
+
+
+.. _RFC2818: http://tools.ietf.org/html/rfc2818.html
+
+
+
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/RECORD
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/RECORD b/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/RECORD
new file mode 100644
index 0000000..0b501a8
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/RECORD
@@ -0,0 +1,11 @@
+backports/__init__.py,sha256=1Mf6P1hIdW75vC992JfI0YyknVYpv1dH3_DZzUShnS0,155
+backports/ssl_match_hostname/__init__.py,sha256=hjwZEix1F_V1qLqTRRxypradJ9tKqTvrjW3FOOvNfXc,5574
+backports.ssl_match_hostname-3.5.0.1.dist-info/DESCRIPTION.rst,sha256=0zIPlb6puJyjxvzmHnKDMmgMASFn8UknYAeEOX02Hb4,2635
+backports.ssl_match_hostname-3.5.0.1.dist-info/METADATA,sha256=qTHOOSgi0oj9E_kwdUFJzj9zJ77v-SCDv0i7k39tiSM,3487
+backports.ssl_match_hostname-3.5.0.1.dist-info/RECORD,,
+backports.ssl_match_hostname-3.5.0.1.dist-info/WHEEL,sha256=BtVfdXUcEYLcFjOkbIrCFRyXU4qszVPt-E9o3RWkSNw,93
+backports.ssl_match_hostname-3.5.0.1.dist-info/metadata.json,sha256=u8N-bnr7EwOGQ2JEy5ytSx7vWWH3aNiu3PhTdanaK4U,965
+backports.ssl_match_hostname-3.5.0.1.dist-info/top_level.txt,sha256=cGjaLMOoBR1FK0ApojtzWVmViTtJ7JGIK_HwXiEsvtU,10
+backports.ssl_match_hostname-3.5.0.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
+backports/__init__.pyc,,
+backports/ssl_match_hostname/__init__.pyc,,
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/WHEEL
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/WHEEL b/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/WHEEL
new file mode 100644
index 0000000..5a93381
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/WHEEL
@@ -0,0 +1,5 @@
+Wheel-Version: 1.0
+Generator: bdist_wheel (0.29.0)
+Root-Is-Purelib: true
+Tag: cp27-none-any
+
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/metadata.json
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/metadata.json b/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/metadata.json
new file mode 100644
index 0000000..1511aca
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/metadata.json
@@ -0,0 +1 @@
+{"classifiers": ["Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Python Software Foundation License", "Programming Language :: Python :: 2.4", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.0", "Programming Language :: Python :: 3.1", "Topic :: Security :: Cryptography"], "extensions": {"python.details": {"contacts": [{"email": "toshio@fedoraproject.org", "name": "Toshio Kuratomi", "role": "author"}], "document_names": {"description": "DESCRIPTION.rst"}, "project_urls": {"Home": "http://bitbucket.org/brandon/backports.ssl_match_hostname"}}}, "generator": "bdist_wheel (0.29.0)", "license": "Python Software Foundation License", "metadata_version": "2.0", "name": "backports.ssl-match-hostname", "summary": "The ssl.match_hostname() function from Python 3.5", "version": "3.5.0.1"}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/top_level.txt
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/top_level.txt b/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/top_level.txt
new file mode 100644
index 0000000..99d2be5
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/backports.ssl_match_hostname-3.5.0.1.dist-info/top_level.txt
@@ -0,0 +1 @@
+backports
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/backports/__init__.py
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/backports/__init__.py b/env2/lib/python2.7/site-packages/backports/__init__.py
new file mode 100644
index 0000000..612d328
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/backports/__init__.py
@@ -0,0 +1,3 @@
+# This is a Python "namespace package" http://www.python.org/dev/peps/pep-0382/
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/backports/ssl_match_hostname/__init__.py
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/backports/ssl_match_hostname/__init__.py b/env2/lib/python2.7/site-packages/backports/ssl_match_hostname/__init__.py
new file mode 100644
index 0000000..06538ec
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/backports/ssl_match_hostname/__init__.py
@@ -0,0 +1,154 @@
+"""The match_hostname() function from Python 3.3.3, essential when using SSL."""
+
+import re
+import sys
+
+# ipaddress has been backported to 2.6+ in pypi. If it is installed on the
+# system, use it to handle IPAddress ServerAltnames (this was added in
+# python-3.5) otherwise only do DNS matching. This allows
+# backports.ssl_match_hostname to continue to be used all the way back to
+# python-2.4.
+try:
+ import ipaddress
+except ImportError:
+ ipaddress = None
+
+__version__ = '3.5.0.1'
+
+
+class CertificateError(ValueError):
+ pass
+
+
+def _dnsname_match(dn, hostname, max_wildcards=1):
+ """Matching according to RFC 6125, section 6.4.3
+
+ http://tools.ietf.org/html/rfc6125#section-6.4.3
+ """
+ pats = []
+ if not dn:
+ return False
+
+ # Ported from python3-syntax:
+ # leftmost, *remainder = dn.split(r'.')
+ parts = dn.split(r'.')
+ leftmost = parts[0]
+ remainder = parts[1:]
+
+ wildcards = leftmost.count('*')
+ if wildcards > max_wildcards:
+ # Issue #17980: avoid denials of service by refusing more
+ # than one wildcard per fragment. A survey of established
+ # policy among SSL implementations showed it to be a
+ # reasonable choice.
+ raise CertificateError(
+ "too many wildcards in certificate DNS name: " + repr(dn))
+
+ # speed up common case w/o wildcards
+ if not wildcards:
+ return dn.lower() == hostname.lower()
+
+ # RFC 6125, section 6.4.3, subitem 1.
+ # The client SHOULD NOT attempt to match a presented identifier in which
+ # the wildcard character comprises a label other than the left-most label.
+ if leftmost == '*':
+ # When '*' is a fragment by itself, it matches a non-empty dotless
+ # fragment.
+ pats.append('[^.]+')
+ elif leftmost.startswith('xn--') or hostname.startswith('xn--'):
+ # RFC 6125, section 6.4.3, subitem 3.
+ # The client SHOULD NOT attempt to match a presented identifier
+ # where the wildcard character is embedded within an A-label or
+ # U-label of an internationalized domain name.
+ pats.append(re.escape(leftmost))
+ else:
+ # Otherwise, '*' matches any dotless string, e.g. www*
+ pats.append(re.escape(leftmost).replace(r'\*', '[^.]*'))
+
+ # add the remaining fragments, ignore any wildcards
+ for frag in remainder:
+ pats.append(re.escape(frag))
+
+ pat = re.compile(r'\A' + r'\.'.join(pats) + r'\Z', re.IGNORECASE)
+ return pat.match(hostname)
+
+
+def _to_unicode(obj):
+ if isinstance(obj, str) and sys.version_info < (3,):
+ obj = unicode(obj, encoding='ascii', errors='strict')
+ return obj
+
+def _ipaddress_match(ipname, host_ip):
+ """Exact matching of IP addresses.
+
+ RFC 6125 explicitly doesn't define an algorithm for this
+ (section 1.7.2 - "Out of Scope").
+ """
+ # OpenSSL may add a trailing newline to a subjectAltName's IP address
+ # Divergence from upstream: ipaddress can't handle byte str
+ ip = ipaddress.ip_address(_to_unicode(ipname).rstrip())
+ return ip == host_ip
+
+
+def match_hostname(cert, hostname):
+ """Verify that *cert* (in decoded format as returned by
+ SSLSocket.getpeercert()) matches the *hostname*. RFC 2818 and RFC 6125
+ rules are followed, but IP addresses are not accepted for *hostname*.
+
+ CertificateError is raised on failure. On success, the function
+ returns nothing.
+ """
+ if not cert:
+ raise ValueError("empty or no certificate, match_hostname needs a "
+ "SSL socket or SSL context with either "
+ "CERT_OPTIONAL or CERT_REQUIRED")
+ try:
+ # Divergence from upstream: ipaddress can't handle byte str
+ host_ip = ipaddress.ip_address(_to_unicode(hostname))
+ except ValueError:
+ # Not an IP address (common case)
+ host_ip = None
+ except UnicodeError:
+ # Divergence from upstream: Have to deal with ipaddress not taking
+ # byte strings. addresses should be all ascii, so we consider it not
+ # an ipaddress in this case
+ host_ip = None
+ except AttributeError:
+ # Divergence from upstream: Make ipaddress library optional
+ if ipaddress is None:
+ host_ip = None
+ else:
+ raise
+ dnsnames = []
+ san = cert.get('subjectAltName', ())
+ for key, value in san:
+ if key == 'DNS':
+ if host_ip is None and _dnsname_match(value, hostname):
+ return
+ dnsnames.append(value)
+ elif key == 'IP Address':
+ if host_ip is not None and _ipaddress_match(value, host_ip):
+ return
+ dnsnames.append(value)
+ if not dnsnames:
+ # The subject is only checked when there is no dNSName entry
+ # in subjectAltName
+ for sub in cert.get('subject', ()):
+ for key, value in sub:
+ # XXX according to RFC 2818, the most specific Common Name
+ # must be used.
+ if key == 'commonName':
+ if _dnsname_match(value, hostname):
+ return
+ dnsnames.append(value)
+ if len(dnsnames) > 1:
+ raise CertificateError("hostname %r "
+ "doesn't match either of %s"
+ % (hostname, ', '.join(map(repr, dnsnames))))
+ elif len(dnsnames) == 1:
+ raise CertificateError("hostname %r "
+ "doesn't match %r"
+ % (hostname, dnsnames[0]))
+ else:
+ raise CertificateError("no appropriate commonName or "
+ "subjectAltName fields were found")
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/cached_property-1.3.0.dist-info/DESCRIPTION.rst
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/cached_property-1.3.0.dist-info/DESCRIPTION.rst b/env2/lib/python2.7/site-packages/cached_property-1.3.0.dist-info/DESCRIPTION.rst
new file mode 100644
index 0000000..0387194
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/cached_property-1.3.0.dist-info/DESCRIPTION.rst
@@ -0,0 +1,264 @@
+===============================
+cached-property
+===============================
+
+.. image:: https://img.shields.io/pypi/v/cached-property.svg
+ :target: https://pypi.python.org/pypi/cached-property
+
+.. image:: https://img.shields.io/travis/pydanny/cached-property/master.svg
+ :target: https://travis-ci.org/pydanny/cached-property
+
+
+A decorator for caching properties in classes.
+
+Why?
+-----
+
+* Makes caching of time or computational expensive properties quick and easy.
+* Because I got tired of copy/pasting this code from non-web project to non-web project.
+* I needed something really simple that worked in Python 2 and 3.
+
+How to use it
+--------------
+
+Let's define a class with an expensive property. Every time you stay there the
+price goes up by $50!
+
+.. code-block:: python
+
+ class Monopoly(object):
+
+ def __init__(self):
+ self.boardwalk_price = 500
+
+ @property
+ def boardwalk(self):
+ # In reality, this might represent a database call or time
+ # intensive task like calling a third-party API.
+ self.boardwalk_price += 50
+ return self.boardwalk_price
+
+Now run it:
+
+.. code-block:: python
+
+ >>> monopoly = Monopoly()
+ >>> monopoly.boardwalk
+ 550
+ >>> monopoly.boardwalk
+ 600
+
+Let's convert the boardwalk property into a ``cached_property``.
+
+.. code-block:: python
+
+ from cached_property import cached_property
+
+ class Monopoly(object):
+
+ def __init__(self):
+ self.boardwalk_price = 500
+
+ @cached_property
+ def boardwalk(self):
+ # Again, this is a silly example. Don't worry about it, this is
+ # just an example for clarity.
+ self.boardwalk_price += 50
+ return self.boardwalk_price
+
+Now when we run it the price stays at $550.
+
+.. code-block:: python
+
+ >>> monopoly = Monopoly()
+ >>> monopoly.boardwalk
+ 550
+ >>> monopoly.boardwalk
+ 550
+ >>> monopoly.boardwalk
+ 550
+
+Why doesn't the value of ``monopoly.boardwalk`` change? Because it's a **cached property**!
+
+Invalidating the Cache
+----------------------
+
+Results of cached functions can be invalidated by outside forces. Let's demonstrate how to force the cache to invalidate:
+
+.. code-block:: python
+
+ >>> monopoly = Monopoly()
+ >>> monopoly.boardwalk
+ 550
+ >>> monopoly.boardwalk
+ 550
+ >>> # invalidate the cache
+ >>> del monopoly.__dict__['boardwalk']
+ >>> # request the boardwalk property again
+ >>> monopoly.boardwalk
+ 600
+ >>> monopoly.boardwalk
+ 600
+
+Working with Threads
+---------------------
+
+What if a whole bunch of people want to stay at Boardwalk all at once? This means using threads, which
+unfortunately causes problems with the standard ``cached_property``. In this case, switch to using the
+``threaded_cached_property``:
+
+.. code-block:: python
+
+ from cached_property import threaded_cached_property
+
+ class Monopoly(object):
+
+ def __init__(self):
+ self.boardwalk_price = 500
+
+ @threaded_cached_property
+ def boardwalk(self):
+ """threaded_cached_property is really nice for when no one waits
+ for other people to finish their turn and rudely start rolling
+ dice and moving their pieces."""
+
+ sleep(1)
+ self.boardwalk_price += 50
+ return self.boardwalk_price
+
+Now use it:
+
+.. code-block:: python
+
+ >>> from threading import Thread
+ >>> from monopoly import Monopoly
+ >>> monopoly = Monopoly()
+ >>> threads = []
+ >>> for x in range(10):
+ >>> thread = Thread(target=lambda: monopoly.boardwalk)
+ >>> thread.start()
+ >>> threads.append(thread)
+
+ >>> for thread in threads:
+ >>> thread.join()
+
+ >>> self.assertEqual(m.boardwalk, 550)
+
+
+Timing out the cache
+--------------------
+
+Sometimes you want the price of things to reset after a time. Use the ``ttl``
+versions of ``cached_property`` and ``threaded_cached_property``.
+
+.. code-block:: python
+
+ import random
+ from cached_property import cached_property_with_ttl
+
+ class Monopoly(object):
+
+ @cached_property_with_ttl(ttl=5) # cache invalidates after 5 seconds
+ def dice(self):
+ # I dare the reader to implement a game using this method of 'rolling dice'.
+ return random.randint(2,12)
+
+Now use it:
+
+.. code-block:: python
+
+ >>> monopoly = Monopoly()
+ >>> monopoly.dice
+ 10
+ >>> monopoly.dice
+ 10
+ >>> from time import sleep
+ >>> sleep(6) # Sleeps long enough to expire the cache
+ >>> monopoly.dice
+ 3
+ >>> monopoly.dice
+ 3
+
+**Note:** The ``ttl`` tools do not reliably allow the clearing of the cache. This
+is why they are broken out into seperate tools. See https://github.com/pydanny/cached-property/issues/16.
+
+Credits
+--------
+
+* Pip, Django, Werkzueg, Bottle, Pyramid, and Zope for having their own implementations. This package uses an implementation that matches the Bottle version.
+* Reinout Van Rees for pointing out the `cached_property` decorator to me.
+* My awesome wife `@audreyr`_ who created `cookiecutter`_, which meant rolling this out took me just 15 minutes.
+* @tinche for pointing out the threading issue and providing a solution.
+* @bcho for providing the time-to-expire feature
+
+.. _`@audreyr`: https://github.com/audreyr
+.. _`cookiecutter`: https://github.com/audreyr/cookiecutter
+
+
+
+
+History
+-------
+
+1.3.0 (2015-11-24)
+++++++++++++++++++
+
+* Added official support for Python 3.5, thanks to @pydanny and @audreyr
+* Removed confusingly placed lock from example, thanks to @ionelmc
+* Corrected invalidation cache documentation, thanks to @proofit404
+* Updated to latest Travis-CI environment, thanks to @audreyr
+
+1.2.0 (2015-04-28)
+++++++++++++++++++
+
+* Overall code and test refactoring, thanks to @gsakkis
+* Allow the del statement for resetting cached properties with ttl instead of del obj._cache[attr], thanks to @gsakkis.
+* Uncovered a bug in PyPy, https://bitbucket.org/pypy/pypy/issue/2033/attributeerror-object-attribute-is-read, thanks to @gsakkis
+* Fixed threaded_cached_property_with_ttl to actually be thread-safe, thanks to @gsakkis
+
+1.1.0 (2015-04-04)
+++++++++++++++++++
+
+* Regression: As the cache was not always clearing, we've broken out the time to expire feature to its own set of specific tools, thanks to @pydanny
+* Fixed typo in README, thanks to @zoidbergwill
+
+1.0.0 (2015-02-13)
+++++++++++++++++++
+
+* Added timed to expire feature to ``cached_property`` decorator.
+* **Backwards incompatiblity**: Changed ``del monopoly.boardwalk`` to ``del monopoly['boardwalk']`` in order to support the new TTL feature.
+
+0.1.5 (2014-05-20)
+++++++++++++++++++
+
+* Added threading support with new ``threaded_cached_property`` decorator
+* Documented cache invalidation
+* Updated credits
+* Sourced the bottle implementation
+
+0.1.4 (2014-05-17)
+++++++++++++++++++
+
+* Fix the dang-blarged py_modules argument.
+
+0.1.3 (2014-05-17)
+++++++++++++++++++
+
+* Removed import of package into ``setup.py``
+
+0.1.2 (2014-05-17)
+++++++++++++++++++
+
+* Documentation fixes. Not opening up a RTFD instance for this because it's so simple to use.
+
+0.1.1 (2014-05-17)
+++++++++++++++++++
+
+* setup.py fix. Whoops!
+
+0.1.0 (2014-05-17)
+++++++++++++++++++
+
+* First release on PyPI.
+
+
http://git-wip-us.apache.org/repos/asf/incubator-senssoft-tap/blob/1ca22406/env2/lib/python2.7/site-packages/cached_property-1.3.0.dist-info/INSTALLER
----------------------------------------------------------------------
diff --git a/env2/lib/python2.7/site-packages/cached_property-1.3.0.dist-info/INSTALLER b/env2/lib/python2.7/site-packages/cached_property-1.3.0.dist-info/INSTALLER
new file mode 100644
index 0000000..a1b589e
--- /dev/null
+++ b/env2/lib/python2.7/site-packages/cached_property-1.3.0.dist-info/INSTALLER
@@ -0,0 +1 @@
+pip