diff --git a/docker_environment/bin/Activate.ps1 b/docker_environment/bin/Activate.ps1 new file mode 100644 index 0000000..2fb3852 --- /dev/null +++ b/docker_environment/bin/Activate.ps1 @@ -0,0 +1,241 @@ +<# +.Synopsis +Activate a Python virtual environment for the current PowerShell session. + +.Description +Pushes the python executable for a virtual environment to the front of the +$Env:PATH environment variable and sets the prompt to signify that you are +in a Python virtual environment. Makes use of the command line switches as +well as the `pyvenv.cfg` file values present in the virtual environment. + +.Parameter VenvDir +Path to the directory that contains the virtual environment to activate. The +default value for this is the parent of the directory that the Activate.ps1 +script is located within. + +.Parameter Prompt +The prompt prefix to display when this virtual environment is activated. By +default, this prompt is the name of the virtual environment folder (VenvDir) +surrounded by parentheses and followed by a single space (ie. '(.venv) '). + +.Example +Activate.ps1 +Activates the Python virtual environment that contains the Activate.ps1 script. + +.Example +Activate.ps1 -Verbose +Activates the Python virtual environment that contains the Activate.ps1 script, +and shows extra information about the activation as it executes. + +.Example +Activate.ps1 -VenvDir C:\Users\MyUser\Common\.venv +Activates the Python virtual environment located in the specified location. + +.Example +Activate.ps1 -Prompt "MyPython" +Activates the Python virtual environment that contains the Activate.ps1 script, +and prefixes the current prompt with the specified string (surrounded in +parentheses) while the virtual environment is active. + +.Notes +On Windows, it may be required to enable this Activate.ps1 script by setting the +execution policy for the user. You can do this by issuing the following PowerShell +command: + +PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser + +For more information on Execution Policies: +https://go.microsoft.com/fwlink/?LinkID=135170 + +#> +Param( + [Parameter(Mandatory = $false)] + [String] + $VenvDir, + [Parameter(Mandatory = $false)] + [String] + $Prompt +) + +<# Function declarations --------------------------------------------------- #> + +<# +.Synopsis +Remove all shell session elements added by the Activate script, including the +addition of the virtual environment's Python executable from the beginning of +the PATH variable. + +.Parameter NonDestructive +If present, do not remove this function from the global namespace for the +session. + +#> +function global:deactivate ([switch]$NonDestructive) { + # Revert to original values + + # The prior prompt: + if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) { + Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt + Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT + } + + # The prior PYTHONHOME: + if (Test-Path -Path Env:_OLD_VIRTUAL_PYTHONHOME) { + Copy-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME -Destination Env:PYTHONHOME + Remove-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME + } + + # The prior PATH: + if (Test-Path -Path Env:_OLD_VIRTUAL_PATH) { + Copy-Item -Path Env:_OLD_VIRTUAL_PATH -Destination Env:PATH + Remove-Item -Path Env:_OLD_VIRTUAL_PATH + } + + # Just remove the VIRTUAL_ENV altogether: + if (Test-Path -Path Env:VIRTUAL_ENV) { + Remove-Item -Path env:VIRTUAL_ENV + } + + # Just remove the _PYTHON_VENV_PROMPT_PREFIX altogether: + if (Get-Variable -Name "_PYTHON_VENV_PROMPT_PREFIX" -ErrorAction SilentlyContinue) { + Remove-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Scope Global -Force + } + + # Leave deactivate function in the global namespace if requested: + if (-not $NonDestructive) { + Remove-Item -Path function:deactivate + } +} + +<# +.Description +Get-PyVenvConfig parses the values from the pyvenv.cfg file located in the +given folder, and returns them in a map. + +For each line in the pyvenv.cfg file, if that line can be parsed into exactly +two strings separated by `=` (with any amount of whitespace surrounding the =) +then it is considered a `key = value` line. The left hand string is the key, +the right hand is the value. + +If the value starts with a `'` or a `"` then the first and last character is +stripped from the value before being captured. + +.Parameter ConfigDir +Path to the directory that contains the `pyvenv.cfg` file. +#> +function Get-PyVenvConfig( + [String] + $ConfigDir +) { + Write-Verbose "Given ConfigDir=$ConfigDir, obtain values in pyvenv.cfg" + + # Ensure the file exists, and issue a warning if it doesn't (but still allow the function to continue). + $pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue + + # An empty map will be returned if no config file is found. + $pyvenvConfig = @{ } + + if ($pyvenvConfigPath) { + + Write-Verbose "File exists, parse `key = value` lines" + $pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath + + $pyvenvConfigContent | ForEach-Object { + $keyval = $PSItem -split "\s*=\s*", 2 + if ($keyval[0] -and $keyval[1]) { + $val = $keyval[1] + + # Remove extraneous quotations around a string value. + if ("'""".Contains($val.Substring(0, 1))) { + $val = $val.Substring(1, $val.Length - 2) + } + + $pyvenvConfig[$keyval[0]] = $val + Write-Verbose "Adding Key: '$($keyval[0])'='$val'" + } + } + } + return $pyvenvConfig +} + + +<# Begin Activate script --------------------------------------------------- #> + +# Determine the containing directory of this script +$VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition +$VenvExecDir = Get-Item -Path $VenvExecPath + +Write-Verbose "Activation script is located in path: '$VenvExecPath'" +Write-Verbose "VenvExecDir Fullname: '$($VenvExecDir.FullName)" +Write-Verbose "VenvExecDir Name: '$($VenvExecDir.Name)" + +# Set values required in priority: CmdLine, ConfigFile, Default +# First, get the location of the virtual environment, it might not be +# VenvExecDir if specified on the command line. +if ($VenvDir) { + Write-Verbose "VenvDir given as parameter, using '$VenvDir' to determine values" +} +else { + Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir." + $VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/") + Write-Verbose "VenvDir=$VenvDir" +} + +# Next, read the `pyvenv.cfg` file to determine any required value such +# as `prompt`. +$pyvenvCfg = Get-PyVenvConfig -ConfigDir $VenvDir + +# Next, set the prompt from the command line, or the config file, or +# just use the name of the virtual environment folder. +if ($Prompt) { + Write-Verbose "Prompt specified as argument, using '$Prompt'" +} +else { + Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value" + if ($pyvenvCfg -and $pyvenvCfg['prompt']) { + Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'" + $Prompt = $pyvenvCfg['prompt']; + } + else { + Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed to venv module when creating the virutal environment)" + Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'" + $Prompt = Split-Path -Path $venvDir -Leaf + } +} + +Write-Verbose "Prompt = '$Prompt'" +Write-Verbose "VenvDir='$VenvDir'" + +# Deactivate any currently active virtual environment, but leave the +# deactivate function in place. +deactivate -nondestructive + +# Now set the environment variable VIRTUAL_ENV, used by many tools to determine +# that there is an activated venv. +$env:VIRTUAL_ENV = $VenvDir + +if (-not $Env:VIRTUAL_ENV_DISABLE_PROMPT) { + + Write-Verbose "Setting prompt to '$Prompt'" + + # Set the prompt to include the env name + # Make sure _OLD_VIRTUAL_PROMPT is global + function global:_OLD_VIRTUAL_PROMPT { "" } + Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT + New-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Description "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Public -Value $Prompt + + function global:prompt { + Write-Host -NoNewline -ForegroundColor Green "($_PYTHON_VENV_PROMPT_PREFIX) " + _OLD_VIRTUAL_PROMPT + } +} + +# Clear PYTHONHOME +if (Test-Path -Path Env:PYTHONHOME) { + Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME + Remove-Item -Path Env:PYTHONHOME +} + +# Add the venv to the PATH +Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH +$Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH" diff --git a/docker_environment/bin/aafigure b/docker_environment/bin/aafigure new file mode 100755 index 0000000..268b68e --- /dev/null +++ b/docker_environment/bin/aafigure @@ -0,0 +1,11 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# +# This file is part of aafigure. https://github.com/aafigure/aafigure +# (C) 2007 Chris Liechti +# +# SPDX-License-Identifier: BSD-3-Clause + +# command line stub for aafigure + +import aafigure.aafigure +aafigure.aafigure.main() diff --git a/docker_environment/bin/activate b/docker_environment/bin/activate new file mode 100644 index 0000000..70a820e --- /dev/null +++ b/docker_environment/bin/activate @@ -0,0 +1,66 @@ +# This file must be used with "source bin/activate" *from bash* +# you cannot run it directly + +deactivate () { + # 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/deffuls/work/planetmint/docker_environment" +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:-}" + PS1="(docker_environment) ${PS1:-}" + export PS1 +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 diff --git a/docker_environment/bin/activate.csh b/docker_environment/bin/activate.csh new file mode 100644 index 0000000..e065c27 --- /dev/null +++ b/docker_environment/bin/activate.csh @@ -0,0 +1,25 @@ +# This file must be used with "source bin/activate.csh" *from csh*. +# You cannot run it directly. +# Created by Davide Di Blasi . +# Ported to Python 3.3 venv by Andrew Svetlov + +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' + +# Unset irrelevant variables. +deactivate nondestructive + +setenv VIRTUAL_ENV "/home/deffuls/work/planetmint/docker_environment" + +set _OLD_VIRTUAL_PATH="$PATH" +setenv PATH "$VIRTUAL_ENV/bin:$PATH" + + +set _OLD_VIRTUAL_PROMPT="$prompt" + +if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then + set prompt = "(docker_environment) $prompt" +endif + +alias pydoc python -m pydoc + +rehash diff --git a/docker_environment/bin/activate.fish b/docker_environment/bin/activate.fish new file mode 100644 index 0000000..5bf574e --- /dev/null +++ b/docker_environment/bin/activate.fish @@ -0,0 +1,64 @@ +# This file must be used with "source /bin/activate.fish" *from fish* +# (https://fishshell.com/); you cannot run it directly. + +function deactivate -d "Exit virtual environment 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" + functions -e fish_prompt + set -e _OLD_FISH_PROMPT_OVERRIDE + functions -c _old_fish_prompt fish_prompt + functions -e _old_fish_prompt + 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/deffuls/work/planetmint/docker_environment" + +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. + + # Save the current fish_prompt function as the function _old_fish_prompt. + functions -c fish_prompt _old_fish_prompt + + # With the original prompt function renamed, we can override with our own. + function fish_prompt + # Save the return status of the last command. + set -l old_status $status + + # Output the venv prompt; color taken from the blue of the Python logo. + printf "%s%s%s" (set_color 4B8BBE) "(docker_environment) " (set_color normal) + + # Restore the return status of the previous command. + echo "exit $old_status" | . + # Output the original/"old" prompt. + _old_fish_prompt + end + + set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV" +end diff --git a/docker_environment/bin/base58 b/docker_environment/bin/base58 new file mode 100755 index 0000000..bad317e --- /dev/null +++ b/docker_environment/bin/base58 @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from base58.__main__ import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/chardetect b/docker_environment/bin/chardetect new file mode 100755 index 0000000..3ab624f --- /dev/null +++ b/docker_environment/bin/chardetect @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from chardet.cli.chardetect import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/cm2html b/docker_environment/bin/cm2html new file mode 100755 index 0000000..5315b3d --- /dev/null +++ b/docker_environment/bin/cm2html @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from recommonmark.scripts import cm2html +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cm2html()) diff --git a/docker_environment/bin/cm2latex b/docker_environment/bin/cm2latex new file mode 100755 index 0000000..6f7ad41 --- /dev/null +++ b/docker_environment/bin/cm2latex @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from recommonmark.scripts import cm2latex +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cm2latex()) diff --git a/docker_environment/bin/cm2man b/docker_environment/bin/cm2man new file mode 100755 index 0000000..a908a81 --- /dev/null +++ b/docker_environment/bin/cm2man @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from recommonmark.scripts import cm2man +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cm2man()) diff --git a/docker_environment/bin/cm2pseudoxml b/docker_environment/bin/cm2pseudoxml new file mode 100755 index 0000000..87f85cb --- /dev/null +++ b/docker_environment/bin/cm2pseudoxml @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from recommonmark.scripts import cm2pseudoxml +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cm2pseudoxml()) diff --git a/docker_environment/bin/cm2xetex b/docker_environment/bin/cm2xetex new file mode 100755 index 0000000..9f6d661 --- /dev/null +++ b/docker_environment/bin/cm2xetex @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from recommonmark.scripts import cm2xetex +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cm2xetex()) diff --git a/docker_environment/bin/cm2xml b/docker_environment/bin/cm2xml new file mode 100755 index 0000000..5729708 --- /dev/null +++ b/docker_environment/bin/cm2xml @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from recommonmark.scripts import cm2xml +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cm2xml()) diff --git a/docker_environment/bin/cmark b/docker_environment/bin/cmark new file mode 100755 index 0000000..6814823 --- /dev/null +++ b/docker_environment/bin/cmark @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from commonmark.cmark import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/counter b/docker_environment/bin/counter new file mode 100755 index 0000000..7c9027a --- /dev/null +++ b/docker_environment/bin/counter @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from example.counter import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/coverage b/docker_environment/bin/coverage new file mode 100755 index 0000000..6110b59 --- /dev/null +++ b/docker_environment/bin/coverage @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from coverage.cmdline import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/coverage-3.9 b/docker_environment/bin/coverage-3.9 new file mode 100755 index 0000000..6110b59 --- /dev/null +++ b/docker_environment/bin/coverage-3.9 @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from coverage.cmdline import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/coverage3 b/docker_environment/bin/coverage3 new file mode 100755 index 0000000..6110b59 --- /dev/null +++ b/docker_environment/bin/coverage3 @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from coverage.cmdline import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/easy_install b/docker_environment/bin/easy_install new file mode 100755 index 0000000..3d930f2 --- /dev/null +++ b/docker_environment/bin/easy_install @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- 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()) diff --git a/docker_environment/bin/easy_install-3.9 b/docker_environment/bin/easy_install-3.9 new file mode 100755 index 0000000..3d930f2 --- /dev/null +++ b/docker_environment/bin/easy_install-3.9 @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- 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()) diff --git a/docker_environment/bin/flake8 b/docker_environment/bin/flake8 new file mode 100755 index 0000000..3555c2d --- /dev/null +++ b/docker_environment/bin/flake8 @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from flake8.main.cli import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/flask b/docker_environment/bin/flask new file mode 100755 index 0000000..3ad2f7c --- /dev/null +++ b/docker_environment/bin/flask @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- 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()) diff --git a/docker_environment/bin/gunicorn b/docker_environment/bin/gunicorn new file mode 100755 index 0000000..7b66116 --- /dev/null +++ b/docker_environment/bin/gunicorn @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- 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()) diff --git a/docker_environment/bin/humanfriendly b/docker_environment/bin/humanfriendly new file mode 100755 index 0000000..b716b8e --- /dev/null +++ b/docker_environment/bin/humanfriendly @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from humanfriendly.cli import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/hypothesis b/docker_environment/bin/hypothesis new file mode 100755 index 0000000..10e5df8 --- /dev/null +++ b/docker_environment/bin/hypothesis @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from hypothesis.extra.cli import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/identify-cli b/docker_environment/bin/identify-cli new file mode 100755 index 0000000..3aaa426 --- /dev/null +++ b/docker_environment/bin/identify-cli @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from identify.cli import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/ipdb3 b/docker_environment/bin/ipdb3 new file mode 100755 index 0000000..8949b3c --- /dev/null +++ b/docker_environment/bin/ipdb3 @@ -0,0 +1,12 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'ipdb==0.13.9','console_scripts','ipdb3' +__requires__ = 'ipdb==0.13.9' +import re +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit( + load_entry_point('ipdb==0.13.9', 'console_scripts', 'ipdb3')() + ) diff --git a/docker_environment/bin/ipython b/docker_environment/bin/ipython new file mode 100755 index 0000000..f132585 --- /dev/null +++ b/docker_environment/bin/ipython @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from IPython import start_ipython +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(start_ipython()) diff --git a/docker_environment/bin/ipython3 b/docker_environment/bin/ipython3 new file mode 100755 index 0000000..f132585 --- /dev/null +++ b/docker_environment/bin/ipython3 @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from IPython import start_ipython +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(start_ipython()) diff --git a/docker_environment/bin/jsonschema b/docker_environment/bin/jsonschema new file mode 100755 index 0000000..43a5bd0 --- /dev/null +++ b/docker_environment/bin/jsonschema @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from jsonschema.cli import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/keyring b/docker_environment/bin/keyring new file mode 100755 index 0000000..b9cf63e --- /dev/null +++ b/docker_environment/bin/keyring @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from keyring.cli import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/markdown-it b/docker_environment/bin/markdown-it new file mode 100755 index 0000000..4754ac6 --- /dev/null +++ b/docker_environment/bin/markdown-it @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from markdown_it.cli.parse import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/myst-anchors b/docker_environment/bin/myst-anchors new file mode 100755 index 0000000..89b2004 --- /dev/null +++ b/docker_environment/bin/myst-anchors @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from myst_parser.cli import print_anchors +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(print_anchors()) diff --git a/docker_environment/bin/myst-docutils-html b/docker_environment/bin/myst-docutils-html new file mode 100755 index 0000000..88debac --- /dev/null +++ b/docker_environment/bin/myst-docutils-html @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from myst_parser.docutils_ import cli_html +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli_html()) diff --git a/docker_environment/bin/myst-docutils-html5 b/docker_environment/bin/myst-docutils-html5 new file mode 100755 index 0000000..0817bc4 --- /dev/null +++ b/docker_environment/bin/myst-docutils-html5 @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from myst_parser.docutils_ import cli_html5 +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli_html5()) diff --git a/docker_environment/bin/myst-docutils-latex b/docker_environment/bin/myst-docutils-latex new file mode 100755 index 0000000..ba14198 --- /dev/null +++ b/docker_environment/bin/myst-docutils-latex @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from myst_parser.docutils_ import cli_latex +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli_latex()) diff --git a/docker_environment/bin/myst-docutils-pseudoxml b/docker_environment/bin/myst-docutils-pseudoxml new file mode 100755 index 0000000..cba1859 --- /dev/null +++ b/docker_environment/bin/myst-docutils-pseudoxml @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from myst_parser.docutils_ import cli_pseudoxml +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli_pseudoxml()) diff --git a/docker_environment/bin/myst-docutils-xml b/docker_environment/bin/myst-docutils-xml new file mode 100755 index 0000000..296414b --- /dev/null +++ b/docker_environment/bin/myst-docutils-xml @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from myst_parser.docutils_ import cli_xml +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli_xml()) diff --git a/docker_environment/bin/nodeenv b/docker_environment/bin/nodeenv new file mode 100755 index 0000000..f0d196f --- /dev/null +++ b/docker_environment/bin/nodeenv @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from nodeenv import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/normalizer b/docker_environment/bin/normalizer new file mode 100755 index 0000000..746a2cd --- /dev/null +++ b/docker_environment/bin/normalizer @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from charset_normalizer.cli.normalizer import cli_detect +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli_detect()) diff --git a/docker_environment/bin/pep8 b/docker_environment/bin/pep8 new file mode 100755 index 0000000..0978559 --- /dev/null +++ b/docker_environment/bin/pep8 @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- 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()) diff --git a/docker_environment/bin/pip b/docker_environment/bin/pip new file mode 100755 index 0000000..dbc9573 --- /dev/null +++ b/docker_environment/bin/pip @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from pip._internal.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/pip3 b/docker_environment/bin/pip3 new file mode 100755 index 0000000..dbc9573 --- /dev/null +++ b/docker_environment/bin/pip3 @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from pip._internal.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/pip3.9 b/docker_environment/bin/pip3.9 new file mode 100755 index 0000000..dbc9573 --- /dev/null +++ b/docker_environment/bin/pip3.9 @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from pip._internal.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/pkginfo b/docker_environment/bin/pkginfo new file mode 100755 index 0000000..523610a --- /dev/null +++ b/docker_environment/bin/pkginfo @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from pkginfo.commandline import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/planetmint b/docker_environment/bin/planetmint new file mode 100755 index 0000000..371c876 --- /dev/null +++ b/docker_environment/bin/planetmint @@ -0,0 +1,12 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# EASY-INSTALL-ENTRY-SCRIPT: 'Planetmint','console_scripts','planetmint' +__requires__ = 'Planetmint' +import re +import sys +from pkg_resources import load_entry_point + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit( + load_entry_point('Planetmint', 'console_scripts', 'planetmint')() + ) diff --git a/docker_environment/bin/planetmint-monit-config b/docker_environment/bin/planetmint-monit-config new file mode 100755 index 0000000..0181505 --- /dev/null +++ b/docker_environment/bin/planetmint-monit-config @@ -0,0 +1,199 @@ +#!/bin/bash + +set -o nounset + +# Check if directory for monit logs exists +if [ ! -d "$HOME/.planetmint-monit" ]; then + mkdir -p "$HOME/.planetmint-monit" +fi + +monit_pid_path=${MONIT_PID_PATH:=$HOME/.planetmint-monit/monit_processes} +monit_script_path=${MONIT_SCRIPT_PATH:=$HOME/.planetmint-monit/monit_script} +monit_log_path=${MONIT_LOG_PATH:=$HOME/.planetmint-monit/logs} +monitrc_path=${MONITRC_PATH:=$HOME/.monitrc} + +function usage() { + cat <${monit_script_path} < /dev/null 2>&1 & + + echo \$! > \$2 + popd + + ;; + + stop_planetmint) + + kill -2 \`cat \$2\` + rm -f \$2 + + ;; + + start_tendermint) + + pushd \$4 + + nohup tendermint node >> \$3/tendermint.out.log 2>> \$3/tendermint.err.log & + + echo \$! > \$2 + popd + + ;; + + stop_tendermint) + + kill -2 \`cat \$2\` + rm -f \$2 + + ;; + +esac +exit 0 +EOF +chmod +x ${monit_script_path} + +cat >${monit_script_path}_logrotate <${monitrc_path} < 200 MB then + exec "${monit_script_path}_logrotate rotate_tendermint_logs ${monit_log_path}/tendermint.out.log $monit_pid_path/tendermint.pid" + +check file tendermint.err.log with path ${monit_log_path}/tendermint.err.log + if size > 200 MB then + exec "${monit_script_path}_logrotate rotate_tendermint_logs ${monit_log_path}/tendermint.err.log $monit_pid_path/tendermint.pid" + +EOF + +# Setting permissions for control file +chmod 0700 ${monitrc_path} + +echo -e "Planetmint process manager configured!" +set -o errexit diff --git a/docker_environment/bin/pre-commit b/docker_environment/bin/pre-commit new file mode 100755 index 0000000..be12d6b --- /dev/null +++ b/docker_environment/bin/pre-commit @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from pre_commit.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/pre-commit-validate-config b/docker_environment/bin/pre-commit-validate-config new file mode 100755 index 0000000..75f50e3 --- /dev/null +++ b/docker_environment/bin/pre-commit-validate-config @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from pre_commit.clientlib import validate_config_main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(validate_config_main()) diff --git a/docker_environment/bin/pre-commit-validate-manifest b/docker_environment/bin/pre-commit-validate-manifest new file mode 100755 index 0000000..bf56798 --- /dev/null +++ b/docker_environment/bin/pre-commit-validate-manifest @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from pre_commit.clientlib import validate_manifest_main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(validate_manifest_main()) diff --git a/docker_environment/bin/py.test b/docker_environment/bin/py.test new file mode 100755 index 0000000..8a3b399 --- /dev/null +++ b/docker_environment/bin/py.test @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from pytest import console_main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(console_main()) diff --git a/docker_environment/bin/pybabel b/docker_environment/bin/pybabel new file mode 100755 index 0000000..d20f106 --- /dev/null +++ b/docker_environment/bin/pybabel @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- 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()) diff --git a/docker_environment/bin/pycodestyle b/docker_environment/bin/pycodestyle new file mode 100755 index 0000000..2a8efb4 --- /dev/null +++ b/docker_environment/bin/pycodestyle @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from pycodestyle import _main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(_main()) diff --git a/docker_environment/bin/pyflakes b/docker_environment/bin/pyflakes new file mode 100755 index 0000000..348215b --- /dev/null +++ b/docker_environment/bin/pyflakes @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- 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()) diff --git a/docker_environment/bin/pygmentize b/docker_environment/bin/pygmentize new file mode 100755 index 0000000..fa663ec --- /dev/null +++ b/docker_environment/bin/pygmentize @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from pygments.cmdline import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/pytest b/docker_environment/bin/pytest new file mode 100755 index 0000000..8a3b399 --- /dev/null +++ b/docker_environment/bin/pytest @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from pytest import console_main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(console_main()) diff --git a/docker_environment/bin/python b/docker_environment/bin/python new file mode 120000 index 0000000..b8a0adb --- /dev/null +++ b/docker_environment/bin/python @@ -0,0 +1 @@ +python3 \ No newline at end of file diff --git a/docker_environment/bin/python3 b/docker_environment/bin/python3 new file mode 120000 index 0000000..ae65fda --- /dev/null +++ b/docker_environment/bin/python3 @@ -0,0 +1 @@ +/usr/bin/python3 \ No newline at end of file diff --git a/docker_environment/bin/python3.9 b/docker_environment/bin/python3.9 new file mode 120000 index 0000000..b8a0adb --- /dev/null +++ b/docker_environment/bin/python3.9 @@ -0,0 +1 @@ +python3 \ No newline at end of file diff --git a/docker_environment/bin/rst2html.py b/docker_environment/bin/rst2html.py new file mode 100755 index 0000000..bbf1d93 --- /dev/null +++ b/docker_environment/bin/rst2html.py @@ -0,0 +1,23 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 + +# $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $ +# Author: David Goodger +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing HTML. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates (X)HTML documents from standalone reStructuredText ' + 'sources. ' + default_description) + +publish_cmdline(writer_name='html', description=description) diff --git a/docker_environment/bin/rst2html4.py b/docker_environment/bin/rst2html4.py new file mode 100755 index 0000000..2257112 --- /dev/null +++ b/docker_environment/bin/rst2html4.py @@ -0,0 +1,26 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 + +# $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $ +# Author: David Goodger +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing (X)HTML. + +The output conforms to XHTML 1.0 transitional +and almost to HTML 4.01 transitional (except for closing empty tags). +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates (X)HTML documents from standalone reStructuredText ' + 'sources. ' + default_description) + +publish_cmdline(writer_name='html4', description=description) diff --git a/docker_environment/bin/rst2html5.py b/docker_environment/bin/rst2html5.py new file mode 100755 index 0000000..da3197d --- /dev/null +++ b/docker_environment/bin/rst2html5.py @@ -0,0 +1,34 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf8 -*- +# :Copyright: © 2015 Günter Milde. +# :License: Released under the terms of the `2-Clause BSD license`_, in short: +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. +# This file is offered as-is, without any warranty. +# +# .. _2-Clause BSD license: https://opensource.org/licenses/BSD-2-Clause +# +# Revision: $Revision: 8567 $ +# Date: $Date: 2020-09-30 13:57:21 +0200 (Mi, 30. Sep 2020) $ + +""" +A minimal front end to the Docutils Publisher, producing HTML 5 documents. + +The output is also valid XML. +""" + +try: + import locale # module missing in Jython + locale.setlocale(locale.LC_ALL, '') +except locale.Error: + pass + +from docutils.core import publish_cmdline, default_description + +description = (u'Generates HTML5 documents from standalone ' + u'reStructuredText sources.\n' + + default_description) + +publish_cmdline(writer_name='html5', description=description) diff --git a/docker_environment/bin/rst2latex.py b/docker_environment/bin/rst2latex.py new file mode 100755 index 0000000..a79354c --- /dev/null +++ b/docker_environment/bin/rst2latex.py @@ -0,0 +1,26 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 + +# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $ +# Author: David Goodger +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing LaTeX. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline + +description = ('Generates LaTeX documents from standalone reStructuredText ' + 'sources. ' + 'Reads from (default is stdin) and writes to ' + ' (default is stdout). See ' + ' for ' + 'the full reference.') + +publish_cmdline(writer_name='latex', description=description) diff --git a/docker_environment/bin/rst2man.py b/docker_environment/bin/rst2man.py new file mode 100755 index 0000000..9e1b26d --- /dev/null +++ b/docker_environment/bin/rst2man.py @@ -0,0 +1,26 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 + +# Author: +# Contact: grubert@users.sf.net +# Copyright: This module has been placed in the public domain. + +""" +man.py +====== + +This module provides a simple command line interface that uses the +man page writer to output from ReStructuredText source. +""" + +import locale +try: + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description +from docutils.writers import manpage + +description = ("Generates plain unix manual documents. " + default_description) + +publish_cmdline(writer=manpage.Writer(), description=description) diff --git a/docker_environment/bin/rst2odt.py b/docker_environment/bin/rst2odt.py new file mode 100755 index 0000000..9b46b0b --- /dev/null +++ b/docker_environment/bin/rst2odt.py @@ -0,0 +1,30 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 + +# $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $ +# Author: Dave Kuhlman +# Copyright: This module has been placed in the public domain. + +""" +A front end to the Docutils Publisher, producing OpenOffice documents. +""" + +import sys +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline_to_binary, default_description +from docutils.writers.odf_odt import Writer, Reader + + +description = ('Generates OpenDocument/OpenOffice/ODF documents from ' + 'standalone reStructuredText sources. ' + default_description) + + +writer = Writer() +reader = Reader() +output = publish_cmdline_to_binary(reader=reader, writer=writer, + description=description) + diff --git a/docker_environment/bin/rst2odt_prepstyles.py b/docker_environment/bin/rst2odt_prepstyles.py new file mode 100755 index 0000000..2468f46 --- /dev/null +++ b/docker_environment/bin/rst2odt_prepstyles.py @@ -0,0 +1,67 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 + +# $Id: rst2odt_prepstyles.py 8346 2019-08-26 12:11:32Z milde $ +# Author: Dave Kuhlman +# Copyright: This module has been placed in the public domain. + +""" +Fix a word-processor-generated styles.odt for odtwriter use: Drop page size +specifications from styles.xml in STYLE_FILE.odt. +""" + +# Author: Michael Schutte + +from __future__ import print_function + +from lxml import etree +import sys +import zipfile +from tempfile import mkstemp +import shutil +import os + +NAMESPACES = { + "style": "urn:oasis:names:tc:opendocument:xmlns:style:1.0", + "fo": "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" +} + + +def prepstyle(filename): + + zin = zipfile.ZipFile(filename) + styles = zin.read("styles.xml") + + root = etree.fromstring(styles) + for el in root.xpath("//style:page-layout-properties", + namespaces=NAMESPACES): + for attr in el.attrib: + if attr.startswith("{%s}" % NAMESPACES["fo"]): + del el.attrib[attr] + + tempname = mkstemp() + zout = zipfile.ZipFile(os.fdopen(tempname[0], "w"), "w", + zipfile.ZIP_DEFLATED) + + for item in zin.infolist(): + if item.filename == "styles.xml": + zout.writestr(item, etree.tostring(root)) + else: + zout.writestr(item, zin.read(item.filename)) + + zout.close() + zin.close() + shutil.move(tempname[1], filename) + + +def main(): + args = sys.argv[1:] + if len(args) != 1: + print(__doc__, file=sys.stderr) + print("Usage: %s STYLE_FILE.odt\n" % sys.argv[0], file=sys.stderr) + sys.exit(1) + filename = args[0] + prepstyle(filename) + + +if __name__ == '__main__': + main() diff --git a/docker_environment/bin/rst2pseudoxml.py b/docker_environment/bin/rst2pseudoxml.py new file mode 100755 index 0000000..cf1a7f2 --- /dev/null +++ b/docker_environment/bin/rst2pseudoxml.py @@ -0,0 +1,23 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 + +# $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $ +# Author: David Goodger +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing pseudo-XML. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates pseudo-XML from standalone reStructuredText ' + 'sources (for testing purposes). ' + default_description) + +publish_cmdline(description=description) diff --git a/docker_environment/bin/rst2s5.py b/docker_environment/bin/rst2s5.py new file mode 100755 index 0000000..fb7ae1c --- /dev/null +++ b/docker_environment/bin/rst2s5.py @@ -0,0 +1,24 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 + +# $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $ +# Author: Chris Liechti +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing HTML slides using +the S5 template system. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates S5 (X)HTML slideshow documents from standalone ' + 'reStructuredText sources. ' + default_description) + +publish_cmdline(writer_name='s5', description=description) diff --git a/docker_environment/bin/rst2xetex.py b/docker_environment/bin/rst2xetex.py new file mode 100755 index 0000000..e58e5d4 --- /dev/null +++ b/docker_environment/bin/rst2xetex.py @@ -0,0 +1,27 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 + +# $Id: rst2xetex.py 7847 2015-03-17 17:30:47Z milde $ +# Author: Guenter Milde +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX code. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline + +description = ('Generates LaTeX documents from standalone reStructuredText ' + 'sources for compilation with the Unicode-aware TeX variants ' + 'XeLaTeX or LuaLaTeX. ' + 'Reads from (default is stdin) and writes to ' + ' (default is stdout). See ' + ' for ' + 'the full reference.') + +publish_cmdline(writer_name='xetex', description=description) diff --git a/docker_environment/bin/rst2xml.py b/docker_environment/bin/rst2xml.py new file mode 100755 index 0000000..dd8dc99 --- /dev/null +++ b/docker_environment/bin/rst2xml.py @@ -0,0 +1,23 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 + +# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $ +# Author: David Goodger +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing Docutils XML. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates Docutils-native XML from standalone ' + 'reStructuredText sources. ' + default_description) + +publish_cmdline(writer_name='xml', description=description) diff --git a/docker_environment/bin/rstpep2html.py b/docker_environment/bin/rstpep2html.py new file mode 100755 index 0000000..b7a7a9f --- /dev/null +++ b/docker_environment/bin/rstpep2html.py @@ -0,0 +1,25 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 + +# $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $ +# Author: David Goodger +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing HTML from PEP +(Python Enhancement Proposal) documents. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates (X)HTML from reStructuredText-format PEP files. ' + + default_description) + +publish_cmdline(reader_name='pep', writer_name='pep_html', + description=description) diff --git a/docker_environment/bin/sphinx-apidoc b/docker_environment/bin/sphinx-apidoc new file mode 100755 index 0000000..1b6c51e --- /dev/null +++ b/docker_environment/bin/sphinx-apidoc @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from sphinx.ext.apidoc import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/sphinx-autogen b/docker_environment/bin/sphinx-autogen new file mode 100755 index 0000000..f327dfd --- /dev/null +++ b/docker_environment/bin/sphinx-autogen @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from sphinx.ext.autosummary.generate import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/sphinx-build b/docker_environment/bin/sphinx-build new file mode 100755 index 0000000..e8588f5 --- /dev/null +++ b/docker_environment/bin/sphinx-build @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from sphinx.cmd.build import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/sphinx-quickstart b/docker_environment/bin/sphinx-quickstart new file mode 100755 index 0000000..9ae415e --- /dev/null +++ b/docker_environment/bin/sphinx-quickstart @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from sphinx.cmd.quickstart import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/tox b/docker_environment/bin/tox new file mode 100755 index 0000000..bbed807 --- /dev/null +++ b/docker_environment/bin/tox @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from tox import cmdline +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cmdline()) diff --git a/docker_environment/bin/tox-quickstart b/docker_environment/bin/tox-quickstart new file mode 100755 index 0000000..7e67a58 --- /dev/null +++ b/docker_environment/bin/tox-quickstart @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from tox._quickstart import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/twine b/docker_environment/bin/twine new file mode 100755 index 0000000..cf3c97d --- /dev/null +++ b/docker_environment/bin/twine @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from twine.__main__ import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/bin/virtualenv b/docker_environment/bin/virtualenv new file mode 100755 index 0000000..dde3caa --- /dev/null +++ b/docker_environment/bin/virtualenv @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from virtualenv.__main__ import run_with_catch +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(run_with_catch()) diff --git a/docker_environment/bin/watchmedo b/docker_environment/bin/watchmedo new file mode 100755 index 0000000..4e2a9e8 --- /dev/null +++ b/docker_environment/bin/watchmedo @@ -0,0 +1,8 @@ +#!/home/deffuls/work/planetmint/docker_environment/bin/python3 +# -*- coding: utf-8 -*- +import re +import sys +from watchdog.watchmedo import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/docker_environment/include/site/python3.9/greenlet/greenlet.h b/docker_environment/include/site/python3.9/greenlet/greenlet.h new file mode 100644 index 0000000..830bef8 --- /dev/null +++ b/docker_environment/include/site/python3.9/greenlet/greenlet.h @@ -0,0 +1,146 @@ +/* -*- indent-tabs-mode: nil; tab-width: 4; -*- */ + +/* Greenlet object interface */ + +#ifndef Py_GREENLETOBJECT_H +#define Py_GREENLETOBJECT_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/* This is deprecated and undocumented. It does not change. */ +#define GREENLET_VERSION "1.0.0" + +typedef struct _greenlet { + PyObject_HEAD + char* stack_start; + char* stack_stop; + char* stack_copy; + intptr_t stack_saved; + struct _greenlet* stack_prev; + struct _greenlet* parent; + PyObject* run_info; + struct _frame* top_frame; + int recursion_depth; + PyObject* weakreflist; +#if PY_VERSION_HEX >= 0x030700A3 + _PyErr_StackItem* exc_info; + _PyErr_StackItem exc_state; +#else + PyObject* exc_type; + PyObject* exc_value; + PyObject* exc_traceback; +#endif + PyObject* dict; +#if PY_VERSION_HEX >= 0x030700A3 + PyObject* context; +#endif +#if PY_VERSION_HEX >= 0x30A00B1 + CFrame* cframe; +#endif +} PyGreenlet; + +#define PyGreenlet_Check(op) PyObject_TypeCheck(op, &PyGreenlet_Type) +#define PyGreenlet_MAIN(op) (((PyGreenlet*)(op))->stack_stop == (char*)-1) +#define PyGreenlet_STARTED(op) (((PyGreenlet*)(op))->stack_stop != NULL) +#define PyGreenlet_ACTIVE(op) (((PyGreenlet*)(op))->stack_start != NULL) +#define PyGreenlet_GET_PARENT(op) (((PyGreenlet*)(op))->parent) + +/* C API functions */ + +/* Total number of symbols that are exported */ +#define PyGreenlet_API_pointers 8 + +#define PyGreenlet_Type_NUM 0 +#define PyExc_GreenletError_NUM 1 +#define PyExc_GreenletExit_NUM 2 + +#define PyGreenlet_New_NUM 3 +#define PyGreenlet_GetCurrent_NUM 4 +#define PyGreenlet_Throw_NUM 5 +#define PyGreenlet_Switch_NUM 6 +#define PyGreenlet_SetParent_NUM 7 + +#ifndef GREENLET_MODULE +/* This section is used by modules that uses the greenlet C API */ +static void** _PyGreenlet_API = NULL; + +# define PyGreenlet_Type \ + (*(PyTypeObject*)_PyGreenlet_API[PyGreenlet_Type_NUM]) + +# define PyExc_GreenletError \ + ((PyObject*)_PyGreenlet_API[PyExc_GreenletError_NUM]) + +# define PyExc_GreenletExit \ + ((PyObject*)_PyGreenlet_API[PyExc_GreenletExit_NUM]) + +/* + * PyGreenlet_New(PyObject *args) + * + * greenlet.greenlet(run, parent=None) + */ +# define PyGreenlet_New \ + (*(PyGreenlet * (*)(PyObject * run, PyGreenlet * parent)) \ + _PyGreenlet_API[PyGreenlet_New_NUM]) + +/* + * PyGreenlet_GetCurrent(void) + * + * greenlet.getcurrent() + */ +# define PyGreenlet_GetCurrent \ + (*(PyGreenlet * (*)(void)) _PyGreenlet_API[PyGreenlet_GetCurrent_NUM]) + +/* + * PyGreenlet_Throw( + * PyGreenlet *greenlet, + * PyObject *typ, + * PyObject *val, + * PyObject *tb) + * + * g.throw(...) + */ +# define PyGreenlet_Throw \ + (*(PyObject * (*)(PyGreenlet * self, \ + PyObject * typ, \ + PyObject * val, \ + PyObject * tb)) \ + _PyGreenlet_API[PyGreenlet_Throw_NUM]) + +/* + * PyGreenlet_Switch(PyGreenlet *greenlet, PyObject *args) + * + * g.switch(*args, **kwargs) + */ +# define PyGreenlet_Switch \ + (*(PyObject * \ + (*)(PyGreenlet * greenlet, PyObject * args, PyObject * kwargs)) \ + _PyGreenlet_API[PyGreenlet_Switch_NUM]) + +/* + * PyGreenlet_SetParent(PyObject *greenlet, PyObject *new_parent) + * + * g.parent = new_parent + */ +# define PyGreenlet_SetParent \ + (*(int (*)(PyGreenlet * greenlet, PyGreenlet * nparent)) \ + _PyGreenlet_API[PyGreenlet_SetParent_NUM]) + +/* Macro that imports greenlet and initializes C API */ +/* NOTE: This has actually moved to ``greenlet._greenlet._C_API``, but we + keep the older definition to be sure older code that might have a copy of + the header still works. */ +# define PyGreenlet_Import() \ + { \ + _PyGreenlet_API = (void**)PyCapsule_Import("greenlet._C_API", 0); \ + } + +#endif /* GREENLET_MODULE */ + +#ifdef __cplusplus +} +#endif +#endif /* !Py_GREENLETOBJECT_H */ diff --git a/docker_environment/lib64 b/docker_environment/lib64 new file mode 120000 index 0000000..7951405 --- /dev/null +++ b/docker_environment/lib64 @@ -0,0 +1 @@ +lib \ No newline at end of file diff --git a/docker_environment/pyvenv.cfg b/docker_environment/pyvenv.cfg new file mode 100644 index 0000000..5c102c1 --- /dev/null +++ b/docker_environment/pyvenv.cfg @@ -0,0 +1,3 @@ +home = /usr/bin +include-system-site-packages = false +version = 3.9.2 diff --git a/docker_environment/share/man/man1/ipython.1 b/docker_environment/share/man/man1/ipython.1 new file mode 100644 index 0000000..0f4a191 --- /dev/null +++ b/docker_environment/share/man/man1/ipython.1 @@ -0,0 +1,60 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH IPYTHON 1 "July 15, 2011" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) and groff_man(7) +.\" .SH section heading +.\" .SS secondary section heading +.\" +.\" +.\" To preview this page as plain text: nroff -man ipython.1 +.\" +.SH NAME +ipython \- Tools for Interactive Computing in Python. +.SH SYNOPSIS +.B ipython +.RI [ options ] " files" ... + +.B ipython subcommand +.RI [ options ] ... + +.SH DESCRIPTION +An interactive Python shell with automatic history (input and output), dynamic +object introspection, easier configuration, command completion, access to the +system shell, integration with numerical and scientific computing tools, +web notebook, Qt console, and more. + +For more information on how to use IPython, see 'ipython \-\-help', +or 'ipython \-\-help\-all' for all available command\(hyline options. + +.SH "ENVIRONMENT VARIABLES" +.sp +.PP +\fIIPYTHONDIR\fR +.RS 4 +This is the location where IPython stores all its configuration files. The default +is $HOME/.ipython if IPYTHONDIR is not defined. + +You can see the computed value of IPYTHONDIR with `ipython locate`. + +.SH FILES + +IPython uses various configuration files stored in profiles within IPYTHONDIR. +To generate the default configuration files and start configuring IPython, +do 'ipython profile create', and edit '*_config.py' files located in +IPYTHONDIR/profile_default. + +.SH AUTHORS +IPython is written by the IPython Development Team . diff --git a/docker_environment/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl b/docker_environment/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl new file mode 100644 index 0000000..6ef9423 Binary files /dev/null and b/docker_environment/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/appdirs-1.4.4-py2.py3-none-any.whl b/docker_environment/share/python-wheels/appdirs-1.4.4-py2.py3-none-any.whl new file mode 100644 index 0000000..2459003 Binary files /dev/null and b/docker_environment/share/python-wheels/appdirs-1.4.4-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/certifi-2020.6.20-py2.py3-none-any.whl b/docker_environment/share/python-wheels/certifi-2020.6.20-py2.py3-none-any.whl new file mode 100644 index 0000000..9f6ebc6 Binary files /dev/null and b/docker_environment/share/python-wheels/certifi-2020.6.20-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/chardet-4.0.0-py2.py3-none-any.whl b/docker_environment/share/python-wheels/chardet-4.0.0-py2.py3-none-any.whl new file mode 100644 index 0000000..c120243 Binary files /dev/null and b/docker_environment/share/python-wheels/chardet-4.0.0-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/colorama-0.4.4-py2.py3-none-any.whl b/docker_environment/share/python-wheels/colorama-0.4.4-py2.py3-none-any.whl new file mode 100644 index 0000000..d38d3a0 Binary files /dev/null and b/docker_environment/share/python-wheels/colorama-0.4.4-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/contextlib2-0.6.0.post1-py2.py3-none-any.whl b/docker_environment/share/python-wheels/contextlib2-0.6.0.post1-py2.py3-none-any.whl new file mode 100644 index 0000000..d1dca5f Binary files /dev/null and b/docker_environment/share/python-wheels/contextlib2-0.6.0.post1-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/distlib-0.3.1-py2.py3-none-any.whl b/docker_environment/share/python-wheels/distlib-0.3.1-py2.py3-none-any.whl new file mode 100644 index 0000000..6503b96 Binary files /dev/null and b/docker_environment/share/python-wheels/distlib-0.3.1-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/distro-1.5.0-py2.py3-none-any.whl b/docker_environment/share/python-wheels/distro-1.5.0-py2.py3-none-any.whl new file mode 100644 index 0000000..3708fe7 Binary files /dev/null and b/docker_environment/share/python-wheels/distro-1.5.0-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/html5lib-1.1-py2.py3-none-any.whl b/docker_environment/share/python-wheels/html5lib-1.1-py2.py3-none-any.whl new file mode 100644 index 0000000..fb5e80c Binary files /dev/null and b/docker_environment/share/python-wheels/html5lib-1.1-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/idna-2.10-py2.py3-none-any.whl b/docker_environment/share/python-wheels/idna-2.10-py2.py3-none-any.whl new file mode 100644 index 0000000..0ba1dda Binary files /dev/null and b/docker_environment/share/python-wheels/idna-2.10-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/ipaddr-2.2.0-py2.py3-none-any.whl b/docker_environment/share/python-wheels/ipaddr-2.2.0-py2.py3-none-any.whl new file mode 100644 index 0000000..98157fa Binary files /dev/null and b/docker_environment/share/python-wheels/ipaddr-2.2.0-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/msgpack-1.0.0-py2.py3-none-any.whl b/docker_environment/share/python-wheels/msgpack-1.0.0-py2.py3-none-any.whl new file mode 100644 index 0000000..e761172 Binary files /dev/null and b/docker_environment/share/python-wheels/msgpack-1.0.0-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/packaging-20.9-py2.py3-none-any.whl b/docker_environment/share/python-wheels/packaging-20.9-py2.py3-none-any.whl new file mode 100644 index 0000000..e6598ec Binary files /dev/null and b/docker_environment/share/python-wheels/packaging-20.9-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/pep517-0.9.1-py2.py3-none-any.whl b/docker_environment/share/python-wheels/pep517-0.9.1-py2.py3-none-any.whl new file mode 100644 index 0000000..d870913 Binary files /dev/null and b/docker_environment/share/python-wheels/pep517-0.9.1-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/pip-20.3.4-py2.py3-none-any.whl b/docker_environment/share/python-wheels/pip-20.3.4-py2.py3-none-any.whl new file mode 100644 index 0000000..51cafb9 Binary files /dev/null and b/docker_environment/share/python-wheels/pip-20.3.4-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl b/docker_environment/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl new file mode 100644 index 0000000..72e02ff Binary files /dev/null and b/docker_environment/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/progress-1.5-py2.py3-none-any.whl b/docker_environment/share/python-wheels/progress-1.5-py2.py3-none-any.whl new file mode 100644 index 0000000..7f58777 Binary files /dev/null and b/docker_environment/share/python-wheels/progress-1.5-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/pyparsing-2.4.7-py2.py3-none-any.whl b/docker_environment/share/python-wheels/pyparsing-2.4.7-py2.py3-none-any.whl new file mode 100644 index 0000000..9ff2e00 Binary files /dev/null and b/docker_environment/share/python-wheels/pyparsing-2.4.7-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/requests-2.25.1-py2.py3-none-any.whl b/docker_environment/share/python-wheels/requests-2.25.1-py2.py3-none-any.whl new file mode 100644 index 0000000..eb382f7 Binary files /dev/null and b/docker_environment/share/python-wheels/requests-2.25.1-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl b/docker_environment/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl new file mode 100644 index 0000000..cd8f0de Binary files /dev/null and b/docker_environment/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/retrying-1.3.3-py2.py3-none-any.whl b/docker_environment/share/python-wheels/retrying-1.3.3-py2.py3-none-any.whl new file mode 100644 index 0000000..e2f8ffa Binary files /dev/null and b/docker_environment/share/python-wheels/retrying-1.3.3-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/setuptools-44.1.1-py2.py3-none-any.whl b/docker_environment/share/python-wheels/setuptools-44.1.1-py2.py3-none-any.whl new file mode 100644 index 0000000..e3d6e08 Binary files /dev/null and b/docker_environment/share/python-wheels/setuptools-44.1.1-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/six-1.16.0-py2.py3-none-any.whl b/docker_environment/share/python-wheels/six-1.16.0-py2.py3-none-any.whl new file mode 100644 index 0000000..574b3ab Binary files /dev/null and b/docker_environment/share/python-wheels/six-1.16.0-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/toml-0.10.1-py2.py3-none-any.whl b/docker_environment/share/python-wheels/toml-0.10.1-py2.py3-none-any.whl new file mode 100644 index 0000000..3b1cbcb Binary files /dev/null and b/docker_environment/share/python-wheels/toml-0.10.1-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl b/docker_environment/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl new file mode 100644 index 0000000..b17a8e8 Binary files /dev/null and b/docker_environment/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/webencodings-0.5.1-py2.py3-none-any.whl b/docker_environment/share/python-wheels/webencodings-0.5.1-py2.py3-none-any.whl new file mode 100644 index 0000000..0a83fdd Binary files /dev/null and b/docker_environment/share/python-wheels/webencodings-0.5.1-py2.py3-none-any.whl differ diff --git a/docker_environment/share/python-wheels/wheel-0.34.2-py2.py3-none-any.whl b/docker_environment/share/python-wheels/wheel-0.34.2-py2.py3-none-any.whl new file mode 100644 index 0000000..3fcb11b Binary files /dev/null and b/docker_environment/share/python-wheels/wheel-0.34.2-py2.py3-none-any.whl differ diff --git a/planetmint/backend/tarantool/query.py b/planetmint/backend/tarantool/query.py index cf5cf56..0fd30d9 100644 --- a/planetmint/backend/tarantool/query.py +++ b/planetmint/backend/tarantool/query.py @@ -284,7 +284,10 @@ def get_spending_transactions(connection, inputs): def get_block(connection, block_id=[]): space = connection.space("blocks") _block = space.select(block_id, index="block_search", limit=1) - _block = _block.data[0] + _block = _block.data + if len(_block) == 0: + return [] + _block = _block[0] space = connection.space("blocks_tx") _txblock = space.select(_block[2], index="block_search") _txblock = _txblock.data @@ -296,8 +299,9 @@ def get_block_with_transaction(connection, txid: str): space = connection.space("blocks_tx") _all_blocks_tx = space.select(txid, index="id_search") _all_blocks_tx = _all_blocks_tx.data + if len(_all_blocks_tx) == 0: + return [] space = connection.space("blocks") - _block = space.select(_all_blocks_tx[0][1], index="block_id_search") _block = _block.data[0] return {"app_hash": _block[0], "height": _block[1], "transactions": [_tx[0] for _tx in _all_blocks_tx]}