diff --git a/README.md b/README.md index 5cb96c0f..9323ab45 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,9 @@ source venv/bin/activate # Make sure you are in the folder where you cloned this repository, if not: # cd trio-docs +# To build and preview the site locally (hot-reload the pages in the Web browser) +python -m pip install sphinx-autobuild + # Install the project's required packages python -m pip install -r requirements.txt ``` diff --git a/venv_mkdocs/bin/Activate.ps1 b/venv_mkdocs/bin/Activate.ps1 new file mode 100644 index 00000000..eeea3583 --- /dev/null +++ b/venv_mkdocs/bin/Activate.ps1 @@ -0,0 +1,247 @@ +<# +.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 VIRTUAL_ENV_PROMPT altogether. + if (Test-Path -Path Env:VIRTUAL_ENV_PROMPT) { + Remove-Item -Path env:VIRTUAL_ENV_PROMPT + } + + # 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 virtual 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 + } + $env:VIRTUAL_ENV_PROMPT = $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/venv_mkdocs/bin/activate b/venv_mkdocs/bin/activate new file mode 100644 index 00000000..9e1c72ed --- /dev/null +++ b/venv_mkdocs/bin/activate @@ -0,0 +1,70 @@ +# 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 + + # Call hash to forget past commands. Without forgetting + # past commands the $PATH changes we made may not be respected + hash -r 2> /dev/null + + if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then + PS1="${_OLD_VIRTUAL_PS1:-}" + export PS1 + unset _OLD_VIRTUAL_PS1 + fi + + unset VIRTUAL_ENV + unset VIRTUAL_ENV_PROMPT + if [ ! "${1:-}" = "nondestructive" ] ; then + # Self destruct! + unset -f deactivate + fi +} + +# unset irrelevant variables +deactivate nondestructive + +# on Windows, a path can contain colons and backslashes and has to be converted: +if [ "${OSTYPE:-}" = "cygwin" ] || [ "${OSTYPE:-}" = "msys" ] ; then + # transform D:\path\to\venv to /d/path/to/venv on MSYS + # and to /cygdrive/d/path/to/venv on Cygwin + export VIRTUAL_ENV=$(cygpath "/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs") +else + # use the path as-is + export VIRTUAL_ENV="/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs" +fi + +_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="(venv_mkdocs) ${PS1:-}" + export PS1 + VIRTUAL_ENV_PROMPT="(venv_mkdocs) " + export VIRTUAL_ENV_PROMPT +fi + +# Call hash to forget past commands. Without forgetting +# past commands the $PATH changes we made may not be respected +hash -r 2> /dev/null diff --git a/venv_mkdocs/bin/activate.csh b/venv_mkdocs/bin/activate.csh new file mode 100644 index 00000000..92123179 --- /dev/null +++ b/venv_mkdocs/bin/activate.csh @@ -0,0 +1,27 @@ +# 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; unsetenv VIRTUAL_ENV_PROMPT; test "\!:*" != "nondestructive" && unalias deactivate' + +# Unset irrelevant variables. +deactivate nondestructive + +setenv VIRTUAL_ENV "/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs" + +set _OLD_VIRTUAL_PATH="$PATH" +setenv PATH "$VIRTUAL_ENV/bin:$PATH" + + +set _OLD_VIRTUAL_PROMPT="$prompt" + +if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then + set prompt = "(venv_mkdocs) $prompt" + setenv VIRTUAL_ENV_PROMPT "(venv_mkdocs) " +endif + +alias pydoc python -m pydoc + +rehash diff --git a/venv_mkdocs/bin/activate.fish b/venv_mkdocs/bin/activate.fish new file mode 100644 index 00000000..4db3f2cd --- /dev/null +++ b/venv_mkdocs/bin/activate.fish @@ -0,0 +1,69 @@ +# 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" + set -e _OLD_FISH_PROMPT_OVERRIDE + # prevents error when using nested fish instances (Issue #93858) + if functions -q _old_fish_prompt + functions -e fish_prompt + functions -c _old_fish_prompt fish_prompt + functions -e _old_fish_prompt + end + end + + set -e VIRTUAL_ENV + set -e VIRTUAL_ENV_PROMPT + if test "$argv[1]" != "nondestructive" + # Self-destruct! + functions -e deactivate + end +end + +# Unset irrelevant variables. +deactivate nondestructive + +set -gx VIRTUAL_ENV "/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs" + +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) "(venv_mkdocs) " (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" + set -gx VIRTUAL_ENV_PROMPT "(venv_mkdocs) " +end diff --git a/venv_mkdocs/bin/deepl b/venv_mkdocs/bin/deepl new file mode 100755 index 00000000..3da2c6c5 --- /dev/null +++ b/venv_mkdocs/bin/deepl @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from deepl.__main__ import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/venv_mkdocs/bin/ghp-import b/venv_mkdocs/bin/ghp-import new file mode 100755 index 00000000..7ad0e0d3 --- /dev/null +++ b/venv_mkdocs/bin/ghp-import @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from ghp_import import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/venv_mkdocs/bin/markdown-it b/venv_mkdocs/bin/markdown-it new file mode 100755 index 00000000..c5529547 --- /dev/null +++ b/venv_mkdocs/bin/markdown-it @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- 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/venv_mkdocs/bin/markdown_py b/venv_mkdocs/bin/markdown_py new file mode 100755 index 00000000..d3c86d5b --- /dev/null +++ b/venv_mkdocs/bin/markdown_py @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from markdown.__main__ import run +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(run()) diff --git a/venv_mkdocs/bin/mkdocs b/venv_mkdocs/bin/mkdocs new file mode 100755 index 00000000..80466b4a --- /dev/null +++ b/venv_mkdocs/bin/mkdocs @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from mkdocs.__main__ import cli +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli()) diff --git a/venv_mkdocs/bin/mkdocs-get-deps b/venv_mkdocs/bin/mkdocs-get-deps new file mode 100755 index 00000000..89415385 --- /dev/null +++ b/venv_mkdocs/bin/mkdocs-get-deps @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from mkdocs_get_deps.__main__ import cli +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli()) diff --git a/venv_mkdocs/bin/mkdocs_translate b/venv_mkdocs/bin/mkdocs_translate new file mode 100755 index 00000000..12d5582e --- /dev/null +++ b/venv_mkdocs/bin/mkdocs_translate @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from mkdocs_translate.cli import app +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(app()) diff --git a/venv_mkdocs/bin/normalizer b/venv_mkdocs/bin/normalizer new file mode 100755 index 00000000..8f1b74f2 --- /dev/null +++ b/venv_mkdocs/bin/normalizer @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from charset_normalizer.cli 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/venv_mkdocs/bin/pip b/venv_mkdocs/bin/pip new file mode 100755 index 00000000..b21ebff4 --- /dev/null +++ b/venv_mkdocs/bin/pip @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- 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/venv_mkdocs/bin/pip-compile b/venv_mkdocs/bin/pip-compile new file mode 100755 index 00000000..7397a58b --- /dev/null +++ b/venv_mkdocs/bin/pip-compile @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from piptools.scripts.compile import cli +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli()) diff --git a/venv_mkdocs/bin/pip-sync b/venv_mkdocs/bin/pip-sync new file mode 100755 index 00000000..506c0da6 --- /dev/null +++ b/venv_mkdocs/bin/pip-sync @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from piptools.scripts.sync import cli +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli()) diff --git a/venv_mkdocs/bin/pip3 b/venv_mkdocs/bin/pip3 new file mode 100755 index 00000000..b21ebff4 --- /dev/null +++ b/venv_mkdocs/bin/pip3 @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- 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/venv_mkdocs/bin/pip3.12 b/venv_mkdocs/bin/pip3.12 new file mode 100755 index 00000000..b21ebff4 --- /dev/null +++ b/venv_mkdocs/bin/pip3.12 @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- 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/venv_mkdocs/bin/pybabel b/venv_mkdocs/bin/pybabel new file mode 100755 index 00000000..137a1dce --- /dev/null +++ b/venv_mkdocs/bin/pybabel @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- 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/venv_mkdocs/bin/pygmentize b/venv_mkdocs/bin/pygmentize new file mode 100755 index 00000000..8f2b4be4 --- /dev/null +++ b/venv_mkdocs/bin/pygmentize @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- 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/venv_mkdocs/bin/pyproject-build b/venv_mkdocs/bin/pyproject-build new file mode 100755 index 00000000..f1fe8d7b --- /dev/null +++ b/venv_mkdocs/bin/pyproject-build @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from build.__main__ import entrypoint +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(entrypoint()) diff --git a/venv_mkdocs/bin/python b/venv_mkdocs/bin/python new file mode 120000 index 00000000..0975bea4 --- /dev/null +++ b/venv_mkdocs/bin/python @@ -0,0 +1 @@ +/Users/eric/.pyenv/versions/3.12.3/bin/python \ No newline at end of file diff --git a/venv_mkdocs/bin/python3 b/venv_mkdocs/bin/python3 new file mode 120000 index 00000000..d8654aa0 --- /dev/null +++ b/venv_mkdocs/bin/python3 @@ -0,0 +1 @@ +python \ No newline at end of file diff --git a/venv_mkdocs/bin/python3.12 b/venv_mkdocs/bin/python3.12 new file mode 120000 index 00000000..d8654aa0 --- /dev/null +++ b/venv_mkdocs/bin/python3.12 @@ -0,0 +1 @@ +python \ No newline at end of file diff --git a/venv_mkdocs/bin/typer b/venv_mkdocs/bin/typer new file mode 100755 index 00000000..d45ead08 --- /dev/null +++ b/venv_mkdocs/bin/typer @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from typer.cli import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/venv_mkdocs/bin/watchmedo b/venv_mkdocs/bin/watchmedo new file mode 100755 index 00000000..bc7160f1 --- /dev/null +++ b/venv_mkdocs/bin/watchmedo @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- 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/venv_mkdocs/bin/wheel b/venv_mkdocs/bin/wheel new file mode 100755 index 00000000..26b4d85d --- /dev/null +++ b/venv_mkdocs/bin/wheel @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from wheel.cli import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/venv_mkdocs/pyvenv.cfg b/venv_mkdocs/pyvenv.cfg new file mode 100644 index 00000000..15b61d6d --- /dev/null +++ b/venv_mkdocs/pyvenv.cfg @@ -0,0 +1,5 @@ +home = /Users/eric/.pyenv/versions/3.12.3/bin +include-system-site-packages = false +version = 3.12.3 +executable = /Users/eric/.pyenv/versions/3.12.3/bin/python3.12 +command = /Users/eric/.pyenv/versions/3.12.3/bin/python -m venv /Users/eric/dev/Perso/Diabetes/trio-docs/venv_mkdocs diff --git a/venv_sphinx/bin/Activate.ps1 b/venv_sphinx/bin/Activate.ps1 new file mode 100644 index 00000000..eeea3583 --- /dev/null +++ b/venv_sphinx/bin/Activate.ps1 @@ -0,0 +1,247 @@ +<# +.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 VIRTUAL_ENV_PROMPT altogether. + if (Test-Path -Path Env:VIRTUAL_ENV_PROMPT) { + Remove-Item -Path env:VIRTUAL_ENV_PROMPT + } + + # 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 virtual 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 + } + $env:VIRTUAL_ENV_PROMPT = $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/venv_sphinx/bin/activate b/venv_sphinx/bin/activate new file mode 100644 index 00000000..130b1f5a --- /dev/null +++ b/venv_sphinx/bin/activate @@ -0,0 +1,70 @@ +# 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 + + # Call hash to forget past commands. Without forgetting + # past commands the $PATH changes we made may not be respected + hash -r 2> /dev/null + + if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then + PS1="${_OLD_VIRTUAL_PS1:-}" + export PS1 + unset _OLD_VIRTUAL_PS1 + fi + + unset VIRTUAL_ENV + unset VIRTUAL_ENV_PROMPT + if [ ! "${1:-}" = "nondestructive" ] ; then + # Self destruct! + unset -f deactivate + fi +} + +# unset irrelevant variables +deactivate nondestructive + +# on Windows, a path can contain colons and backslashes and has to be converted: +if [ "${OSTYPE:-}" = "cygwin" ] || [ "${OSTYPE:-}" = "msys" ] ; then + # transform D:\path\to\venv to /d/path/to/venv on MSYS + # and to /cygdrive/d/path/to/venv on Cygwin + export VIRTUAL_ENV=$(cygpath "/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx") +else + # use the path as-is + export VIRTUAL_ENV="/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx" +fi + +_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="(venv_sphinx) ${PS1:-}" + export PS1 + VIRTUAL_ENV_PROMPT="(venv_sphinx) " + export VIRTUAL_ENV_PROMPT +fi + +# Call hash to forget past commands. Without forgetting +# past commands the $PATH changes we made may not be respected +hash -r 2> /dev/null diff --git a/venv_sphinx/bin/activate.csh b/venv_sphinx/bin/activate.csh new file mode 100644 index 00000000..4257bb3f --- /dev/null +++ b/venv_sphinx/bin/activate.csh @@ -0,0 +1,27 @@ +# 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; unsetenv VIRTUAL_ENV_PROMPT; test "\!:*" != "nondestructive" && unalias deactivate' + +# Unset irrelevant variables. +deactivate nondestructive + +setenv VIRTUAL_ENV "/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx" + +set _OLD_VIRTUAL_PATH="$PATH" +setenv PATH "$VIRTUAL_ENV/bin:$PATH" + + +set _OLD_VIRTUAL_PROMPT="$prompt" + +if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then + set prompt = "(venv_sphinx) $prompt" + setenv VIRTUAL_ENV_PROMPT "(venv_sphinx) " +endif + +alias pydoc python -m pydoc + +rehash diff --git a/venv_sphinx/bin/activate.fish b/venv_sphinx/bin/activate.fish new file mode 100644 index 00000000..42e89f1d --- /dev/null +++ b/venv_sphinx/bin/activate.fish @@ -0,0 +1,69 @@ +# 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" + set -e _OLD_FISH_PROMPT_OVERRIDE + # prevents error when using nested fish instances (Issue #93858) + if functions -q _old_fish_prompt + functions -e fish_prompt + functions -c _old_fish_prompt fish_prompt + functions -e _old_fish_prompt + end + end + + set -e VIRTUAL_ENV + set -e VIRTUAL_ENV_PROMPT + if test "$argv[1]" != "nondestructive" + # Self-destruct! + functions -e deactivate + end +end + +# Unset irrelevant variables. +deactivate nondestructive + +set -gx VIRTUAL_ENV "/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx" + +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) "(venv_sphinx) " (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" + set -gx VIRTUAL_ENV_PROMPT "(venv_sphinx) " +end diff --git a/venv_sphinx/bin/markdown-it b/venv_sphinx/bin/markdown-it new file mode 100755 index 00000000..20ea50e2 --- /dev/null +++ b/venv_sphinx/bin/markdown-it @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- 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/venv_sphinx/bin/myst-anchors b/venv_sphinx/bin/myst-anchors new file mode 100755 index 00000000..eaace1f0 --- /dev/null +++ b/venv_sphinx/bin/myst-anchors @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- 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/venv_sphinx/bin/myst-docutils-html b/venv_sphinx/bin/myst-docutils-html new file mode 100755 index 00000000..e7448710 --- /dev/null +++ b/venv_sphinx/bin/myst-docutils-html @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from myst_parser.parsers.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/venv_sphinx/bin/myst-docutils-html5 b/venv_sphinx/bin/myst-docutils-html5 new file mode 100755 index 00000000..19cebe51 --- /dev/null +++ b/venv_sphinx/bin/myst-docutils-html5 @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from myst_parser.parsers.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/venv_sphinx/bin/myst-docutils-latex b/venv_sphinx/bin/myst-docutils-latex new file mode 100755 index 00000000..d2afa983 --- /dev/null +++ b/venv_sphinx/bin/myst-docutils-latex @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from myst_parser.parsers.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/venv_sphinx/bin/myst-docutils-pseudoxml b/venv_sphinx/bin/myst-docutils-pseudoxml new file mode 100755 index 00000000..4fd9bba1 --- /dev/null +++ b/venv_sphinx/bin/myst-docutils-pseudoxml @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from myst_parser.parsers.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/venv_sphinx/bin/myst-docutils-xml b/venv_sphinx/bin/myst-docutils-xml new file mode 100755 index 00000000..aa8e0852 --- /dev/null +++ b/venv_sphinx/bin/myst-docutils-xml @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from myst_parser.parsers.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/venv_sphinx/bin/normalizer b/venv_sphinx/bin/normalizer new file mode 100755 index 00000000..af5d42ab --- /dev/null +++ b/venv_sphinx/bin/normalizer @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from charset_normalizer.cli 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/venv_sphinx/bin/pip b/venv_sphinx/bin/pip new file mode 100755 index 00000000..ebfc97f0 --- /dev/null +++ b/venv_sphinx/bin/pip @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- 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/venv_sphinx/bin/pip3 b/venv_sphinx/bin/pip3 new file mode 100755 index 00000000..ebfc97f0 --- /dev/null +++ b/venv_sphinx/bin/pip3 @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- 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/venv_sphinx/bin/pip3.12 b/venv_sphinx/bin/pip3.12 new file mode 100755 index 00000000..ebfc97f0 --- /dev/null +++ b/venv_sphinx/bin/pip3.12 @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- 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/venv_sphinx/bin/pybabel b/venv_sphinx/bin/pybabel new file mode 100755 index 00000000..b10af200 --- /dev/null +++ b/venv_sphinx/bin/pybabel @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- 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/venv_sphinx/bin/pygmentize b/venv_sphinx/bin/pygmentize new file mode 100755 index 00000000..425bca1b --- /dev/null +++ b/venv_sphinx/bin/pygmentize @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- 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/venv_sphinx/bin/python b/venv_sphinx/bin/python new file mode 120000 index 00000000..0975bea4 --- /dev/null +++ b/venv_sphinx/bin/python @@ -0,0 +1 @@ +/Users/eric/.pyenv/versions/3.12.3/bin/python \ No newline at end of file diff --git a/venv_sphinx/bin/python3 b/venv_sphinx/bin/python3 new file mode 120000 index 00000000..d8654aa0 --- /dev/null +++ b/venv_sphinx/bin/python3 @@ -0,0 +1 @@ +python \ No newline at end of file diff --git a/venv_sphinx/bin/python3.12 b/venv_sphinx/bin/python3.12 new file mode 120000 index 00000000..d8654aa0 --- /dev/null +++ b/venv_sphinx/bin/python3.12 @@ -0,0 +1 @@ +python \ No newline at end of file diff --git a/venv_sphinx/bin/rst2html.py b/venv_sphinx/bin/rst2html.py new file mode 100755 index 00000000..be3967ad --- /dev/null +++ b/venv_sphinx/bin/rst2html.py @@ -0,0 +1,23 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python + +# $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/venv_sphinx/bin/rst2html4.py b/venv_sphinx/bin/rst2html4.py new file mode 100755 index 00000000..8f9eeccd --- /dev/null +++ b/venv_sphinx/bin/rst2html4.py @@ -0,0 +1,26 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python + +# $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/venv_sphinx/bin/rst2html5.py b/venv_sphinx/bin/rst2html5.py new file mode 100755 index 00000000..6d222252 --- /dev/null +++ b/venv_sphinx/bin/rst2html5.py @@ -0,0 +1,34 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- 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/venv_sphinx/bin/rst2latex.py b/venv_sphinx/bin/rst2latex.py new file mode 100755 index 00000000..d1fabbc1 --- /dev/null +++ b/venv_sphinx/bin/rst2latex.py @@ -0,0 +1,26 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python + +# $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/venv_sphinx/bin/rst2man.py b/venv_sphinx/bin/rst2man.py new file mode 100755 index 00000000..4b4c9c92 --- /dev/null +++ b/venv_sphinx/bin/rst2man.py @@ -0,0 +1,26 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python + +# 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/venv_sphinx/bin/rst2odt.py b/venv_sphinx/bin/rst2odt.py new file mode 100755 index 00000000..9564c300 --- /dev/null +++ b/venv_sphinx/bin/rst2odt.py @@ -0,0 +1,30 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python + +# $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/venv_sphinx/bin/rst2odt_prepstyles.py b/venv_sphinx/bin/rst2odt_prepstyles.py new file mode 100755 index 00000000..9baa5957 --- /dev/null +++ b/venv_sphinx/bin/rst2odt_prepstyles.py @@ -0,0 +1,67 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python + +# $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/venv_sphinx/bin/rst2pseudoxml.py b/venv_sphinx/bin/rst2pseudoxml.py new file mode 100755 index 00000000..edabfb13 --- /dev/null +++ b/venv_sphinx/bin/rst2pseudoxml.py @@ -0,0 +1,23 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python + +# $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/venv_sphinx/bin/rst2s5.py b/venv_sphinx/bin/rst2s5.py new file mode 100755 index 00000000..567442f6 --- /dev/null +++ b/venv_sphinx/bin/rst2s5.py @@ -0,0 +1,24 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python + +# $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/venv_sphinx/bin/rst2xetex.py b/venv_sphinx/bin/rst2xetex.py new file mode 100755 index 00000000..41238fb2 --- /dev/null +++ b/venv_sphinx/bin/rst2xetex.py @@ -0,0 +1,27 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python + +# $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/venv_sphinx/bin/rst2xml.py b/venv_sphinx/bin/rst2xml.py new file mode 100755 index 00000000..e43e430d --- /dev/null +++ b/venv_sphinx/bin/rst2xml.py @@ -0,0 +1,23 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python + +# $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/venv_sphinx/bin/rstpep2html.py b/venv_sphinx/bin/rstpep2html.py new file mode 100755 index 00000000..72d037ce --- /dev/null +++ b/venv_sphinx/bin/rstpep2html.py @@ -0,0 +1,25 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python + +# $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/venv_sphinx/bin/sphinx-apidoc b/venv_sphinx/bin/sphinx-apidoc new file mode 100755 index 00000000..7d2f5856 --- /dev/null +++ b/venv_sphinx/bin/sphinx-apidoc @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- 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/venv_sphinx/bin/sphinx-autobuild b/venv_sphinx/bin/sphinx-autobuild new file mode 100755 index 00000000..50a7db28 --- /dev/null +++ b/venv_sphinx/bin/sphinx-autobuild @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from sphinx_autobuild.__main__ import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/venv_sphinx/bin/sphinx-autogen b/venv_sphinx/bin/sphinx-autogen new file mode 100755 index 00000000..28acc2b9 --- /dev/null +++ b/venv_sphinx/bin/sphinx-autogen @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- 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/venv_sphinx/bin/sphinx-build b/venv_sphinx/bin/sphinx-build new file mode 100755 index 00000000..0db2f483 --- /dev/null +++ b/venv_sphinx/bin/sphinx-build @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- 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/venv_sphinx/bin/sphinx-quickstart b/venv_sphinx/bin/sphinx-quickstart new file mode 100755 index 00000000..017cdcec --- /dev/null +++ b/venv_sphinx/bin/sphinx-quickstart @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- 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/venv_sphinx/bin/uvicorn b/venv_sphinx/bin/uvicorn new file mode 100755 index 00000000..70e936e3 --- /dev/null +++ b/venv_sphinx/bin/uvicorn @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from uvicorn.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/venv_sphinx/bin/watchfiles b/venv_sphinx/bin/watchfiles new file mode 100755 index 00000000..7ed2bfc8 --- /dev/null +++ b/venv_sphinx/bin/watchfiles @@ -0,0 +1,8 @@ +#!/Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from watchfiles.cli import cli +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli()) diff --git a/venv_sphinx/pyvenv.cfg b/venv_sphinx/pyvenv.cfg new file mode 100644 index 00000000..0d72213d --- /dev/null +++ b/venv_sphinx/pyvenv.cfg @@ -0,0 +1,5 @@ +home = /Users/eric/.pyenv/versions/3.12.3/bin +include-system-site-packages = false +version = 3.12.3 +executable = /Users/eric/.pyenv/versions/3.12.3/bin/python3.12 +command = /Users/eric/.pyenv/versions/3.12.3/bin/python -m venv /Users/eric/dev/Perso/Diabetes/trio-docs/venv_sphinx