initial version
This commit is contained in:
commit
3ff28b362e
3
.tox/lint/.tox-config1
Normal file
3
.tox/lint/.tox-config1
Normal file
@ -0,0 +1,3 @@
|
||||
00000000000000000000000000000000 /usr/bin/python2.7
|
||||
2.1.1 0 0
|
||||
00000000000000000000000000000000 -r/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/test-requirements.txt
|
80
.tox/lint/bin/activate
Normal file
80
.tox/lint/bin/activate
Normal file
@ -0,0 +1,80 @@
|
||||
# This file must be used with "source bin/activate" *from bash*
|
||||
# you cannot run it directly
|
||||
|
||||
deactivate () {
|
||||
unset pydoc
|
||||
|
||||
# reset old environment variables
|
||||
if [ -n "$_OLD_VIRTUAL_PATH" ] ; then
|
||||
PATH="$_OLD_VIRTUAL_PATH"
|
||||
export PATH
|
||||
unset _OLD_VIRTUAL_PATH
|
||||
fi
|
||||
if [ -n "$_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" -o -n "$ZSH_VERSION" ] ; then
|
||||
hash -r 2>/dev/null
|
||||
fi
|
||||
|
||||
if [ -n "$_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="/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint"
|
||||
export VIRTUAL_ENV
|
||||
|
||||
_OLD_VIRTUAL_PATH="$PATH"
|
||||
PATH="$VIRTUAL_ENV/bin:$PATH"
|
||||
export PATH
|
||||
|
||||
# unset PYTHONHOME if set
|
||||
# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
|
||||
# could use `if (set -u; : $PYTHONHOME) ;` in bash
|
||||
if [ -n "$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
|
||||
if [ "`basename \"$VIRTUAL_ENV\"`" = "__" ] ; then
|
||||
# special case for Aspen magic directories
|
||||
# see http://www.zetadev.com/software/aspen/
|
||||
PS1="[`basename \`dirname \"$VIRTUAL_ENV\"\``] $PS1"
|
||||
else
|
||||
PS1="(`basename \"$VIRTUAL_ENV\"`)$PS1"
|
||||
fi
|
||||
fi
|
||||
export PS1
|
||||
fi
|
||||
|
||||
alias 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" -o -n "$ZSH_VERSION" ] ; then
|
||||
hash -r 2>/dev/null
|
||||
fi
|
42
.tox/lint/bin/activate.csh
Normal file
42
.tox/lint/bin/activate.csh
Normal file
@ -0,0 +1,42 @@
|
||||
# This file must be used with "source bin/activate.csh" *from csh*.
|
||||
# You cannot run it directly.
|
||||
# Created by Davide Di Blasi <davidedb@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 "/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint"
|
||||
|
||||
set _OLD_VIRTUAL_PATH="$PATH"
|
||||
setenv PATH "$VIRTUAL_ENV/bin:$PATH"
|
||||
|
||||
|
||||
|
||||
if ("" != "") then
|
||||
set env_name = ""
|
||||
else
|
||||
if (`basename "$VIRTUAL_ENV"` == "__") then
|
||||
# special case for Aspen magic directories
|
||||
# see http://www.zetadev.com/software/aspen/
|
||||
set env_name = `basename \`dirname "$VIRTUAL_ENV"\``
|
||||
else
|
||||
set env_name = `basename "$VIRTUAL_ENV"`
|
||||
endif
|
||||
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
|
||||
|
74
.tox/lint/bin/activate.fish
Normal file
74
.tox/lint/bin/activate.fish
Normal file
@ -0,0 +1,74 @@
|
||||
# This file must be used with "source bin/activate.fish" *from fish* (http://fishshell.com)
|
||||
# you cannot run it directly
|
||||
|
||||
function deactivate -d "Exit virtualenv and return to normal shell 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, so fish_prompt doesn't automatically reload
|
||||
set -l fish_function_path
|
||||
# erase the virtualenv's fish_prompt function, 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 deactivate
|
||||
end
|
||||
end
|
||||
|
||||
# unset irrelevant variables
|
||||
deactivate nondestructive
|
||||
|
||||
set -gx VIRTUAL_ENV "/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint"
|
||||
|
||||
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
|
||||
|
||||
if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
|
||||
# fish uses a function instead of an env var to generate the prompt.
|
||||
|
||||
# copy the current fish_prompt function as the function _old_fish_prompt
|
||||
functions -c fish_prompt _old_fish_prompt
|
||||
|
||||
# with the original prompt function copied, we can override with our own.
|
||||
function fish_prompt
|
||||
# Prompt override?
|
||||
if test -n ""
|
||||
printf "%s%s" "" (set_color normal)
|
||||
_old_fish_prompt
|
||||
return
|
||||
end
|
||||
# ...Otherwise, prepend env
|
||||
set -l _checkbase (basename "$VIRTUAL_ENV")
|
||||
if test $_checkbase = "__"
|
||||
# special case for Aspen magic directories
|
||||
# see http://www.zetadev.com/software/aspen/
|
||||
printf "%s[%s]%s " (set_color -b blue white) (basename (dirname "$VIRTUAL_ENV")) (set_color normal)
|
||||
_old_fish_prompt
|
||||
else
|
||||
printf "%s(%s)%s" (set_color -b blue white) (basename "$VIRTUAL_ENV") (set_color normal)
|
||||
_old_fish_prompt
|
||||
end
|
||||
end
|
||||
|
||||
set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
|
||||
end
|
34
.tox/lint/bin/activate_this.py
Normal file
34
.tox/lint/bin/activate_this.py
Normal file
@ -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['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
|
133
.tox/lint/bin/bzr
Executable file
133
.tox/lint/bin/bzr
Executable file
@ -0,0 +1,133 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# Copyright (C) 2005-2012 Canonical Ltd
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
"""Bazaar -- a free distributed version-control tool"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
# update this on each release
|
||||
_script_version = (2, 6, 0)
|
||||
|
||||
NEED_VERS = (2, 6)
|
||||
|
||||
if sys.version_info < NEED_VERS:
|
||||
sys.stderr.write("bzr: error: cannot find a suitable python interpreter\n")
|
||||
sys.stderr.write(" (need %d.%d or later)\n" % NEED_VERS)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
profiling = False
|
||||
if '--profile-imports' in sys.argv:
|
||||
import profile_imports
|
||||
profile_imports.install()
|
||||
profiling = True
|
||||
|
||||
|
||||
if os.name == "posix":
|
||||
import locale
|
||||
try:
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
except locale.Error, e:
|
||||
sys.stderr.write('bzr: warning: %s\n'
|
||||
' bzr could not set the application locale.\n'
|
||||
' Although this should be no problem for bzr itself, it might\n'
|
||||
' cause problems with some plugins. To investigate the issue,\n'
|
||||
' look at the output of the locale(1p) tool.\n' % e)
|
||||
# Use better default than ascii with posix filesystems that deal in bytes
|
||||
# natively even when the C locale or no locale at all is given. Note that
|
||||
# we need an immortal string for the hack, hence the lack of a hyphen.
|
||||
sys._bzr_default_fs_enc = "utf8"
|
||||
|
||||
|
||||
# The python2.6 release includes some libraries that have deprecation warnings
|
||||
# against the interpreter - see https://bugs.launchpad.net/bzr/+bug/387139
|
||||
warnings.filterwarnings('ignore',
|
||||
r"(struct integer overflow masking is deprecated|"
|
||||
r"'L' format requires 0 <= number <= 4294967295)",
|
||||
DeprecationWarning,
|
||||
'gzip',
|
||||
)
|
||||
|
||||
|
||||
# instruct bzrlib/__init__.py to install lazy_regex
|
||||
sys._bzr_lazy_regex = True
|
||||
try:
|
||||
import bzrlib
|
||||
except ImportError, e:
|
||||
sys.stderr.write("bzr: ERROR: "
|
||||
"Couldn't import bzrlib and dependencies.\n"
|
||||
"Please check the directory containing bzrlib is on your PYTHONPATH.\n"
|
||||
"\n")
|
||||
raise
|
||||
|
||||
if bzrlib.version_info[:3] != _script_version:
|
||||
sys.stderr.write(
|
||||
"bzr: WARNING: bzrlib version doesn't match the bzr program.\n"
|
||||
"This may indicate an installation problem.\n"
|
||||
"bzrlib is version %s from %s\n"
|
||||
"bzr is version %s from %s\n" % (
|
||||
bzrlib._format_version_tuple(bzrlib.version_info),
|
||||
bzrlib.__path__[0],
|
||||
bzrlib._format_version_tuple(_script_version),
|
||||
__file__))
|
||||
|
||||
|
||||
import bzrlib.inspect_for_copy
|
||||
bzrlib.inspect_for_copy.import_copy_with_hacked_inspect()
|
||||
|
||||
import bzrlib.breakin
|
||||
bzrlib.breakin.hook_debugger_to_signal()
|
||||
|
||||
import bzrlib.decorators
|
||||
if ('--lsprof' in sys.argv
|
||||
or '--lsprof-file' in sys.argv
|
||||
or '--profile' in sys.argv
|
||||
or '--lsprof-timed' in sys.argv):
|
||||
bzrlib.decorators.use_pretty_decorators()
|
||||
else:
|
||||
bzrlib.decorators.use_fast_decorators()
|
||||
|
||||
import bzrlib.commands
|
||||
import bzrlib.trace
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
library_state = bzrlib.initialize()
|
||||
library_state.__enter__()
|
||||
try:
|
||||
exit_val = bzrlib.commands.main()
|
||||
if profiling:
|
||||
profile_imports.log_stack_info(sys.stderr)
|
||||
finally:
|
||||
library_state.__exit__(None, None, None)
|
||||
|
||||
# By this point we really have completed everything we want to do, and
|
||||
# there's no point doing any additional cleanup. Abruptly exiting here
|
||||
# stops any background threads getting into trouble as code is unloaded,
|
||||
# and it may also be slightly faster, through avoiding gc of objects that
|
||||
# are just about to be discarded anyhow. This does mean that atexit hooks
|
||||
# won't run but we don't use them. Also file buffers won't be flushed,
|
||||
# but our policy is to always close files from a finally block. -- mbp 20070215
|
||||
sys.exitfunc()
|
||||
os._exit(exit_val)
|
||||
else:
|
||||
raise ImportError("The bzr script cannot be imported.")
|
10
.tox/lint/bin/charm
Executable file
10
.tox/lint/bin/charm
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm')()
|
||||
)
|
10
.tox/lint/bin/charm-add
Executable file
10
.tox/lint/bin/charm-add
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-add'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-add')()
|
||||
)
|
10
.tox/lint/bin/charm-build
Executable file
10
.tox/lint/bin/charm-build
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-build'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-build')()
|
||||
)
|
10
.tox/lint/bin/charm-compose
Executable file
10
.tox/lint/bin/charm-compose
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-compose'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-compose')()
|
||||
)
|
10
.tox/lint/bin/charm-create
Executable file
10
.tox/lint/bin/charm-create
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-create'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-create')()
|
||||
)
|
10
.tox/lint/bin/charm-generate
Executable file
10
.tox/lint/bin/charm-generate
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-generate'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-generate')()
|
||||
)
|
10
.tox/lint/bin/charm-get
Executable file
10
.tox/lint/bin/charm-get
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-get'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-get')()
|
||||
)
|
10
.tox/lint/bin/charm-getall
Executable file
10
.tox/lint/bin/charm-getall
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-getall'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-getall')()
|
||||
)
|
10
.tox/lint/bin/charm-help
Executable file
10
.tox/lint/bin/charm-help
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-help'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-help')()
|
||||
)
|
10
.tox/lint/bin/charm-info
Executable file
10
.tox/lint/bin/charm-info
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-info'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-info')()
|
||||
)
|
10
.tox/lint/bin/charm-inspect
Executable file
10
.tox/lint/bin/charm-inspect
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-inspect'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-inspect')()
|
||||
)
|
10
.tox/lint/bin/charm-layers
Executable file
10
.tox/lint/bin/charm-layers
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-layers'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-layers')()
|
||||
)
|
10
.tox/lint/bin/charm-list
Executable file
10
.tox/lint/bin/charm-list
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-list'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-list')()
|
||||
)
|
10
.tox/lint/bin/charm-promulgate
Executable file
10
.tox/lint/bin/charm-promulgate
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-promulgate'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-promulgate')()
|
||||
)
|
10
.tox/lint/bin/charm-proof
Executable file
10
.tox/lint/bin/charm-proof
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-proof'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-proof')()
|
||||
)
|
10
.tox/lint/bin/charm-refresh
Executable file
10
.tox/lint/bin/charm-refresh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-refresh'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-refresh')()
|
||||
)
|
10
.tox/lint/bin/charm-review
Executable file
10
.tox/lint/bin/charm-review
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-review'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-review')()
|
||||
)
|
10
.tox/lint/bin/charm-review-queue
Executable file
10
.tox/lint/bin/charm-review-queue
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-review-queue'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-review-queue')()
|
||||
)
|
10
.tox/lint/bin/charm-search
Executable file
10
.tox/lint/bin/charm-search
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-search'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-search')()
|
||||
)
|
10
.tox/lint/bin/charm-subscribers
Executable file
10
.tox/lint/bin/charm-subscribers
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-subscribers'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-subscribers')()
|
||||
)
|
10
.tox/lint/bin/charm-test
Executable file
10
.tox/lint/bin/charm-test
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-test'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-test')()
|
||||
)
|
10
.tox/lint/bin/charm-unpromulgate
Executable file
10
.tox/lint/bin/charm-unpromulgate
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-unpromulgate'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-unpromulgate')()
|
||||
)
|
10
.tox/lint/bin/charm-update
Executable file
10
.tox/lint/bin/charm-update
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-update'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-update')()
|
||||
)
|
10
.tox/lint/bin/charm-version
Executable file
10
.tox/lint/bin/charm-version
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-version'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-version')()
|
||||
)
|
3
.tox/lint/bin/cheetah
Executable file
3
.tox/lint/bin/cheetah
Executable file
@ -0,0 +1,3 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
from Cheetah.CheetahWrapper import _cheetah
|
||||
_cheetah()
|
6
.tox/lint/bin/cheetah-analyze
Executable file
6
.tox/lint/bin/cheetah-analyze
Executable file
@ -0,0 +1,6 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
from Cheetah import DirectiveAnalyzer
|
||||
|
||||
if __name__ == '__main__':
|
||||
DirectiveAnalyzer.main()
|
3
.tox/lint/bin/cheetah-compile
Executable file
3
.tox/lint/bin/cheetah-compile
Executable file
@ -0,0 +1,3 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
from Cheetah.CheetahWrapper import _cheetah_compile
|
||||
_cheetah_compile()
|
11
.tox/lint/bin/easy_install
Executable file
11
.tox/lint/bin/easy_install
Executable file
@ -0,0 +1,11 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# -*- 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())
|
11
.tox/lint/bin/easy_install-2.7
Executable file
11
.tox/lint/bin/easy_install-2.7
Executable file
@ -0,0 +1,11 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# -*- 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())
|
11
.tox/lint/bin/flake8
Executable file
11
.tox/lint/bin/flake8
Executable file
@ -0,0 +1,11 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
|
||||
from flake8.main import main
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(main())
|
14
.tox/lint/bin/getchangeset
Executable file
14
.tox/lint/bin/getchangeset
Executable file
@ -0,0 +1,14 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# Copyright 2015 Canonical Ltd.
|
||||
# Licensed under the AGPLv3, see LICENCE file for details.
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import sys
|
||||
|
||||
from jujubundlelib import cli
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(cli.get_changeset(sys.argv[1:]))
|
10
.tox/lint/bin/juju-bundle
Executable file
10
.tox/lint/bin/juju-bundle
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','juju-bundle'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'juju-bundle')()
|
||||
)
|
10
.tox/lint/bin/juju-charm
Executable file
10
.tox/lint/bin/juju-charm
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','juju-charm'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'juju-charm')()
|
||||
)
|
10
.tox/lint/bin/juju-test
Executable file
10
.tox/lint/bin/juju-test
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','juju-test'
|
||||
__requires__ = 'charm-tools==1.10.0'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'juju-test')()
|
||||
)
|
10
.tox/lint/bin/keyring
Executable file
10
.tox/lint/bin/keyring
Executable file
@ -0,0 +1,10 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# EASY-INSTALL-ENTRY-SCRIPT: 'keyring==5.7','console_scripts','keyring'
|
||||
__requires__ = 'keyring==5.7'
|
||||
import sys
|
||||
from pkg_resources import load_entry_point
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(
|
||||
load_entry_point('keyring==5.7', 'console_scripts', 'keyring')()
|
||||
)
|
34
.tox/lint/bin/markdown_py
Executable file
34
.tox/lint/bin/markdown_py
Executable file
@ -0,0 +1,34 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
"""
|
||||
Python Markdown, the Command Line Script
|
||||
========================================
|
||||
|
||||
This is the command line script for Python Markdown.
|
||||
|
||||
Basic use from the command line:
|
||||
|
||||
markdown source.txt > destination.html
|
||||
|
||||
Run "markdown --help" to see more options.
|
||||
|
||||
See markdown/__init__.py for information on using Python Markdown as a module.
|
||||
|
||||
## Authors and License
|
||||
|
||||
Started by [Manfred Stienstra](http://www.dwerg.net/). Continued and
|
||||
maintained by [Yuri Takhteyev](http://www.freewisdom.org), [Waylan
|
||||
Limberg](http://achinghead.com/) and [Artem Yunusov](http://blog.splyer.com).
|
||||
|
||||
Contact: markdown@freewisdom.org
|
||||
|
||||
Copyright 2007, 2008 The Python Markdown Project (v. 1.7 and later)
|
||||
Copyright 200? Django Software Foundation (OrderedDict implementation)
|
||||
Copyright 2004, 2005, 2006 Yuri Takhteyev (v. 0.2-1.6b)
|
||||
Copyright 2004 Manfred Stienstra (the original version)
|
||||
|
||||
License: BSD (see docs/LICENSE for details).
|
||||
"""
|
||||
|
||||
if __name__ == '__main__':
|
||||
from markdown.__main__ import run
|
||||
run()
|
11
.tox/lint/bin/ostestr
Executable file
11
.tox/lint/bin/ostestr
Executable file
@ -0,0 +1,11 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
|
||||
from os_testr.os_testr import main
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(main())
|
11
.tox/lint/bin/pbr
Executable file
11
.tox/lint/bin/pbr
Executable file
@ -0,0 +1,11 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
|
||||
from pbr.cmd.main import main
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(main())
|
11
.tox/lint/bin/pep8
Executable file
11
.tox/lint/bin/pep8
Executable file
@ -0,0 +1,11 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
|
||||
from pep8 import _main
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(_main())
|
11
.tox/lint/bin/pip
Executable file
11
.tox/lint/bin/pip
Executable file
@ -0,0 +1,11 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# -*- 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())
|
11
.tox/lint/bin/pip2
Executable file
11
.tox/lint/bin/pip2
Executable file
@ -0,0 +1,11 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# -*- 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())
|
11
.tox/lint/bin/pip2.7
Executable file
11
.tox/lint/bin/pip2.7
Executable file
@ -0,0 +1,11 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# -*- 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())
|
11
.tox/lint/bin/pybabel
Executable file
11
.tox/lint/bin/pybabel
Executable file
@ -0,0 +1,11 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
|
||||
from babel.messages.frontend import main
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(main())
|
11
.tox/lint/bin/pyflakes
Executable file
11
.tox/lint/bin/pyflakes
Executable file
@ -0,0 +1,11 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
|
||||
from pyflakes.api import main
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(main())
|
1
.tox/lint/bin/python
Symbolic link
1
.tox/lint/bin/python
Symbolic link
@ -0,0 +1 @@
|
||||
python2.7
|
1
.tox/lint/bin/python2
Symbolic link
1
.tox/lint/bin/python2
Symbolic link
@ -0,0 +1 @@
|
||||
python2.7
|
BIN
.tox/lint/bin/python2.7
Executable file
BIN
.tox/lint/bin/python2.7
Executable file
Binary file not shown.
42
.tox/lint/bin/subunit-1to2
Executable file
42
.tox/lint/bin/subunit-1to2
Executable file
@ -0,0 +1,42 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# subunit: extensions to python unittest to get test results from subprocesses.
|
||||
# Copyright (C) 2013 Robert Collins <robertc@robertcollins.net>
|
||||
#
|
||||
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
|
||||
# license at the users choice. A copy of both licenses are available in the
|
||||
# project source as Apache-2.0 and BSD. You may not use this file except in
|
||||
# compliance with one of these two licences.
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# license you chose for the specific language governing permissions and
|
||||
# limitations under that license.
|
||||
#
|
||||
|
||||
"""Convert a version 1 subunit stream to version 2 stream."""
|
||||
|
||||
from optparse import OptionParser
|
||||
import sys
|
||||
|
||||
from testtools import ExtendedToStreamDecorator
|
||||
|
||||
from subunit import StreamResultToBytes
|
||||
from subunit.filters import find_stream, run_tests_from_stream
|
||||
|
||||
|
||||
def make_options(description):
|
||||
parser = OptionParser(description=__doc__)
|
||||
return parser
|
||||
|
||||
|
||||
def main():
|
||||
parser = make_options(__doc__)
|
||||
(options, args) = parser.parse_args()
|
||||
run_tests_from_stream(find_stream(sys.stdin, args),
|
||||
ExtendedToStreamDecorator(StreamResultToBytes(sys.stdout)))
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
53
.tox/lint/bin/subunit-2to1
Executable file
53
.tox/lint/bin/subunit-2to1
Executable file
@ -0,0 +1,53 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# subunit: extensions to python unittest to get test results from subprocesses.
|
||||
# Copyright (C) 2013 Robert Collins <robertc@robertcollins.net>
|
||||
#
|
||||
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
|
||||
# license at the users choice. A copy of both licenses are available in the
|
||||
# project source as Apache-2.0 and BSD. You may not use this file except in
|
||||
# compliance with one of these two licences.
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# license you chose for the specific language governing permissions and
|
||||
# limitations under that license.
|
||||
#
|
||||
|
||||
"""Convert a version 2 subunit stream to a version 1 stream."""
|
||||
|
||||
from optparse import OptionParser
|
||||
import sys
|
||||
|
||||
from testtools import (
|
||||
StreamToExtendedDecorator,
|
||||
StreamResultRouter,
|
||||
)
|
||||
|
||||
from subunit import ByteStreamToStreamResult, TestProtocolClient
|
||||
from subunit.filters import find_stream, run_tests_from_stream
|
||||
from subunit.test_results import CatFiles
|
||||
|
||||
|
||||
def make_options(description):
|
||||
parser = OptionParser(description=__doc__)
|
||||
return parser
|
||||
|
||||
|
||||
def main():
|
||||
parser = make_options(__doc__)
|
||||
(options, args) = parser.parse_args()
|
||||
case = ByteStreamToStreamResult(
|
||||
find_stream(sys.stdin, args), non_subunit_name='stdout')
|
||||
result = StreamToExtendedDecorator(TestProtocolClient(sys.stdout))
|
||||
result = StreamResultRouter(result)
|
||||
cat = CatFiles(sys.stdout)
|
||||
result.add_rule(cat, 'test_id', test_id=None)
|
||||
result.startTestRun()
|
||||
case.run(result)
|
||||
result.stopTestRun()
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
165
.tox/lint/bin/subunit-filter
Executable file
165
.tox/lint/bin/subunit-filter
Executable file
@ -0,0 +1,165 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# subunit: extensions to python unittest to get test results from subprocesses.
|
||||
# Copyright (C) 200-2013 Robert Collins <robertc@robertcollins.net>
|
||||
# (C) 2009 Martin Pool
|
||||
#
|
||||
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
|
||||
# license at the users choice. A copy of both licenses are available in the
|
||||
# project source as Apache-2.0 and BSD. You may not use this file except in
|
||||
# compliance with one of these two licences.
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# license you chose for the specific language governing permissions and
|
||||
# limitations under that license.
|
||||
#
|
||||
|
||||
"""Filter a subunit stream to include/exclude tests.
|
||||
|
||||
The default is to strip successful tests.
|
||||
|
||||
Tests can be filtered by Python regular expressions with --with and --without,
|
||||
which match both the test name and the error text (if any). The result
|
||||
contains tests which match any of the --with expressions and none of the
|
||||
--without expressions. For case-insensitive matching prepend '(?i)'.
|
||||
Remember to quote shell metacharacters.
|
||||
"""
|
||||
|
||||
from optparse import OptionParser
|
||||
import sys
|
||||
import re
|
||||
|
||||
from testtools import ExtendedToStreamDecorator, StreamToExtendedDecorator
|
||||
|
||||
from subunit import (
|
||||
DiscardStream,
|
||||
ProtocolTestCase,
|
||||
StreamResultToBytes,
|
||||
read_test_list,
|
||||
)
|
||||
from subunit.filters import filter_by_result, find_stream
|
||||
from subunit.test_results import (
|
||||
and_predicates,
|
||||
make_tag_filter,
|
||||
TestResultFilter,
|
||||
)
|
||||
|
||||
|
||||
def make_options(description):
|
||||
parser = OptionParser(description=__doc__)
|
||||
parser.add_option("--error", action="store_false",
|
||||
help="include errors", default=False, dest="error")
|
||||
parser.add_option("-e", "--no-error", action="store_true",
|
||||
help="exclude errors", dest="error")
|
||||
parser.add_option("--failure", action="store_false",
|
||||
help="include failures", default=False, dest="failure")
|
||||
parser.add_option("-f", "--no-failure", action="store_true",
|
||||
help="exclude failures", dest="failure")
|
||||
parser.add_option("--passthrough", action="store_false",
|
||||
help="Forward non-subunit input as 'stdout'.", default=False,
|
||||
dest="no_passthrough")
|
||||
parser.add_option("--no-passthrough", action="store_true",
|
||||
help="Discard all non subunit input.", default=False,
|
||||
dest="no_passthrough")
|
||||
parser.add_option("-s", "--success", action="store_false",
|
||||
help="include successes", dest="success")
|
||||
parser.add_option("--no-success", action="store_true",
|
||||
help="exclude successes", default=True, dest="success")
|
||||
parser.add_option("--no-skip", action="store_true",
|
||||
help="exclude skips", dest="skip")
|
||||
parser.add_option("--xfail", action="store_false",
|
||||
help="include expected falures", default=True, dest="xfail")
|
||||
parser.add_option("--no-xfail", action="store_true",
|
||||
help="exclude expected falures", default=True, dest="xfail")
|
||||
parser.add_option(
|
||||
"--with-tag", type=str,
|
||||
help="include tests with these tags", action="append", dest="with_tags")
|
||||
parser.add_option(
|
||||
"--without-tag", type=str,
|
||||
help="exclude tests with these tags", action="append", dest="without_tags")
|
||||
parser.add_option("-m", "--with", type=str,
|
||||
help="regexp to include (case-sensitive by default)",
|
||||
action="append", dest="with_regexps")
|
||||
parser.add_option("--fixup-expected-failures", type=str,
|
||||
help="File with list of test ids that are expected to fail; on failure "
|
||||
"their result will be changed to xfail; on success they will be "
|
||||
"changed to error.", dest="fixup_expected_failures", action="append")
|
||||
parser.add_option("--without", type=str,
|
||||
help="regexp to exclude (case-sensitive by default)",
|
||||
action="append", dest="without_regexps")
|
||||
parser.add_option("-F", "--only-genuine-failures", action="callback",
|
||||
callback=only_genuine_failures_callback,
|
||||
help="Only pass through failures and exceptions.")
|
||||
return parser
|
||||
|
||||
|
||||
def only_genuine_failures_callback(option, opt, value, parser):
|
||||
parser.rargs.insert(0, '--no-passthrough')
|
||||
parser.rargs.insert(0, '--no-xfail')
|
||||
parser.rargs.insert(0, '--no-skip')
|
||||
parser.rargs.insert(0, '--no-success')
|
||||
|
||||
|
||||
def _compile_re_from_list(l):
|
||||
return re.compile("|".join(l), re.MULTILINE)
|
||||
|
||||
|
||||
def _make_regexp_filter(with_regexps, without_regexps):
|
||||
"""Make a callback that checks tests against regexps.
|
||||
|
||||
with_regexps and without_regexps are each either a list of regexp strings,
|
||||
or None.
|
||||
"""
|
||||
with_re = with_regexps and _compile_re_from_list(with_regexps)
|
||||
without_re = without_regexps and _compile_re_from_list(without_regexps)
|
||||
|
||||
def check_regexps(test, outcome, err, details, tags):
|
||||
"""Check if this test and error match the regexp filters."""
|
||||
test_str = str(test) + outcome + str(err) + str(details)
|
||||
if with_re and not with_re.search(test_str):
|
||||
return False
|
||||
if without_re and without_re.search(test_str):
|
||||
return False
|
||||
return True
|
||||
return check_regexps
|
||||
|
||||
|
||||
def _make_result(output, options, predicate):
|
||||
"""Make the result that we'll send the test outcomes to."""
|
||||
fixup_expected_failures = set()
|
||||
for path in options.fixup_expected_failures or ():
|
||||
fixup_expected_failures.update(read_test_list(path))
|
||||
return StreamToExtendedDecorator(TestResultFilter(
|
||||
ExtendedToStreamDecorator(
|
||||
StreamResultToBytes(output)),
|
||||
filter_error=options.error,
|
||||
filter_failure=options.failure,
|
||||
filter_success=options.success,
|
||||
filter_skip=options.skip,
|
||||
filter_xfail=options.xfail,
|
||||
filter_predicate=predicate,
|
||||
fixup_expected_failures=fixup_expected_failures))
|
||||
|
||||
|
||||
def main():
|
||||
parser = make_options(__doc__)
|
||||
(options, args) = parser.parse_args()
|
||||
|
||||
regexp_filter = _make_regexp_filter(
|
||||
options.with_regexps, options.without_regexps)
|
||||
tag_filter = make_tag_filter(options.with_tags, options.without_tags)
|
||||
filter_predicate = and_predicates([regexp_filter, tag_filter])
|
||||
|
||||
filter_by_result(
|
||||
lambda output_to: _make_result(sys.stdout, options, filter_predicate),
|
||||
output_path=None,
|
||||
passthrough=(not options.no_passthrough),
|
||||
forward=False,
|
||||
protocol_version=2,
|
||||
input_stream=find_stream(sys.stdin, args))
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
60
.tox/lint/bin/subunit-ls
Executable file
60
.tox/lint/bin/subunit-ls
Executable file
@ -0,0 +1,60 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# subunit: extensions to python unittest to get test results from subprocesses.
|
||||
# Copyright (C) 2008 Robert Collins <robertc@robertcollins.net>
|
||||
#
|
||||
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
|
||||
# license at the users choice. A copy of both licenses are available in the
|
||||
# project source as Apache-2.0 and BSD. You may not use this file except in
|
||||
# compliance with one of these two licences.
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# license you chose for the specific language governing permissions and
|
||||
# limitations under that license.
|
||||
#
|
||||
|
||||
"""List tests in a subunit stream."""
|
||||
|
||||
from optparse import OptionParser
|
||||
import sys
|
||||
|
||||
from testtools import (
|
||||
CopyStreamResult, StreamToExtendedDecorator, StreamResultRouter,
|
||||
StreamSummary)
|
||||
|
||||
from subunit import ByteStreamToStreamResult
|
||||
from subunit.filters import find_stream, run_tests_from_stream
|
||||
from subunit.test_results import (
|
||||
CatFiles,
|
||||
TestIdPrintingResult,
|
||||
)
|
||||
|
||||
|
||||
parser = OptionParser(description=__doc__)
|
||||
parser.add_option("--times", action="store_true",
|
||||
help="list the time each test took (requires a timestamped stream)",
|
||||
default=False)
|
||||
parser.add_option("--exists", action="store_true",
|
||||
help="list tests that are reported as existing (as well as ran)",
|
||||
default=False)
|
||||
parser.add_option("--no-passthrough", action="store_true",
|
||||
help="Hide all non subunit input.", default=False, dest="no_passthrough")
|
||||
(options, args) = parser.parse_args()
|
||||
test = ByteStreamToStreamResult(
|
||||
find_stream(sys.stdin, args), non_subunit_name="stdout")
|
||||
result = TestIdPrintingResult(sys.stdout, options.times, options.exists)
|
||||
if not options.no_passthrough:
|
||||
result = StreamResultRouter(result)
|
||||
cat = CatFiles(sys.stdout)
|
||||
result.add_rule(cat, 'test_id', test_id=None)
|
||||
summary = StreamSummary()
|
||||
result = CopyStreamResult([result, summary])
|
||||
result.startTestRun()
|
||||
test.run(result)
|
||||
result.stopTestRun()
|
||||
if summary.wasSuccessful():
|
||||
exit_code = 0
|
||||
else:
|
||||
exit_code = 1
|
||||
sys.exit(exit_code)
|
48
.tox/lint/bin/subunit-notify
Executable file
48
.tox/lint/bin/subunit-notify
Executable file
@ -0,0 +1,48 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# subunit: extensions to python unittest to get test results from subprocesses.
|
||||
# Copyright (C) 2010 Jelmer Vernooij <jelmer@samba.org>
|
||||
#
|
||||
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
|
||||
# license at the users choice. A copy of both licenses are available in the
|
||||
# project source as Apache-2.0 and BSD. You may not use this file except in
|
||||
# compliance with one of these two licences.
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# license you chose for the specific language governing permissions and
|
||||
# limitations under that license.
|
||||
#
|
||||
|
||||
"""Notify the user of a finished test run."""
|
||||
|
||||
import pygtk
|
||||
pygtk.require('2.0')
|
||||
import pynotify
|
||||
from testtools import StreamToExtendedDecorator
|
||||
|
||||
from subunit import TestResultStats
|
||||
from subunit.filters import run_filter_script
|
||||
|
||||
if not pynotify.init("Subunit-notify"):
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def notify_of_result(result):
|
||||
result = result.decorated
|
||||
if result.failed_tests > 0:
|
||||
summary = "Test run failed"
|
||||
else:
|
||||
summary = "Test run successful"
|
||||
body = "Total tests: %d; Passed: %d; Failed: %d" % (
|
||||
result.total_tests,
|
||||
result.passed_tests,
|
||||
result.failed_tests,
|
||||
)
|
||||
nw = pynotify.Notification(summary, body)
|
||||
nw.show()
|
||||
|
||||
|
||||
run_filter_script(
|
||||
lambda output:StreamToExtendedDecorator(TestResultStats(output)),
|
||||
__doc__, notify_of_result, protocol_version=2)
|
23
.tox/lint/bin/subunit-output
Executable file
23
.tox/lint/bin/subunit-output
Executable file
@ -0,0 +1,23 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# subunit: extensions to python unittest to get test results from subprocesses.
|
||||
# Copyright (C) 2013 Subunit Contributors
|
||||
#
|
||||
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
|
||||
# license at the users choice. A copy of both licenses are available in the
|
||||
# project source as Apache-2.0 and BSD. You may not use this file except in
|
||||
# compliance with one of these two licences.
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# license you chose for the specific language governing permissions and
|
||||
# limitations under that license.
|
||||
|
||||
|
||||
"""A command-line tool to generate a subunit result byte-stream."""
|
||||
|
||||
from subunit._output import output_main
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
exit(output_main())
|
32
.tox/lint/bin/subunit-stats
Executable file
32
.tox/lint/bin/subunit-stats
Executable file
@ -0,0 +1,32 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# subunit: extensions to python unittest to get test results from subprocesses.
|
||||
# Copyright (C) 2009 Robert Collins <robertc@robertcollins.net>
|
||||
#
|
||||
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
|
||||
# license at the users choice. A copy of both licenses are available in the
|
||||
# project source as Apache-2.0 and BSD. You may not use this file except in
|
||||
# compliance with one of these two licences.
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# license you chose for the specific language governing permissions and
|
||||
# limitations under that license.
|
||||
#
|
||||
|
||||
"""Filter a subunit stream to get aggregate statistics."""
|
||||
|
||||
import sys
|
||||
|
||||
from testtools import StreamToExtendedDecorator
|
||||
|
||||
from subunit import TestResultStats
|
||||
from subunit.filters import run_filter_script
|
||||
|
||||
|
||||
result = TestResultStats(sys.stdout)
|
||||
def show_stats(r):
|
||||
r.decorated.formatStats()
|
||||
run_filter_script(
|
||||
lambda output:StreamToExtendedDecorator(result),
|
||||
__doc__, show_stats, protocol_version=2, passthrough_subunit=False)
|
27
.tox/lint/bin/subunit-tags
Executable file
27
.tox/lint/bin/subunit-tags
Executable file
@ -0,0 +1,27 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# subunit: extensions to python unittest to get test results from subprocesses.
|
||||
# Copyright (C) 2009 Robert Collins <robertc@robertcollins.net>
|
||||
#
|
||||
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
|
||||
# license at the users choice. A copy of both licenses are available in the
|
||||
# project source as Apache-2.0 and BSD. You may not use this file except in
|
||||
# compliance with one of these two licences.
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# license you chose for the specific language governing permissions and
|
||||
# limitations under that license.
|
||||
#
|
||||
|
||||
"""A filter to change tags on a subunit stream.
|
||||
|
||||
subunit-tags foo -> adds foo
|
||||
subunit-tags foo -bar -> adds foo and removes bar
|
||||
"""
|
||||
|
||||
import sys
|
||||
|
||||
from subunit import tag_stream
|
||||
|
||||
sys.exit(tag_stream(sys.stdin, sys.stdout, sys.argv[1:]))
|
11
.tox/lint/bin/subunit-trace
Executable file
11
.tox/lint/bin/subunit-trace
Executable file
@ -0,0 +1,11 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
|
||||
from os_testr.subunit_trace import main
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(main())
|
26
.tox/lint/bin/subunit2csv
Executable file
26
.tox/lint/bin/subunit2csv
Executable file
@ -0,0 +1,26 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# subunit: extensions to python unittest to get test results from subprocesses.
|
||||
# Copyright (C) 2009 Robert Collins <robertc@robertcollins.net>
|
||||
#
|
||||
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
|
||||
# license at the users choice. A copy of both licenses are available in the
|
||||
# project source as Apache-2.0 and BSD. You may not use this file except in
|
||||
# compliance with one of these two licences.
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under these licenses is d on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# license you chose for the specific language governing permissions and
|
||||
# limitations under that license.
|
||||
#
|
||||
|
||||
"""Turn a subunit stream into a CSV"""
|
||||
|
||||
from testtools import StreamToExtendedDecorator
|
||||
|
||||
from subunit.filters import run_filter_script
|
||||
from subunit.test_results import CsvResult
|
||||
|
||||
|
||||
run_filter_script(lambda output:StreamToExtendedDecorator(CsvResult(output)),
|
||||
__doc__, protocol_version=2)
|
240
.tox/lint/bin/subunit2gtk
Executable file
240
.tox/lint/bin/subunit2gtk
Executable file
@ -0,0 +1,240 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# subunit: extensions to python unittest to get test results from subprocesses.
|
||||
# Copyright (C) 2009 Robert Collins <robertc@robertcollins.net>
|
||||
#
|
||||
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
|
||||
# license at the users choice. A copy of both licenses are available in the
|
||||
# project source as Apache-2.0 and BSD. You may not use this file except in
|
||||
# compliance with one of these two licences.
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# license you chose for the specific language governing permissions and
|
||||
# limitations under that license.
|
||||
#
|
||||
|
||||
### The GTK progress bar __init__ function is derived from the pygtk tutorial:
|
||||
# The PyGTK Tutorial is Copyright (C) 2001-2005 John Finlay.
|
||||
#
|
||||
# The GTK Tutorial is Copyright (C) 1997 Ian Main.
|
||||
#
|
||||
# Copyright (C) 1998-1999 Tony Gale.
|
||||
#
|
||||
# Permission is granted to make and distribute verbatim copies of this manual
|
||||
# provided the copyright notice and this permission notice are preserved on all
|
||||
# copies.
|
||||
#
|
||||
# Permission is granted to copy and distribute modified versions of this
|
||||
# document under the conditions for verbatim copying, provided that this
|
||||
# copyright notice is included exactly as in the original, and that the entire
|
||||
# resulting derived work is distributed under the terms of a permission notice
|
||||
# identical to this one.
|
||||
#
|
||||
# Permission is granted to copy and distribute translations of this document
|
||||
# into another language, under the above conditions for modified versions.
|
||||
#
|
||||
# If you are intending to incorporate this document into a published work,
|
||||
# please contact the maintainer, and we will make an effort to ensure that you
|
||||
# have the most up to date information available.
|
||||
#
|
||||
# There is no guarantee that this document lives up to its intended purpose.
|
||||
# This is simply provided as a free resource. As such, the authors and
|
||||
# maintainers of the information provided within can not make any guarantee
|
||||
# that the information is even accurate.
|
||||
|
||||
"""Display a subunit stream in a gtk progress window."""
|
||||
|
||||
import sys
|
||||
import threading
|
||||
import unittest
|
||||
|
||||
import pygtk
|
||||
pygtk.require('2.0')
|
||||
import gtk, gtk.gdk, gobject
|
||||
|
||||
from testtools import StreamToExtendedDecorator
|
||||
|
||||
from subunit import (
|
||||
PROGRESS_POP,
|
||||
PROGRESS_PUSH,
|
||||
PROGRESS_SET,
|
||||
ByteStreamToStreamResult,
|
||||
)
|
||||
from subunit.progress_model import ProgressModel
|
||||
|
||||
|
||||
class GTKTestResult(unittest.TestResult):
|
||||
|
||||
def __init__(self):
|
||||
super(GTKTestResult, self).__init__()
|
||||
# Instance variables (in addition to TestResult)
|
||||
self.window = None
|
||||
self.run_label = None
|
||||
self.ok_label = None
|
||||
self.not_ok_label = None
|
||||
self.total_tests = None
|
||||
|
||||
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
|
||||
self.window.set_resizable(True)
|
||||
|
||||
self.window.connect("destroy", gtk.main_quit)
|
||||
self.window.set_title("Tests...")
|
||||
self.window.set_border_width(0)
|
||||
|
||||
vbox = gtk.VBox(False, 5)
|
||||
vbox.set_border_width(10)
|
||||
self.window.add(vbox)
|
||||
vbox.show()
|
||||
|
||||
# Create a centering alignment object
|
||||
align = gtk.Alignment(0.5, 0.5, 0, 0)
|
||||
vbox.pack_start(align, False, False, 5)
|
||||
align.show()
|
||||
|
||||
# Create the ProgressBar
|
||||
self.pbar = gtk.ProgressBar()
|
||||
align.add(self.pbar)
|
||||
self.pbar.set_text("Running")
|
||||
self.pbar.show()
|
||||
self.progress_model = ProgressModel()
|
||||
|
||||
separator = gtk.HSeparator()
|
||||
vbox.pack_start(separator, False, False, 0)
|
||||
separator.show()
|
||||
|
||||
# rows, columns, homogeneous
|
||||
table = gtk.Table(2, 3, False)
|
||||
vbox.pack_start(table, False, True, 0)
|
||||
table.show()
|
||||
# Show summary details about the run. Could use an expander.
|
||||
label = gtk.Label("Run:")
|
||||
table.attach(label, 0, 1, 1, 2, gtk.EXPAND | gtk.FILL,
|
||||
gtk.EXPAND | gtk.FILL, 5, 5)
|
||||
label.show()
|
||||
self.run_label = gtk.Label("N/A")
|
||||
table.attach(self.run_label, 1, 2, 1, 2, gtk.EXPAND | gtk.FILL,
|
||||
gtk.EXPAND | gtk.FILL, 5, 5)
|
||||
self.run_label.show()
|
||||
|
||||
label = gtk.Label("OK:")
|
||||
table.attach(label, 0, 1, 2, 3, gtk.EXPAND | gtk.FILL,
|
||||
gtk.EXPAND | gtk.FILL, 5, 5)
|
||||
label.show()
|
||||
self.ok_label = gtk.Label("N/A")
|
||||
table.attach(self.ok_label, 1, 2, 2, 3, gtk.EXPAND | gtk.FILL,
|
||||
gtk.EXPAND | gtk.FILL, 5, 5)
|
||||
self.ok_label.show()
|
||||
|
||||
label = gtk.Label("Not OK:")
|
||||
table.attach(label, 0, 1, 3, 4, gtk.EXPAND | gtk.FILL,
|
||||
gtk.EXPAND | gtk.FILL, 5, 5)
|
||||
label.show()
|
||||
self.not_ok_label = gtk.Label("N/A")
|
||||
table.attach(self.not_ok_label, 1, 2, 3, 4, gtk.EXPAND | gtk.FILL,
|
||||
gtk.EXPAND | gtk.FILL, 5, 5)
|
||||
self.not_ok_label.show()
|
||||
|
||||
self.window.show()
|
||||
# For the demo.
|
||||
self.window.set_keep_above(True)
|
||||
self.window.present()
|
||||
|
||||
def stopTest(self, test):
|
||||
super(GTKTestResult, self).stopTest(test)
|
||||
gobject.idle_add(self._stopTest)
|
||||
|
||||
def _stopTest(self):
|
||||
self.progress_model.advance()
|
||||
if self.progress_model.width() == 0:
|
||||
self.pbar.pulse()
|
||||
else:
|
||||
pos = self.progress_model.pos()
|
||||
width = self.progress_model.width()
|
||||
percentage = (pos / float(width))
|
||||
self.pbar.set_fraction(percentage)
|
||||
|
||||
def stopTestRun(self):
|
||||
try:
|
||||
super(GTKTestResult, self).stopTestRun()
|
||||
except AttributeError:
|
||||
pass
|
||||
gobject.idle_add(self.pbar.set_text, 'Finished')
|
||||
|
||||
def addError(self, test, err):
|
||||
super(GTKTestResult, self).addError(test, err)
|
||||
gobject.idle_add(self.update_counts)
|
||||
|
||||
def addFailure(self, test, err):
|
||||
super(GTKTestResult, self).addFailure(test, err)
|
||||
gobject.idle_add(self.update_counts)
|
||||
|
||||
def addSuccess(self, test):
|
||||
super(GTKTestResult, self).addSuccess(test)
|
||||
gobject.idle_add(self.update_counts)
|
||||
|
||||
def addSkip(self, test, reason):
|
||||
# addSkip is new in Python 2.7/3.1
|
||||
addSkip = getattr(super(GTKTestResult, self), 'addSkip', None)
|
||||
if callable(addSkip):
|
||||
addSkip(test, reason)
|
||||
gobject.idle_add(self.update_counts)
|
||||
|
||||
def addExpectedFailure(self, test, err):
|
||||
# addExpectedFailure is new in Python 2.7/3.1
|
||||
addExpectedFailure = getattr(super(GTKTestResult, self),
|
||||
'addExpectedFailure', None)
|
||||
if callable(addExpectedFailure):
|
||||
addExpectedFailure(test, err)
|
||||
gobject.idle_add(self.update_counts)
|
||||
|
||||
def addUnexpectedSuccess(self, test):
|
||||
# addUnexpectedSuccess is new in Python 2.7/3.1
|
||||
addUnexpectedSuccess = getattr(super(GTKTestResult, self),
|
||||
'addUnexpectedSuccess', None)
|
||||
if callable(addUnexpectedSuccess):
|
||||
addUnexpectedSuccess(test)
|
||||
gobject.idle_add(self.update_counts)
|
||||
|
||||
def progress(self, offset, whence):
|
||||
if whence == PROGRESS_PUSH:
|
||||
self.progress_model.push()
|
||||
elif whence == PROGRESS_POP:
|
||||
self.progress_model.pop()
|
||||
elif whence == PROGRESS_SET:
|
||||
self.total_tests = offset
|
||||
self.progress_model.set_width(offset)
|
||||
else:
|
||||
self.total_tests += offset
|
||||
self.progress_model.adjust_width(offset)
|
||||
|
||||
def time(self, a_datetime):
|
||||
# We don't try to estimate completion yet.
|
||||
pass
|
||||
|
||||
def update_counts(self):
|
||||
self.run_label.set_text(str(self.testsRun))
|
||||
bad = len(self.failures + self.errors)
|
||||
self.ok_label.set_text(str(self.testsRun - bad))
|
||||
self.not_ok_label.set_text(str(bad))
|
||||
|
||||
gobject.threads_init()
|
||||
result = StreamToExtendedDecorator(GTKTestResult())
|
||||
test = ByteStreamToStreamResult(sys.stdin, non_subunit_name='stdout')
|
||||
# Get setup
|
||||
while gtk.events_pending():
|
||||
gtk.main_iteration()
|
||||
# Start IO
|
||||
def run_and_finish():
|
||||
test.run(result)
|
||||
result.stopTestRun()
|
||||
t = threading.Thread(target=run_and_finish)
|
||||
t.daemon = True
|
||||
result.startTestRun()
|
||||
t.start()
|
||||
gtk.main()
|
||||
if result.decorated.wasSuccessful():
|
||||
exit_code = 0
|
||||
else:
|
||||
exit_code = 1
|
||||
sys.exit(exit_code)
|
11
.tox/lint/bin/subunit2html
Executable file
11
.tox/lint/bin/subunit2html
Executable file
@ -0,0 +1,11 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
|
||||
from os_testr.subunit2html import main
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(main())
|
36
.tox/lint/bin/subunit2junitxml
Executable file
36
.tox/lint/bin/subunit2junitxml
Executable file
@ -0,0 +1,36 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# subunit: extensions to python unittest to get test results from subprocesses.
|
||||
# Copyright (C) 2009 Robert Collins <robertc@robertcollins.net>
|
||||
#
|
||||
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
|
||||
# license at the users choice. A copy of both licenses are available in the
|
||||
# project source as Apache-2.0 and BSD. You may not use this file except in
|
||||
# compliance with one of these two licences.
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# license you chose for the specific language governing permissions and
|
||||
# limitations under that license.
|
||||
#
|
||||
|
||||
"""Filter a subunit stream to get aggregate statistics."""
|
||||
|
||||
|
||||
import sys
|
||||
|
||||
from testtools import StreamToExtendedDecorator
|
||||
|
||||
from subunit.filters import run_filter_script
|
||||
|
||||
try:
|
||||
from junitxml import JUnitXmlResult
|
||||
except ImportError:
|
||||
sys.stderr.write("python-junitxml (https://launchpad.net/pyjunitxml or "
|
||||
"http://pypi.python.org/pypi/junitxml) is required for this filter.")
|
||||
raise
|
||||
|
||||
|
||||
run_filter_script(
|
||||
lambda output:StreamToExtendedDecorator(JUnitXmlResult(output)), __doc__,
|
||||
protocol_version=2)
|
59
.tox/lint/bin/subunit2pyunit
Executable file
59
.tox/lint/bin/subunit2pyunit
Executable file
@ -0,0 +1,59 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# subunit: extensions to python unittest to get test results from subprocesses.
|
||||
# Copyright (C) 2009 Robert Collins <robertc@robertcollins.net>
|
||||
#
|
||||
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
|
||||
# license at the users choice. A copy of both licenses are available in the
|
||||
# project source as Apache-2.0 and BSD. You may not use this file except in
|
||||
# compliance with one of these two licences.
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# license you chose for the specific language governing permissions and
|
||||
# limitations under that license.
|
||||
#
|
||||
|
||||
"""Display a subunit stream through python's unittest test runner."""
|
||||
|
||||
from operator import methodcaller
|
||||
from optparse import OptionParser
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
from testtools import StreamToExtendedDecorator, DecorateTestCaseResult, StreamResultRouter
|
||||
|
||||
from subunit import ByteStreamToStreamResult
|
||||
from subunit.filters import find_stream
|
||||
from subunit.test_results import CatFiles
|
||||
|
||||
parser = OptionParser(description=__doc__)
|
||||
parser.add_option("--no-passthrough", action="store_true",
|
||||
help="Hide all non subunit input.", default=False, dest="no_passthrough")
|
||||
parser.add_option("--progress", action="store_true",
|
||||
help="Use bzrlib's test reporter (requires bzrlib)",
|
||||
default=False)
|
||||
(options, args) = parser.parse_args()
|
||||
test = ByteStreamToStreamResult(
|
||||
find_stream(sys.stdin, args), non_subunit_name='stdout')
|
||||
def wrap_result(result):
|
||||
result = StreamToExtendedDecorator(result)
|
||||
if not options.no_passthrough:
|
||||
result = StreamResultRouter(result)
|
||||
result.add_rule(CatFiles(sys.stdout), 'test_id', test_id=None)
|
||||
return result
|
||||
test = DecorateTestCaseResult(test, wrap_result,
|
||||
before_run=methodcaller('startTestRun'),
|
||||
after_run=methodcaller('stopTestRun'))
|
||||
if options.progress:
|
||||
from bzrlib.tests import TextTestRunner
|
||||
from bzrlib import ui
|
||||
ui.ui_factory = ui.make_ui_for_terminal(None, sys.stdout, sys.stderr)
|
||||
runner = TextTestRunner()
|
||||
else:
|
||||
runner = unittest.TextTestRunner(verbosity=2)
|
||||
if runner.run(test).wasSuccessful():
|
||||
exit_code = 0
|
||||
else:
|
||||
exit_code = 1
|
||||
sys.exit(exit_code)
|
26
.tox/lint/bin/tap2subunit
Executable file
26
.tox/lint/bin/tap2subunit
Executable file
@ -0,0 +1,26 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
# subunit: extensions to python unittest to get test results from subprocesses.
|
||||
# Copyright (C) 2009 Robert Collins <robertc@robertcollins.net>
|
||||
#
|
||||
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
|
||||
# license at the users choice. A copy of both licenses are available in the
|
||||
# project source as Apache-2.0 and BSD. You may not use this file except in
|
||||
# compliance with one of these two licences.
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# license you chose for the specific language governing permissions and
|
||||
# limitations under that license.
|
||||
#
|
||||
|
||||
"""A filter that reads a TAP stream and outputs a subunit stream.
|
||||
|
||||
More information on TAP is available at
|
||||
http://testanything.org/wiki/index.php/Main_Page.
|
||||
"""
|
||||
|
||||
import sys
|
||||
|
||||
from subunit import TAP2SubUnit
|
||||
sys.exit(TAP2SubUnit(sys.stdin, sys.stdout))
|
26
.tox/lint/bin/testr
Executable file
26
.tox/lint/bin/testr
Executable file
@ -0,0 +1,26 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
#
|
||||
# Copyright (c) 2009 Testrepository Contributors
|
||||
#
|
||||
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
|
||||
# license at the users choice. A copy of both licenses are available in the
|
||||
# project source as Apache-2.0 and BSD. You may not use this file except in
|
||||
# compliance with one of these two licences.
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# license you chose for the specific language governing permissions and
|
||||
# limitations under that license.
|
||||
|
||||
"""The CLI entry point to testrepository.
|
||||
|
||||
No program logic is in this script - see testrepository.commands.run_argv.
|
||||
"""
|
||||
|
||||
import sys
|
||||
|
||||
from testrepository.commands import run_argv
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(run_argv(sys.argv, sys.stdin, sys.stdout, sys.stderr))
|
11
.tox/lint/bin/unit2
Executable file
11
.tox/lint/bin/unit2
Executable file
@ -0,0 +1,11 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
|
||||
from unittest2.__main__ import main_
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(main_())
|
11
.tox/lint/bin/virtualenv
Executable file
11
.tox/lint/bin/virtualenv
Executable file
@ -0,0 +1,11 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
|
||||
from virtualenv import main
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(main())
|
11
.tox/lint/bin/virtualenv-3.4
Executable file
11
.tox/lint/bin/virtualenv-3.4
Executable file
@ -0,0 +1,11 @@
|
||||
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
|
||||
from virtualenv import main
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(main())
|
1
.tox/lint/include/python2.7
Symbolic link
1
.tox/lint/include/python2.7
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/include/python2.7
|
1
.tox/lint/lib/python2.7/UserDict.py
Symbolic link
1
.tox/lint/lib/python2.7/UserDict.py
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/lib/python2.7/UserDict.py
|
BIN
.tox/lint/lib/python2.7/UserDict.pyc
Normal file
BIN
.tox/lint/lib/python2.7/UserDict.pyc
Normal file
Binary file not shown.
1
.tox/lint/lib/python2.7/_abcoll.py
Symbolic link
1
.tox/lint/lib/python2.7/_abcoll.py
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/lib/python2.7/_abcoll.py
|
BIN
.tox/lint/lib/python2.7/_abcoll.pyc
Normal file
BIN
.tox/lint/lib/python2.7/_abcoll.pyc
Normal file
Binary file not shown.
1
.tox/lint/lib/python2.7/_weakrefset.py
Symbolic link
1
.tox/lint/lib/python2.7/_weakrefset.py
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/lib/python2.7/_weakrefset.py
|
BIN
.tox/lint/lib/python2.7/_weakrefset.pyc
Normal file
BIN
.tox/lint/lib/python2.7/_weakrefset.pyc
Normal file
Binary file not shown.
1
.tox/lint/lib/python2.7/abc.py
Symbolic link
1
.tox/lint/lib/python2.7/abc.py
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/lib/python2.7/abc.py
|
BIN
.tox/lint/lib/python2.7/abc.pyc
Normal file
BIN
.tox/lint/lib/python2.7/abc.pyc
Normal file
Binary file not shown.
1
.tox/lint/lib/python2.7/codecs.py
Symbolic link
1
.tox/lint/lib/python2.7/codecs.py
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/lib/python2.7/codecs.py
|
BIN
.tox/lint/lib/python2.7/codecs.pyc
Normal file
BIN
.tox/lint/lib/python2.7/codecs.pyc
Normal file
Binary file not shown.
1
.tox/lint/lib/python2.7/copy_reg.py
Symbolic link
1
.tox/lint/lib/python2.7/copy_reg.py
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/lib/python2.7/copy_reg.py
|
BIN
.tox/lint/lib/python2.7/copy_reg.pyc
Normal file
BIN
.tox/lint/lib/python2.7/copy_reg.pyc
Normal file
Binary file not shown.
101
.tox/lint/lib/python2.7/distutils/__init__.py
Normal file
101
.tox/lint/lib/python2.7/distutils/__init__.py
Normal file
@ -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
|
BIN
.tox/lint/lib/python2.7/distutils/__init__.pyc
Normal file
BIN
.tox/lint/lib/python2.7/distutils/__init__.pyc
Normal file
Binary file not shown.
6
.tox/lint/lib/python2.7/distutils/distutils.cfg
Normal file
6
.tox/lint/lib/python2.7/distutils/distutils.cfg
Normal file
@ -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
|
1
.tox/lint/lib/python2.7/encodings
Symbolic link
1
.tox/lint/lib/python2.7/encodings
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/lib/python2.7/encodings
|
1
.tox/lint/lib/python2.7/fnmatch.py
Symbolic link
1
.tox/lint/lib/python2.7/fnmatch.py
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/lib/python2.7/fnmatch.py
|
BIN
.tox/lint/lib/python2.7/fnmatch.pyc
Normal file
BIN
.tox/lint/lib/python2.7/fnmatch.pyc
Normal file
Binary file not shown.
1
.tox/lint/lib/python2.7/genericpath.py
Symbolic link
1
.tox/lint/lib/python2.7/genericpath.py
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/lib/python2.7/genericpath.py
|
BIN
.tox/lint/lib/python2.7/genericpath.pyc
Normal file
BIN
.tox/lint/lib/python2.7/genericpath.pyc
Normal file
Binary file not shown.
1
.tox/lint/lib/python2.7/lib-dynload
Symbolic link
1
.tox/lint/lib/python2.7/lib-dynload
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/lib/python2.7/lib-dynload
|
1
.tox/lint/lib/python2.7/linecache.py
Symbolic link
1
.tox/lint/lib/python2.7/linecache.py
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/lib/python2.7/linecache.py
|
BIN
.tox/lint/lib/python2.7/linecache.pyc
Normal file
BIN
.tox/lint/lib/python2.7/linecache.pyc
Normal file
Binary file not shown.
1
.tox/lint/lib/python2.7/locale.py
Symbolic link
1
.tox/lint/lib/python2.7/locale.py
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/lib/python2.7/locale.py
|
BIN
.tox/lint/lib/python2.7/locale.pyc
Normal file
BIN
.tox/lint/lib/python2.7/locale.pyc
Normal file
Binary file not shown.
0
.tox/lint/lib/python2.7/no-global-site-packages.txt
Normal file
0
.tox/lint/lib/python2.7/no-global-site-packages.txt
Normal file
1
.tox/lint/lib/python2.7/ntpath.py
Symbolic link
1
.tox/lint/lib/python2.7/ntpath.py
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/lib/python2.7/ntpath.py
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user