Skip to content
Permalink
Browse files

pipenv, new dockerfile, update readme

  • Loading branch information...
Inveracity committed May 25, 2018
1 parent b5a82d7 commit e77c2a154497f393790cc6147628ac25d26822ce
Showing with 16,651 additions and 84 deletions.
  1. +15 −0 .dockerignore
  2. +78 −0 .venv/bin/activate
  3. +36 −0 .venv/bin/activate.csh
  4. +76 −0 .venv/bin/activate.fish
  5. +34 −0 .venv/bin/activate_this.py
  6. +11 −0 .venv/bin/easy_install
  7. +11 −0 .venv/bin/easy_install-3.6
  8. +11 −0 .venv/bin/flask
  9. +11 −0 .venv/bin/gunicorn
  10. +11 −0 .venv/bin/gunicorn_paster
  11. +11 −0 .venv/bin/pip
  12. +11 −0 .venv/bin/pip3
  13. +11 −0 .venv/bin/pip3.6
  14. BIN .venv/bin/python
  15. +78 −0 .venv/bin/python-config
  16. BIN .venv/bin/python3
  17. BIN .venv/bin/python3.6
  18. BIN .venv/bin/python3.6m
  19. +11 −0 .venv/bin/wheel
  20. +637 −0 .venv/include/python3.6m/Python-ast.h
  21. +139 −0 .venv/include/python3.6m/Python.h
  22. +1,377 −0 .venv/include/python3.6m/abstract.h
  23. +37 −0 .venv/include/python3.6m/accu.h
  24. +46 −0 .venv/include/python3.6m/asdl.h
  25. +22 −0 .venv/include/python3.6m/ast.h
  26. +32 −0 .venv/include/python3.6m/bitset.h
  27. +14 −0 .venv/include/python3.6m/bltinmodule.h
  28. +34 −0 .venv/include/python3.6m/boolobject.h
  29. +62 −0 .venv/include/python3.6m/bytearrayobject.h
  30. +67 −0 .venv/include/python3.6m/bytes_methods.h
  31. +224 −0 .venv/include/python3.6m/bytesobject.h
  32. +29 −0 .venv/include/python3.6m/cellobject.h
  33. +236 −0 .venv/include/python3.6m/ceval.h
  34. +58 −0 .venv/include/python3.6m/classobject.h
  35. +157 −0 .venv/include/python3.6m/code.h
  36. +240 −0 .venv/include/python3.6m/codecs.h
  37. +73 −0 .venv/include/python3.6m/compile.h
  38. +69 −0 .venv/include/python3.6m/complexobject.h
  39. +260 −0 .venv/include/python3.6m/datetime.h
  40. +107 −0 .venv/include/python3.6m/descrobject.h
  41. +177 −0 .venv/include/python3.6m/dictobject.h
  42. +19 −0 .venv/include/python3.6m/dtoa.h
  43. +499 −0 .venv/include/python3.6m/dynamic_annotations.h
  44. +17 −0 .venv/include/python3.6m/enumobject.h
  45. +38 −0 .venv/include/python3.6m/errcode.h
  46. +27 −0 .venv/include/python3.6m/eval.h
  47. +50 −0 .venv/include/python3.6m/fileobject.h
  48. +146 −0 .venv/include/python3.6m/fileutils.h
  49. +130 −0 .venv/include/python3.6m/floatobject.h
  50. +95 −0 .venv/include/python3.6m/frameobject.h
  51. +103 −0 .venv/include/python3.6m/funcobject.h
  52. +104 −0 .venv/include/python3.6m/genobject.h
  53. +88 −0 .venv/include/python3.6m/graminit.h
  54. +94 −0 .venv/include/python3.6m/grammar.h
  55. +140 −0 .venv/include/python3.6m/import.h
  56. +24 −0 .venv/include/python3.6m/intrcheck.h
  57. +25 −0 .venv/include/python3.6m/iterobject.h
  58. +81 −0 .venv/include/python3.6m/listobject.h
  59. +99 −0 .venv/include/python3.6m/longintrepr.h
  60. +215 −0 .venv/include/python3.6m/longobject.h
  61. +28 −0 .venv/include/python3.6m/marshal.h
  62. +72 −0 .venv/include/python3.6m/memoryobject.h
  63. +18 −0 .venv/include/python3.6m/metagrammar.h
  64. +110 −0 .venv/include/python3.6m/methodobject.h
  65. +183 −0 .venv/include/python3.6m/modsupport.h
  66. +89 −0 .venv/include/python3.6m/moduleobject.h
  67. +19 −0 .venv/include/python3.6m/namespaceobject.h
  68. +44 −0 .venv/include/python3.6m/node.h
  69. +1,077 −0 .venv/include/python3.6m/object.h
  70. +370 −0 .venv/include/python3.6m/objimpl.h
  71. +43 −0 .venv/include/python3.6m/odictobject.h
  72. +146 −0 .venv/include/python3.6m/opcode.h
  73. +47 −0 .venv/include/python3.6m/osdefs.h
  74. +17 −0 .venv/include/python3.6m/osmodule.h
  75. +108 −0 .venv/include/python3.6m/parsetok.h
  76. +35 −0 .venv/include/python3.6m/patchlevel.h
  77. +18 −0 .venv/include/python3.6m/pgen.h
  78. +43 −0 .venv/include/python3.6m/pgenheaders.h
  79. +178 −0 .venv/include/python3.6m/py_curses.h
  80. +64 −0 .venv/include/python3.6m/pyarena.h
  81. +250 −0 .venv/include/python3.6m/pyatomic.h
  82. +59 −0 .venv/include/python3.6m/pycapsule.h
  83. +105 −0 .venv/include/python3.6m/pyconfig.h
  84. +33 −0 .venv/include/python3.6m/pyctype.h
  85. +40 −0 .venv/include/python3.6m/pydebug.h
  86. +53 −0 .venv/include/python3.6m/pydtrace.h
  87. +503 −0 .venv/include/python3.6m/pyerrors.h
  88. +53 −0 .venv/include/python3.6m/pyexpat.h
  89. +176 −0 .venv/include/python3.6m/pyfpe.h
  90. +21 −0 .venv/include/python3.6m/pygetopt.h
  91. +145 −0 .venv/include/python3.6m/pyhash.h
  92. +129 −0 .venv/include/python3.6m/pylifecycle.h
  93. +102 −0 .venv/include/python3.6m/pymacconfig.h
  94. +98 −0 .venv/include/python3.6m/pymacro.h
  95. +230 −0 .venv/include/python3.6m/pymath.h
  96. +233 −0 .venv/include/python3.6m/pymem.h
  97. +767 −0 .venv/include/python3.6m/pyport.h
  98. +324 −0 .venv/include/python3.6m/pystate.h
  99. +23 −0 .venv/include/python3.6m/pystrcmp.h
  100. +19 −0 .venv/include/python3.6m/pystrhex.h
  101. +45 −0 .venv/include/python3.6m/pystrtod.h
  102. +197 −0 .venv/include/python3.6m/pythonrun.h
  103. +90 −0 .venv/include/python3.6m/pythread.h
  104. +211 −0 .venv/include/python3.6m/pytime.h
  105. +27 −0 .venv/include/python3.6m/rangeobject.h
  106. +108 −0 .venv/include/python3.6m/setobject.h
  107. +65 −0 .venv/include/python3.6m/sliceobject.h
  108. +74 −0 .venv/include/python3.6m/structmember.h
  109. +49 −0 .venv/include/python3.6m/structseq.h
  110. +119 −0 .venv/include/python3.6m/symtable.h
  111. +43 −0 .venv/include/python3.6m/sysmodule.h
  112. +90 −0 .venv/include/python3.6m/token.h
  113. +119 −0 .venv/include/python3.6m/traceback.h
  114. +73 −0 .venv/include/python3.6m/tupleobject.h
  115. +85 −0 .venv/include/python3.6m/typeslots.h
  116. +36 −0 .venv/include/python3.6m/ucnhash.h
  117. +2,342 −0 .venv/include/python3.6m/unicodeobject.h
  118. +63 −0 .venv/include/python3.6m/warnings.h
  119. +86 −0 .venv/include/python3.6m/weakrefobject.h
  120. +1 −0 .venv/pip-selfcheck.json
  121. +0 −24 Dockerfile
  122. +18 −0 Pipfile
  123. +90 −0 Pipfile.lock
  124. +11 −16 README.md
  125. +0 −21 Vagrantfile
  126. +24 −0 docker/Dockerfile
  127. +3 −3 src/jinjabread.py → jinjabread/app.py
  128. +1 −1 {src → jinjabread}/config.py
  129. 0 {src → jinjabread}/config.yml
  130. 0 {src → jinjabread}/functions/__init__.py
  131. 0 {src → jinjabread}/functions/filehandler.py
  132. +1 −1 {src → jinjabread}/functions/render_state.py
  133. 0 {src → jinjabread}/functions/salt/LICENSE
  134. 0 {src → jinjabread}/functions/salt/__init__.py
  135. 0 {src → jinjabread}/functions/salt/decorators/__init__.py
  136. 0 {src → jinjabread}/functions/salt/odict.py
  137. 0 {src → jinjabread}/functions/salt/saltexceptions.py
  138. 0 {src → jinjabread}/functions/salt/saltyaml.py
  139. 0 {src → jinjabread}/functions/salt/six/__init__.py
  140. 0 {src → jinjabread}/functions/salt/six/six.py
  141. 0 {src → jinjabread}/functions/salt/textformat.py
  142. 0 {src → jinjabread}/functions/salt/utils.py
  143. 0 {src → jinjabread}/functions/salt/yamlloader.py
  144. 0 {src → jinjabread}/functions/test_cases/test_grains.yml
  145. 0 {src → jinjabread}/functions/test_cases/test_pillar.yml
  146. 0 {src → jinjabread}/functions/test_cases/test_states.sls
  147. 0 {src → jinjabread}/functions/test_cases/use_case_testing.py
  148. 0 {src → jinjabread}/static/css/bootstrap-theme.css
  149. 0 {src → jinjabread}/static/css/bootstrap-theme.css.map
  150. 0 {src → jinjabread}/static/css/bootstrap-theme.min.css
  151. 0 {src → jinjabread}/static/css/bootstrap-theme.min.css.map
  152. 0 {src → jinjabread}/static/css/bootstrap.css
  153. 0 {src → jinjabread}/static/css/bootstrap.css.map
  154. 0 {src → jinjabread}/static/css/bootstrap.min.css
  155. 0 {src → jinjabread}/static/css/bootstrap.min.css.map
  156. 0 {src → jinjabread}/static/css/codemirror.css
  157. 0 {src → jinjabread}/static/css/jquery-ui.css
  158. 0 {src → jinjabread}/static/css/railscasts.css
  159. 0 {src → jinjabread}/static/css/simplescrollbars.css
  160. BIN {src → jinjabread}/static/favicon.ico
  161. BIN {src → jinjabread}/static/fonts/glyphicons-halflings-regular.eot
  162. 0 {src → jinjabread}/static/fonts/glyphicons-halflings-regular.svg
  163. BIN {src → jinjabread}/static/fonts/glyphicons-halflings-regular.ttf
  164. BIN {src → jinjabread}/static/fonts/glyphicons-halflings-regular.woff
  165. BIN {src → jinjabread}/static/fonts/glyphicons-halflings-regular.woff2
  166. 0 {src → jinjabread}/static/js/bootstrap.js
  167. 0 {src → jinjabread}/static/js/bootstrap.min.js
  168. 0 {src → jinjabread}/static/js/codemirror.js
  169. 0 {src → jinjabread}/static/js/jinja2.js
  170. 0 {src → jinjabread}/static/js/jquery-1.12.3.js
  171. 0 {src → jinjabread}/static/js/jquery-ui.min.js
  172. 0 {src → jinjabread}/static/js/npm.js
  173. 0 {src → jinjabread}/static/js/ow.widgets.persistState.js
  174. 0 {src → jinjabread}/static/js/simplescrollbars.js
  175. 0 {src → jinjabread}/static/js/yaml.js
  176. 0 {src → jinjabread}/templates/footer.html
  177. 0 {src → jinjabread}/templates/header.html
  178. +1 −1 {src → jinjabread}/templates/index.html
  179. 0 {src → jinjabread}/templates/menu.html
  180. +0 −3 requirements.txt
  181. +0 −14 vagrant.sh
@@ -0,0 +1,15 @@
.venv
scripts
htmlcov
__pycache__
.vagrant
.pytest_cache
.git
.github
.cache
Vagrantfile
.coverage
.coveragerc
.gitignore
.travis.yml
docker
@@ -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="/vagrant/jinjabread/.venv"
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(jinjabread)" != x ] ; then
PS1="(jinjabread)$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
@@ -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 <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 "/vagrant/jinjabread/.venv"

set _OLD_VIRTUAL_PATH="$PATH"
setenv PATH "$VIRTUAL_ENV/bin:$PATH"



if ("(jinjabread)" != "") then
set env_name = "(jinjabread)"
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

@@ -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 "/vagrant/jinjabread/.venv"

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 "(jinjabread)"
printf '%s%s' "(jinjabread)" (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
@@ -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
@@ -0,0 +1,11 @@
#!/vagrant/jinjabread/.venv/bin/python3.6m

# -*- 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())
@@ -0,0 +1,11 @@
#!/vagrant/jinjabread/.venv/bin/python3.6m

# -*- 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())
@@ -0,0 +1,11 @@
#!/vagrant/jinjabread/.venv/bin/python3.6m

# -*- coding: utf-8 -*-
import re
import sys

from flask.cli import main

if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
@@ -0,0 +1,11 @@
#!/vagrant/jinjabread/.venv/bin/python3.6m

# -*- coding: utf-8 -*-
import re
import sys

from gunicorn.app.wsgiapp import run

if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
@@ -0,0 +1,11 @@
#!/vagrant/jinjabread/.venv/bin/python3.6m

# -*- coding: utf-8 -*-
import re
import sys

from gunicorn.app.pasterapp import run

if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
@@ -0,0 +1,11 @@
#!/vagrant/jinjabread/.venv/bin/python3.6m

# -*- coding: utf-8 -*-
import re
import sys

from pip._internal import main

if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
@@ -0,0 +1,11 @@
#!/vagrant/jinjabread/.venv/bin/python3.6m

# -*- coding: utf-8 -*-
import re
import sys

from pip._internal import main

if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
@@ -0,0 +1,11 @@
#!/vagrant/jinjabread/.venv/bin/python3.6m

# -*- coding: utf-8 -*-
import re
import sys

from pip._internal import main

if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
BIN +4.42 MB .venv/bin/python
Binary file not shown.

0 comments on commit e77c2a1

Please sign in to comment.
You can’t perform that action at this time.