From 6a6082e1aea9d0432336b901e7edc9343e408514 Mon Sep 17 00:00:00 2001 From: lakshmi2506 Date: Wed, 4 Oct 2023 15:39:23 +0530 Subject: [PATCH 01/11] temp_changes --- cumulusci/cumulusci.yml | 10 +++++ cumulusci/salesforce_api/metadata.py | 39 ++++++++++++++++++ cumulusci/salesforce_api/soap_envelopes.py | 14 +++++++ cumulusci/tasks/metadata_type_list.py | 40 +++++++++++++++++++ .../tasks/salesforce/RetrieveMetadataTypes.py | 26 ++++++++++++ cumulusci/tasks/salesforce/__init__.py | 1 + 6 files changed, 130 insertions(+) create mode 100644 cumulusci/tasks/metadata_type_list.py create mode 100644 cumulusci/tasks/salesforce/RetrieveMetadataTypes.py diff --git a/cumulusci/cumulusci.yml b/cumulusci/cumulusci.yml index 3714013e8a..5f8fb787ae 100644 --- a/cumulusci/cumulusci.yml +++ b/cumulusci/cumulusci.yml @@ -8,6 +8,10 @@ tasks: options: status: True + metadata_types: + class_path: cumulusci.tasks.metadata_type_list.MetadataTypeList + + deactivate_flow: group: Metadata Transformations description: deactivates Flows identified by a given list of Developer Names @@ -477,12 +481,18 @@ tasks: options: path: packaged group: Salesforce Metadata + + retrieve_metadatatypes: + class_path: cumulusci.tasks.salesforce.RetrieveMetadataTypes + group: Salesforce Metadatatypes retrieve_src: description: Retrieves the packaged metadata into the src directory class_path: cumulusci.tasks.salesforce.RetrievePackaged options: path: src group: Salesforce Metadata + + retrieve_unpackaged: description: Retrieve the contents of a package.xml file. class_path: cumulusci.tasks.salesforce.RetrieveUnpackaged diff --git a/cumulusci/salesforce_api/metadata.py b/cumulusci/salesforce_api/metadata.py index 9c13e56656..ad02aff976 100644 --- a/cumulusci/salesforce_api/metadata.py +++ b/cumulusci/salesforce_api/metadata.py @@ -678,3 +678,42 @@ def _process_response(self, response): ) # Unknown response raise MetadataApiError(f"Unexpected response: {response.text}", response) + + +class ApiListMetadataTypes(BaseMetadataApiCall): + check_interval = 1 + soap_envelope_start = soap_envelopes.METADATA_TYPES + soap_action_start = "describemetadatatypes" + + def __init__( + self, task, as_of_version=None + ): + super(ApiListMetadataTypes, self).__init__(task) + self.metadata_types = [] + self.as_of_version = ( + as_of_version + if as_of_version + else task.project_config.project__package__api_version + ) + self.api_version = self.as_of_version + + + + def _build_envelope_start(self): + + return self.soap_envelope_start.format( + as_of_version=self.as_of_version, + ) + + def _process_response(self, response): + self.metadata_types=[] + temp=parseString(response).getElementsByTagName("metadataObjects") + + for metadataobject in temp: + self.metadata_types.append(self._get_element_value(metadataobject, "xmlName")) + child_elements = metadataobject.getElementsByTagName("childXmlNames") + child_xml_names = [element.firstChild.nodeValue for element in child_elements] + self.metadata_types+=child_xml_names + + return self.metadata_types + diff --git a/cumulusci/salesforce_api/soap_envelopes.py b/cumulusci/salesforce_api/soap_envelopes.py index a685628342..3ccf02c0d0 100644 --- a/cumulusci/salesforce_api/soap_envelopes.py +++ b/cumulusci/salesforce_api/soap_envelopes.py @@ -161,3 +161,17 @@ """ + +METADATA_TYPES= """ + + + + ###SESSION_ID### + + + + + {as_of_version} + + +""" diff --git a/cumulusci/tasks/metadata_type_list.py b/cumulusci/tasks/metadata_type_list.py new file mode 100644 index 0000000000..83b0631bca --- /dev/null +++ b/cumulusci/tasks/metadata_type_list.py @@ -0,0 +1,40 @@ +import sarge +import json +from cumulusci.core.tasks import BaseTask +from cumulusci.core.sfdx import sfdx + +class MetadataTypeList(BaseTask): + + task_options = { + "org_username": { + "description": "Username for the org", + "required":True, + }, + } + + def _run_task(self): + + p: sarge.Command = sfdx( + f"force mdapi describemetadata --json ", + + username=self.options["org_username"], + ) + stdout = p.stdout_text.read() + + self.metadata_list=[] + + if p.returncode: + self.logger.error( f"Couldn't load list of Metadata types: \n{stdout}") + + else: + data=json.loads(stdout) + self.logger.info("List of Metadata types enabled for the org : ") + + for x in data['result']['metadataObjects']: + self.metadata_list.append(x['xmlName']) + self.metadata_list+=x['childXmlNames'] + + self.logger.info(self.metadata_list) + + + \ No newline at end of file diff --git a/cumulusci/tasks/salesforce/RetrieveMetadataTypes.py b/cumulusci/tasks/salesforce/RetrieveMetadataTypes.py new file mode 100644 index 0000000000..96622b7316 --- /dev/null +++ b/cumulusci/tasks/salesforce/RetrieveMetadataTypes.py @@ -0,0 +1,26 @@ +from typing import Any +from cumulusci.salesforce_api.metadata import ApiListMetadataTypes + +from cumulusci.tasks.salesforce import BaseRetrieveMetadata +from defusedxml.minidom import parseString + +class RetrieveMetadataTypes(BaseRetrieveMetadata): + api_2= ApiListMetadataTypes + task_options = { + "api_version": { + "description": "Override the API version used to list metadata" + }, + + } + + def _run_task(self): + + api_object = self.api_2(self, "58.0" ) + root = api_object._get_response().content.decode("utf-8") + + self.logger.info(api_object._process_response(root)) + + + + + \ No newline at end of file diff --git a/cumulusci/tasks/salesforce/__init__.py b/cumulusci/tasks/salesforce/__init__.py index f81c25d557..41756fca2b 100644 --- a/cumulusci/tasks/salesforce/__init__.py +++ b/cumulusci/tasks/salesforce/__init__.py @@ -30,6 +30,7 @@ "PublishCommunity": "cumulusci.tasks.salesforce.PublishCommunity", "RetrievePackaged": "cumulusci.tasks.salesforce.RetrievePackaged", "RetrieveReportsAndDashboards": "cumulusci.tasks.salesforce.RetrieveReportsAndDashboards", + "RetrieveMetadataTypes": "cumulusci.tasks.salesforce.RetrieveMetadataTypes", "RetrieveUnpackaged": "cumulusci.tasks.salesforce.RetrieveUnpackaged", "SOQLQuery": "cumulusci.tasks.salesforce.SOQLQuery", "SetTDTMHandlerStatus": "cumulusci.tasks.salesforce.trigger_handlers", From df59c443f1c165d2374db23c756ad3b99b27758c Mon Sep 17 00:00:00 2001 From: lakshmi2506 Date: Wed, 4 Oct 2023 16:08:10 +0530 Subject: [PATCH 02/11] task_options --- cci_venv/bin/Activate.ps1 | 241 ++++++++++++++++++ cci_venv/bin/activate | 66 +++++ cci_venv/bin/activate.csh | 25 ++ cci_venv/bin/activate.fish | 64 +++++ cci_venv/bin/black | 8 + cci_venv/bin/blackd | 8 + cci_venv/bin/cci | 8 + cci_venv/bin/chardetect | 8 + cci_venv/bin/coverage | 8 + cci_venv/bin/coverage-3.9 | 8 + cci_venv/bin/coverage3 | 8 + cci_venv/bin/faker | 8 + cci_venv/bin/flake8 | 8 + cci_venv/bin/identify-cli | 8 + cci_venv/bin/isort | 8 + cci_venv/bin/isort-identify-imports | 8 + cci_venv/bin/jsonschema | 8 + cci_venv/bin/keyring | 8 + cci_venv/bin/libdoc | 8 + cci_venv/bin/markdown-it | 8 + cci_venv/bin/myst-anchors | 8 + cci_venv/bin/myst-docutils-html | 8 + cci_venv/bin/myst-docutils-html5 | 8 + cci_venv/bin/myst-docutils-latex | 8 + cci_venv/bin/myst-docutils-pseudoxml | 8 + cci_venv/bin/myst-docutils-xml | 8 + cci_venv/bin/natsort | 8 + cci_venv/bin/nodeenv | 8 + cci_venv/bin/normalizer | 8 + cci_venv/bin/pabot | 8 + cci_venv/bin/pip | 8 + cci_venv/bin/pip-compile | 8 + cci_venv/bin/pip-sync | 8 + cci_venv/bin/pip3 | 8 + cci_venv/bin/pip3.11 | 8 + cci_venv/bin/pip3.9 | 8 + cci_venv/bin/pre-commit | 8 + cci_venv/bin/py.test | 8 + cci_venv/bin/pybabel | 8 + cci_venv/bin/pycodestyle | 8 + cci_venv/bin/pyflakes | 8 + cci_venv/bin/pygmentize | 8 + cci_venv/bin/pyproject-build | 8 + cci_venv/bin/pytest | 8 + cci_venv/bin/python | 1 + cci_venv/bin/python3 | 1 + cci_venv/bin/python3.9 | 1 + cci_venv/bin/rebot | 8 + cci_venv/bin/rflint | 8 + cci_venv/bin/robot | 8 + cci_venv/bin/rst2ansi | 26 ++ cci_venv/bin/rst2html.py | 23 ++ cci_venv/bin/rst2html4.py | 26 ++ cci_venv/bin/rst2html5.py | 35 +++ cci_venv/bin/rst2latex.py | 26 ++ cci_venv/bin/rst2man.py | 26 ++ cci_venv/bin/rst2odt.py | 30 +++ cci_venv/bin/rst2odt_prepstyles.py | 67 +++++ cci_venv/bin/rst2pseudoxml.py | 23 ++ cci_venv/bin/rst2s5.py | 24 ++ cci_venv/bin/rst2xetex.py | 27 ++ cci_venv/bin/rst2xml.py | 23 ++ cci_venv/bin/rstpep2html.py | 25 ++ cci_venv/bin/snowbench | 8 + cci_venv/bin/snowfakery | 8 + cci_venv/bin/sphinx-apidoc | 8 + cci_venv/bin/sphinx-autogen | 8 + cci_venv/bin/sphinx-build | 8 + cci_venv/bin/sphinx-quickstart | 8 + cci_venv/bin/tox | 8 + cci_venv/bin/virtualenv | 8 + cci_venv/bin/wheel | 8 + .../site/python3.9/greenlet/greenlet.h | 164 ++++++++++++ cci_venv/pyvenv.cfg | 3 + cci_venv/requirements/dev.txt | 229 +++++++++++++++++ cci_venv/requirements/prod.txt | 44 ++++ cumulusci/cumulusci.yml | 6 +- cumulusci/salesforce_api/metadata.py | 2 - cumulusci/tasks/metadata_type_list.py | 40 --- .../tasks/salesforce/RetrieveMetadataTypes.py | 19 +- 80 files changed, 1652 insertions(+), 51 deletions(-) create mode 100644 cci_venv/bin/Activate.ps1 create mode 100644 cci_venv/bin/activate create mode 100644 cci_venv/bin/activate.csh create mode 100644 cci_venv/bin/activate.fish create mode 100755 cci_venv/bin/black create mode 100755 cci_venv/bin/blackd create mode 100755 cci_venv/bin/cci create mode 100755 cci_venv/bin/chardetect create mode 100755 cci_venv/bin/coverage create mode 100755 cci_venv/bin/coverage-3.9 create mode 100755 cci_venv/bin/coverage3 create mode 100755 cci_venv/bin/faker create mode 100755 cci_venv/bin/flake8 create mode 100755 cci_venv/bin/identify-cli create mode 100755 cci_venv/bin/isort create mode 100755 cci_venv/bin/isort-identify-imports create mode 100755 cci_venv/bin/jsonschema create mode 100755 cci_venv/bin/keyring create mode 100755 cci_venv/bin/libdoc create mode 100755 cci_venv/bin/markdown-it create mode 100755 cci_venv/bin/myst-anchors create mode 100755 cci_venv/bin/myst-docutils-html create mode 100755 cci_venv/bin/myst-docutils-html5 create mode 100755 cci_venv/bin/myst-docutils-latex create mode 100755 cci_venv/bin/myst-docutils-pseudoxml create mode 100755 cci_venv/bin/myst-docutils-xml create mode 100755 cci_venv/bin/natsort create mode 100755 cci_venv/bin/nodeenv create mode 100755 cci_venv/bin/normalizer create mode 100755 cci_venv/bin/pabot create mode 100755 cci_venv/bin/pip create mode 100755 cci_venv/bin/pip-compile create mode 100755 cci_venv/bin/pip-sync create mode 100755 cci_venv/bin/pip3 create mode 100755 cci_venv/bin/pip3.11 create mode 100755 cci_venv/bin/pip3.9 create mode 100755 cci_venv/bin/pre-commit create mode 100755 cci_venv/bin/py.test create mode 100755 cci_venv/bin/pybabel create mode 100755 cci_venv/bin/pycodestyle create mode 100755 cci_venv/bin/pyflakes create mode 100755 cci_venv/bin/pygmentize create mode 100755 cci_venv/bin/pyproject-build create mode 100755 cci_venv/bin/pytest create mode 120000 cci_venv/bin/python create mode 120000 cci_venv/bin/python3 create mode 120000 cci_venv/bin/python3.9 create mode 100755 cci_venv/bin/rebot create mode 100755 cci_venv/bin/rflint create mode 100755 cci_venv/bin/robot create mode 100755 cci_venv/bin/rst2ansi create mode 100755 cci_venv/bin/rst2html.py create mode 100755 cci_venv/bin/rst2html4.py create mode 100755 cci_venv/bin/rst2html5.py create mode 100755 cci_venv/bin/rst2latex.py create mode 100755 cci_venv/bin/rst2man.py create mode 100755 cci_venv/bin/rst2odt.py create mode 100755 cci_venv/bin/rst2odt_prepstyles.py create mode 100755 cci_venv/bin/rst2pseudoxml.py create mode 100755 cci_venv/bin/rst2s5.py create mode 100755 cci_venv/bin/rst2xetex.py create mode 100755 cci_venv/bin/rst2xml.py create mode 100755 cci_venv/bin/rstpep2html.py create mode 100755 cci_venv/bin/snowbench create mode 100755 cci_venv/bin/snowfakery create mode 100755 cci_venv/bin/sphinx-apidoc create mode 100755 cci_venv/bin/sphinx-autogen create mode 100755 cci_venv/bin/sphinx-build create mode 100755 cci_venv/bin/sphinx-quickstart create mode 100755 cci_venv/bin/tox create mode 100755 cci_venv/bin/virtualenv create mode 100755 cci_venv/bin/wheel create mode 100644 cci_venv/include/site/python3.9/greenlet/greenlet.h create mode 100644 cci_venv/pyvenv.cfg create mode 100644 cci_venv/requirements/dev.txt create mode 100644 cci_venv/requirements/prod.txt delete mode 100644 cumulusci/tasks/metadata_type_list.py diff --git a/cci_venv/bin/Activate.ps1 b/cci_venv/bin/Activate.ps1 new file mode 100644 index 0000000000..2fb3852c3c --- /dev/null +++ b/cci_venv/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/cci_venv/bin/activate b/cci_venv/bin/activate new file mode 100644 index 0000000000..21c2b8d393 --- /dev/null +++ b/cci_venv/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="/Users/l.ramireddy/Downloads/CumulusCI/cci_venv" +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="(cci_venv) ${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/cci_venv/bin/activate.csh b/cci_venv/bin/activate.csh new file mode 100644 index 0000000000..b9f287280d --- /dev/null +++ b/cci_venv/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 "/Users/l.ramireddy/Downloads/CumulusCI/cci_venv" + +set _OLD_VIRTUAL_PATH="$PATH" +setenv PATH "$VIRTUAL_ENV/bin:$PATH" + + +set _OLD_VIRTUAL_PROMPT="$prompt" + +if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then + set prompt = "(cci_venv) $prompt" +endif + +alias pydoc python -m pydoc + +rehash diff --git a/cci_venv/bin/activate.fish b/cci_venv/bin/activate.fish new file mode 100644 index 0000000000..0725b5f656 --- /dev/null +++ b/cci_venv/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 "/Users/l.ramireddy/Downloads/CumulusCI/cci_venv" + +set -gx _OLD_VIRTUAL_PATH $PATH +set -gx PATH "$VIRTUAL_ENV/bin" $PATH + +# Unset PYTHONHOME if set. +if set -q PYTHONHOME + set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME + set -e PYTHONHOME +end + +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) "(cci_venv) " (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/cci_venv/bin/black b/cci_venv/bin/black new file mode 100755 index 0000000000..8fddae98b0 --- /dev/null +++ b/cci_venv/bin/black @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from black import patched_main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(patched_main()) diff --git a/cci_venv/bin/blackd b/cci_venv/bin/blackd new file mode 100755 index 0000000000..452a9818c4 --- /dev/null +++ b/cci_venv/bin/blackd @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from blackd import patched_main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(patched_main()) diff --git a/cci_venv/bin/cci b/cci_venv/bin/cci new file mode 100755 index 0000000000..7e3ec88284 --- /dev/null +++ b/cci_venv/bin/cci @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from cumulusci.cli.cci import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/cci_venv/bin/chardetect b/cci_venv/bin/chardetect new file mode 100755 index 0000000000..3e18cdf729 --- /dev/null +++ b/cci_venv/bin/chardetect @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- 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/cci_venv/bin/coverage b/cci_venv/bin/coverage new file mode 100755 index 0000000000..3ec554f4f8 --- /dev/null +++ b/cci_venv/bin/coverage @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- 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/cci_venv/bin/coverage-3.9 b/cci_venv/bin/coverage-3.9 new file mode 100755 index 0000000000..3ec554f4f8 --- /dev/null +++ b/cci_venv/bin/coverage-3.9 @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- 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/cci_venv/bin/coverage3 b/cci_venv/bin/coverage3 new file mode 100755 index 0000000000..3ec554f4f8 --- /dev/null +++ b/cci_venv/bin/coverage3 @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- 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/cci_venv/bin/faker b/cci_venv/bin/faker new file mode 100755 index 0000000000..f4fef2c5bc --- /dev/null +++ b/cci_venv/bin/faker @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from faker.cli import execute_from_command_line +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(execute_from_command_line()) diff --git a/cci_venv/bin/flake8 b/cci_venv/bin/flake8 new file mode 100755 index 0000000000..28bccc742c --- /dev/null +++ b/cci_venv/bin/flake8 @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- 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/cci_venv/bin/identify-cli b/cci_venv/bin/identify-cli new file mode 100755 index 0000000000..a15a809bc2 --- /dev/null +++ b/cci_venv/bin/identify-cli @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- 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/cci_venv/bin/isort b/cci_venv/bin/isort new file mode 100755 index 0000000000..63eae32e31 --- /dev/null +++ b/cci_venv/bin/isort @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from isort.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/cci_venv/bin/isort-identify-imports b/cci_venv/bin/isort-identify-imports new file mode 100755 index 0000000000..b0d648fb3f --- /dev/null +++ b/cci_venv/bin/isort-identify-imports @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from isort.main import identify_imports_main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(identify_imports_main()) diff --git a/cci_venv/bin/jsonschema b/cci_venv/bin/jsonschema new file mode 100755 index 0000000000..7e071f8116 --- /dev/null +++ b/cci_venv/bin/jsonschema @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from jsonschema.cli import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/cci_venv/bin/keyring b/cci_venv/bin/keyring new file mode 100755 index 0000000000..0e1bf44fed --- /dev/null +++ b/cci_venv/bin/keyring @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- 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/cci_venv/bin/libdoc b/cci_venv/bin/libdoc new file mode 100755 index 0000000000..e5ed24b522 --- /dev/null +++ b/cci_venv/bin/libdoc @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from robot.libdoc import libdoc_cli +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(libdoc_cli()) diff --git a/cci_venv/bin/markdown-it b/cci_venv/bin/markdown-it new file mode 100755 index 0000000000..f5d45d06be --- /dev/null +++ b/cci_venv/bin/markdown-it @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/myst-anchors b/cci_venv/bin/myst-anchors new file mode 100755 index 0000000000..77e53cbd7b --- /dev/null +++ b/cci_venv/bin/myst-anchors @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/myst-docutils-html b/cci_venv/bin/myst-docutils-html new file mode 100755 index 0000000000..1d8127474e --- /dev/null +++ b/cci_venv/bin/myst-docutils-html @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/myst-docutils-html5 b/cci_venv/bin/myst-docutils-html5 new file mode 100755 index 0000000000..b08822ba1d --- /dev/null +++ b/cci_venv/bin/myst-docutils-html5 @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/myst-docutils-latex b/cci_venv/bin/myst-docutils-latex new file mode 100755 index 0000000000..f694b85aff --- /dev/null +++ b/cci_venv/bin/myst-docutils-latex @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/myst-docutils-pseudoxml b/cci_venv/bin/myst-docutils-pseudoxml new file mode 100755 index 0000000000..32112a5931 --- /dev/null +++ b/cci_venv/bin/myst-docutils-pseudoxml @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/myst-docutils-xml b/cci_venv/bin/myst-docutils-xml new file mode 100755 index 0000000000..b2ba7b6267 --- /dev/null +++ b/cci_venv/bin/myst-docutils-xml @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/natsort b/cci_venv/bin/natsort new file mode 100755 index 0000000000..6f4b97538a --- /dev/null +++ b/cci_venv/bin/natsort @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from natsort.__main__ import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/cci_venv/bin/nodeenv b/cci_venv/bin/nodeenv new file mode 100755 index 0000000000..1a322f2f46 --- /dev/null +++ b/cci_venv/bin/nodeenv @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- 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/cci_venv/bin/normalizer b/cci_venv/bin/normalizer new file mode 100755 index 0000000000..84beb4cfa6 --- /dev/null +++ b/cci_venv/bin/normalizer @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- 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/cci_venv/bin/pabot b/cci_venv/bin/pabot new file mode 100755 index 0000000000..1c422a1396 --- /dev/null +++ b/cci_venv/bin/pabot @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from pabot.pabot import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/cci_venv/bin/pip b/cci_venv/bin/pip new file mode 100755 index 0000000000..e6124a1a8b --- /dev/null +++ b/cci_venv/bin/pip @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pip-compile b/cci_venv/bin/pip-compile new file mode 100755 index 0000000000..93a7025865 --- /dev/null +++ b/cci_venv/bin/pip-compile @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pip-sync b/cci_venv/bin/pip-sync new file mode 100755 index 0000000000..d2aab886e6 --- /dev/null +++ b/cci_venv/bin/pip-sync @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pip3 b/cci_venv/bin/pip3 new file mode 100755 index 0000000000..e6124a1a8b --- /dev/null +++ b/cci_venv/bin/pip3 @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pip3.11 b/cci_venv/bin/pip3.11 new file mode 100755 index 0000000000..e6124a1a8b --- /dev/null +++ b/cci_venv/bin/pip3.11 @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pip3.9 b/cci_venv/bin/pip3.9 new file mode 100755 index 0000000000..e6124a1a8b --- /dev/null +++ b/cci_venv/bin/pip3.9 @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pre-commit b/cci_venv/bin/pre-commit new file mode 100755 index 0000000000..49e634db94 --- /dev/null +++ b/cci_venv/bin/pre-commit @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- 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/cci_venv/bin/py.test b/cci_venv/bin/py.test new file mode 100755 index 0000000000..89d65fe7d7 --- /dev/null +++ b/cci_venv/bin/py.test @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- 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/cci_venv/bin/pybabel b/cci_venv/bin/pybabel new file mode 100755 index 0000000000..c8556b4286 --- /dev/null +++ b/cci_venv/bin/pybabel @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pycodestyle b/cci_venv/bin/pycodestyle new file mode 100755 index 0000000000..78806a67b0 --- /dev/null +++ b/cci_venv/bin/pycodestyle @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- 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/cci_venv/bin/pyflakes b/cci_venv/bin/pyflakes new file mode 100755 index 0000000000..411cd3b657 --- /dev/null +++ b/cci_venv/bin/pyflakes @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- 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/cci_venv/bin/pygmentize b/cci_venv/bin/pygmentize new file mode 100755 index 0000000000..acd74380f3 --- /dev/null +++ b/cci_venv/bin/pygmentize @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pyproject-build b/cci_venv/bin/pyproject-build new file mode 100755 index 0000000000..a6ce606f38 --- /dev/null +++ b/cci_venv/bin/pyproject-build @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pytest b/cci_venv/bin/pytest new file mode 100755 index 0000000000..89d65fe7d7 --- /dev/null +++ b/cci_venv/bin/pytest @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- 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/cci_venv/bin/python b/cci_venv/bin/python new file mode 120000 index 0000000000..b8a0adbbb9 --- /dev/null +++ b/cci_venv/bin/python @@ -0,0 +1 @@ +python3 \ No newline at end of file diff --git a/cci_venv/bin/python3 b/cci_venv/bin/python3 new file mode 120000 index 0000000000..f25545feec --- /dev/null +++ b/cci_venv/bin/python3 @@ -0,0 +1 @@ +/Library/Developer/CommandLineTools/usr/bin/python3 \ No newline at end of file diff --git a/cci_venv/bin/python3.9 b/cci_venv/bin/python3.9 new file mode 120000 index 0000000000..b8a0adbbb9 --- /dev/null +++ b/cci_venv/bin/python3.9 @@ -0,0 +1 @@ +python3 \ No newline at end of file diff --git a/cci_venv/bin/rebot b/cci_venv/bin/rebot new file mode 100755 index 0000000000..0f81b389f7 --- /dev/null +++ b/cci_venv/bin/rebot @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from robot.rebot import rebot_cli +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(rebot_cli()) diff --git a/cci_venv/bin/rflint b/cci_venv/bin/rflint new file mode 100755 index 0000000000..e649a3e7b1 --- /dev/null +++ b/cci_venv/bin/rflint @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from rflint.__main__ import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/cci_venv/bin/robot b/cci_venv/bin/robot new file mode 100755 index 0000000000..d8ca923a58 --- /dev/null +++ b/cci_venv/bin/robot @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from robot.run import run_cli +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(run_cli()) diff --git a/cci_venv/bin/rst2ansi b/cci_venv/bin/rst2ansi new file mode 100755 index 0000000000..631cb26005 --- /dev/null +++ b/cci_venv/bin/rst2ansi @@ -0,0 +1,26 @@ +#!/usr/bin/python + +import sys +from rst2ansi import rst2ansi +import argparse +import io + +parser = argparse.ArgumentParser(description='Prints a reStructuredText input in an ansi-decorated format suitable for console output.') +parser.add_argument('file', type=str, nargs='?', help='A path to the file to open') + +args = parser.parse_args() + +def process_file(f): + out = rst2ansi(f.read()) + if out: + try: + print(out) + except UnicodeEncodeError: + print(out.encode('ascii', errors='backslashreplace').decode('ascii')) + +if args.file: + with io.open(args.file, 'rb') as f: + process_file(f) +else: + process_file(sys.stdin) + diff --git a/cci_venv/bin/rst2html.py b/cci_venv/bin/rst2html.py new file mode 100755 index 0000000000..4deeb673e1 --- /dev/null +++ b/cci_venv/bin/rst2html.py @@ -0,0 +1,23 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2html4.py b/cci_venv/bin/rst2html4.py new file mode 100755 index 0000000000..26b7083fdf --- /dev/null +++ b/cci_venv/bin/rst2html4.py @@ -0,0 +1,26 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2html5.py b/cci_venv/bin/rst2html5.py new file mode 100755 index 0000000000..07bb91cc24 --- /dev/null +++ b/cci_venv/bin/rst2html5.py @@ -0,0 +1,35 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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: http://www.spdx.org/licenses/BSD-2-Clause +# +# Revision: $Revision: 8410 $ +# Date: $Date: 2019-11-04 22:14:43 +0100 (Mo, 04. Nov 2019) $ + +""" +A minimal front end to the Docutils Publisher, producing HTML 5 documents. + +The output also conforms to XHTML 1.0 transitional +(except for the doctype declaration). +""" + +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 HTML 5 documents from standalone ' + u'reStructuredText sources ' + + default_description) + +publish_cmdline(writer_name='html5', description=description) diff --git a/cci_venv/bin/rst2latex.py b/cci_venv/bin/rst2latex.py new file mode 100755 index 0000000000..9dcd011a95 --- /dev/null +++ b/cci_venv/bin/rst2latex.py @@ -0,0 +1,26 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2man.py b/cci_venv/bin/rst2man.py new file mode 100755 index 0000000000..3c40200330 --- /dev/null +++ b/cci_venv/bin/rst2man.py @@ -0,0 +1,26 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2odt.py b/cci_venv/bin/rst2odt.py new file mode 100755 index 0000000000..0be802f64b --- /dev/null +++ b/cci_venv/bin/rst2odt.py @@ -0,0 +1,30 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2odt_prepstyles.py b/cci_venv/bin/rst2odt_prepstyles.py new file mode 100755 index 0000000000..727e87f91d --- /dev/null +++ b/cci_venv/bin/rst2odt_prepstyles.py @@ -0,0 +1,67 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2pseudoxml.py b/cci_venv/bin/rst2pseudoxml.py new file mode 100755 index 0000000000..717bf2e1ea --- /dev/null +++ b/cci_venv/bin/rst2pseudoxml.py @@ -0,0 +1,23 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2s5.py b/cci_venv/bin/rst2s5.py new file mode 100755 index 0000000000..196249d292 --- /dev/null +++ b/cci_venv/bin/rst2s5.py @@ -0,0 +1,24 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2xetex.py b/cci_venv/bin/rst2xetex.py new file mode 100755 index 0000000000..5c50c3f7b8 --- /dev/null +++ b/cci_venv/bin/rst2xetex.py @@ -0,0 +1,27 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2xml.py b/cci_venv/bin/rst2xml.py new file mode 100755 index 0000000000..db68e2f214 --- /dev/null +++ b/cci_venv/bin/rst2xml.py @@ -0,0 +1,23 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rstpep2html.py b/cci_venv/bin/rstpep2html.py new file mode 100755 index 0000000000..4fb4508aaa --- /dev/null +++ b/cci_venv/bin/rstpep2html.py @@ -0,0 +1,25 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/snowbench b/cci_venv/bin/snowbench new file mode 100755 index 0000000000..e75bb04614 --- /dev/null +++ b/cci_venv/bin/snowbench @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from snowfakery.tools.snowbench import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/cci_venv/bin/snowfakery b/cci_venv/bin/snowfakery new file mode 100755 index 0000000000..8bfe15089b --- /dev/null +++ b/cci_venv/bin/snowfakery @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from snowfakery.cli import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/cci_venv/bin/sphinx-apidoc b/cci_venv/bin/sphinx-apidoc new file mode 100755 index 0000000000..fd351c9e85 --- /dev/null +++ b/cci_venv/bin/sphinx-apidoc @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/sphinx-autogen b/cci_venv/bin/sphinx-autogen new file mode 100755 index 0000000000..4f605a06bb --- /dev/null +++ b/cci_venv/bin/sphinx-autogen @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/sphinx-build b/cci_venv/bin/sphinx-build new file mode 100755 index 0000000000..a4d9d78528 --- /dev/null +++ b/cci_venv/bin/sphinx-build @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/sphinx-quickstart b/cci_venv/bin/sphinx-quickstart new file mode 100755 index 0000000000..8b8f570daa --- /dev/null +++ b/cci_venv/bin/sphinx-quickstart @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/tox b/cci_venv/bin/tox new file mode 100755 index 0000000000..e288d3a32d --- /dev/null +++ b/cci_venv/bin/tox @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from tox.run import run +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(run()) diff --git a/cci_venv/bin/virtualenv b/cci_venv/bin/virtualenv new file mode 100755 index 0000000000..e22135d441 --- /dev/null +++ b/cci_venv/bin/virtualenv @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python +# -*- 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/cci_venv/bin/wheel b/cci_venv/bin/wheel new file mode 100755 index 0000000000..ac53361d94 --- /dev/null +++ b/cci_venv/bin/wheel @@ -0,0 +1,8 @@ +#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/include/site/python3.9/greenlet/greenlet.h b/cci_venv/include/site/python3.9/greenlet/greenlet.h new file mode 100644 index 0000000000..d02a16e434 --- /dev/null +++ b/cci_venv/include/site/python3.9/greenlet/greenlet.h @@ -0,0 +1,164 @@ +/* -*- 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" + +#ifndef GREENLET_MODULE +#define implementation_ptr_t void* +#endif + +typedef struct _greenlet { + PyObject_HEAD + PyObject* weakreflist; + PyObject* dict; + implementation_ptr_t pimpl; +} PyGreenlet; + +#define PyGreenlet_Check(op) (op && PyObject_TypeCheck(op, &PyGreenlet_Type)) + + +/* C API functions */ + +/* Total number of symbols that are exported */ +#define PyGreenlet_API_pointers 12 + +#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 + +#define PyGreenlet_MAIN_NUM 8 +#define PyGreenlet_STARTED_NUM 9 +#define PyGreenlet_ACTIVE_NUM 10 +#define PyGreenlet_GET_PARENT_NUM 11 + +#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]) + +/* + * PyGreenlet_GetParent(PyObject* greenlet) + * + * return greenlet.parent; + * + * This could return NULL even if there is no exception active. + * If it does not return NULL, you are responsible for decrementing the + * reference count. + */ +# define PyGreenlet_GetParent \ + (*(PyGreenlet* (*)(PyGreenlet*)) \ + _PyGreenlet_API[PyGreenlet_GET_PARENT_NUM]) + +/* + * deprecated, undocumented alias. + */ +# define PyGreenlet_GET_PARENT PyGreenlet_GetParent + +# define PyGreenlet_MAIN \ + (*(int (*)(PyGreenlet*)) \ + _PyGreenlet_API[PyGreenlet_MAIN_NUM]) + +# define PyGreenlet_STARTED \ + (*(int (*)(PyGreenlet*)) \ + _PyGreenlet_API[PyGreenlet_STARTED_NUM]) + +# define PyGreenlet_ACTIVE \ + (*(int (*)(PyGreenlet*)) \ + _PyGreenlet_API[PyGreenlet_ACTIVE_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/cci_venv/pyvenv.cfg b/cci_venv/pyvenv.cfg new file mode 100644 index 0000000000..4760c1ffc4 --- /dev/null +++ b/cci_venv/pyvenv.cfg @@ -0,0 +1,3 @@ +home = /Library/Developer/CommandLineTools/usr/bin +include-system-site-packages = false +version = 3.9.6 diff --git a/cci_venv/requirements/dev.txt b/cci_venv/requirements/dev.txt new file mode 100644 index 0000000000..6af1da5af7 --- /dev/null +++ b/cci_venv/requirements/dev.txt @@ -0,0 +1,229 @@ +# +# This file is autogenerated by pip-compile with Python 3.9 +# by the following command: +# +# pip-compile --allow-unsafe requirements/dev.in +# +attrs==22.2.0 + # via + # jsonschema + # pytest +black==23.1.0 + # via -r requirements/dev.in +cachetools==5.3.0 + # via tox +certifi==2022.12.7 + # via + # -r requirements/prod.txt + # requests +cfgv==3.3.1 + # via pre-commit +chardet==5.1.0 + # via + # diff-cover + # tox +charset-normalizer==3.0.1 + # via + # -r requirements/prod.txt + # requests +click==8.1.3 + # via + # -r requirements/prod.txt + # black + # mkdocs +colorama==0.4.6 + # via tox +coverage[toml]==6.5.0 + # via + # -r requirements/dev.in + # coveralls + # pytest-cov +coveralls==3.3.1 + # via -r requirements/dev.in +diff-cover==7.4.0 + # via -r requirements/dev.in +distlib==0.3.6 + # via virtualenv +docopt==0.6.2 + # via coveralls +exceptiongroup==1.1.0 + # via pytest +faker==17.0.0 + # via + # -r requirements/prod.txt + # faker-microservice +faker-microservice==2.0.0 + # via -r requirements/dev.in +filelock==3.9.0 + # via + # tox + # virtualenv +ghp-import==2.1.0 + # via mkdocs +greenlet==2.0.2 + # via + # -r requirements/prod.txt + # sqlalchemy +gvgen==1.0 + # via -r requirements/prod.txt +identify==2.5.18 + # via pre-commit +idna==3.4 + # via + # -r requirements/prod.txt + # requests + # yarl +importlib-metadata==6.0.0 + # via + # markdown + # mkdocs +iniconfig==2.0.0 + # via pytest +jinja2==3.1.2 + # via + # -r requirements/prod.txt + # diff-cover + # mkdocs +jsonschema==4.17.3 + # via -r requirements/dev.in +markdown==3.4.1 + # via mkdocs +markupsafe==2.1.2 + # via + # -r requirements/prod.txt + # jinja2 +mergedeep==1.3.4 + # via mkdocs +mkdocs==1.2.4 + # via + # -r requirements/dev.in + # mkdocs-exclude-search +mkdocs-exclude-search==0.6.5 + # via -r requirements/dev.in +multidict==6.0.4 + # via yarl +mypy-extensions==1.0.0 + # via black +nodeenv==1.7.0 + # via + # pre-commit + # pyright +packaging==23.0 + # via + # black + # mkdocs + # pyproject-api + # pytest + # tox +pathspec==0.11.0 + # via black +platformdirs==3.0.0 + # via + # black + # tox + # virtualenv +pluggy==1.0.0 + # via + # diff-cover + # pytest + # tox +pre-commit==3.0.4 + # via -r requirements/dev.in +pydantic==1.10.5 + # via -r requirements/prod.txt +pygments==2.14.0 + # via diff-cover +pyproject-api==1.5.0 + # via tox +pyright==1.1.294 + # via -r requirements/dev.in +pyrsistent==0.19.3 + # via jsonschema +pytest==7.2.1 + # via + # -r requirements/dev.in + # pytest-cov + # pytest-vcr +pytest-cov==4.0.0 + # via -r requirements/dev.in +pytest-vcr==1.0.2 + # via -r requirements/dev.in +python-baseconv==1.2.2 + # via -r requirements/prod.txt +python-dateutil==2.8.2 + # via + # -r requirements/prod.txt + # faker + # ghp-import +pyyaml==6.0 + # via + # -r requirements/prod.txt + # mkdocs + # pre-commit + # pyyaml-env-tag + # vcrpy +pyyaml-env-tag==0.1 + # via mkdocs +requests==2.28.2 + # via + # -r requirements/prod.txt + # coveralls + # responses +responses==0.22.0 + # via -r requirements/dev.in +six==1.16.0 + # via + # -r requirements/prod.txt + # python-dateutil + # vcrpy +sqlalchemy==1.4.46 + # via -r requirements/prod.txt +toml==0.10.2 + # via responses +tomli==2.0.1 + # via + # black + # coverage + # pyproject-api + # pytest + # tox +tox==4.4.5 + # via + # -r requirements/dev.in + # tox-gh-actions +tox-gh-actions==3.0.0 + # via -r requirements/dev.in +typeguard==2.13.3 + # via -r requirements/dev.in +types-toml==0.10.8.4 + # via responses +typing-extensions==4.5.0 + # via + # -r requirements/prod.txt + # black + # pydantic +urllib3==1.26.14 + # via + # -r requirements/prod.txt + # requests + # responses +vcrpy==4.2.1 + # via + # -r requirements/dev.in + # pytest-vcr +virtualenv==20.19.0 + # via + # pre-commit + # tox +watchdog==2.2.1 + # via mkdocs +wrapt==1.14.1 + # via vcrpy +yarl==1.8.2 + # via vcrpy +zipp==3.13.0 + # via importlib-metadata + +# The following packages are considered to be unsafe in a requirements file: +setuptools==67.3.2 + # via nodeenv diff --git a/cci_venv/requirements/prod.txt b/cci_venv/requirements/prod.txt new file mode 100644 index 0000000000..affd25463e --- /dev/null +++ b/cci_venv/requirements/prod.txt @@ -0,0 +1,44 @@ +# +# This file is autogenerated by pip-compile with Python 3.9 +# by the following command: +# +# pip-compile --allow-unsafe requirements/prod.in +# +certifi==2022.12.7 + # via requests +charset-normalizer==3.0.1 + # via requests +click==8.1.3 + # via -r requirements/prod.in +faker==17.0.0 + # via -r requirements/prod.in +greenlet==2.0.2 + # via sqlalchemy +gvgen==1.0 + # via -r requirements/prod.in +idna==3.4 + # via requests +jinja2==3.1.2 + # via -r requirements/prod.in +markupsafe==2.1.2 + # via jinja2 +pydantic==1.10.5 + # via -r requirements/prod.in +python-baseconv==1.2.2 + # via -r requirements/prod.in +python-dateutil==2.8.2 + # via + # -r requirements/prod.in + # faker +pyyaml==6.0 + # via -r requirements/prod.in +requests==2.28.2 + # via -r requirements/prod.in +six==1.16.0 + # via python-dateutil +sqlalchemy==1.4.46 + # via -r requirements/prod.in +typing-extensions==4.5.0 + # via pydantic +urllib3==1.26.14 + # via requests diff --git a/cumulusci/cumulusci.yml b/cumulusci/cumulusci.yml index 5f8fb787ae..fbe9493ebc 100644 --- a/cumulusci/cumulusci.yml +++ b/cumulusci/cumulusci.yml @@ -8,10 +8,6 @@ tasks: options: status: True - metadata_types: - class_path: cumulusci.tasks.metadata_type_list.MetadataTypeList - - deactivate_flow: group: Metadata Transformations description: deactivates Flows identified by a given list of Developer Names @@ -484,7 +480,9 @@ tasks: retrieve_metadatatypes: class_path: cumulusci.tasks.salesforce.RetrieveMetadataTypes + description: Retrieves the metadata types supported by the org based on the api version group: Salesforce Metadatatypes + retrieve_src: description: Retrieves the packaged metadata into the src directory class_path: cumulusci.tasks.salesforce.RetrievePackaged diff --git a/cumulusci/salesforce_api/metadata.py b/cumulusci/salesforce_api/metadata.py index ad02aff976..c95fd29783 100644 --- a/cumulusci/salesforce_api/metadata.py +++ b/cumulusci/salesforce_api/metadata.py @@ -696,8 +696,6 @@ def __init__( else task.project_config.project__package__api_version ) self.api_version = self.as_of_version - - def _build_envelope_start(self): diff --git a/cumulusci/tasks/metadata_type_list.py b/cumulusci/tasks/metadata_type_list.py deleted file mode 100644 index 83b0631bca..0000000000 --- a/cumulusci/tasks/metadata_type_list.py +++ /dev/null @@ -1,40 +0,0 @@ -import sarge -import json -from cumulusci.core.tasks import BaseTask -from cumulusci.core.sfdx import sfdx - -class MetadataTypeList(BaseTask): - - task_options = { - "org_username": { - "description": "Username for the org", - "required":True, - }, - } - - def _run_task(self): - - p: sarge.Command = sfdx( - f"force mdapi describemetadata --json ", - - username=self.options["org_username"], - ) - stdout = p.stdout_text.read() - - self.metadata_list=[] - - if p.returncode: - self.logger.error( f"Couldn't load list of Metadata types: \n{stdout}") - - else: - data=json.loads(stdout) - self.logger.info("List of Metadata types enabled for the org : ") - - for x in data['result']['metadataObjects']: - self.metadata_list.append(x['xmlName']) - self.metadata_list+=x['childXmlNames'] - - self.logger.info(self.metadata_list) - - - \ No newline at end of file diff --git a/cumulusci/tasks/salesforce/RetrieveMetadataTypes.py b/cumulusci/tasks/salesforce/RetrieveMetadataTypes.py index 96622b7316..aa57ec749a 100644 --- a/cumulusci/tasks/salesforce/RetrieveMetadataTypes.py +++ b/cumulusci/tasks/salesforce/RetrieveMetadataTypes.py @@ -5,19 +5,28 @@ from defusedxml.minidom import parseString class RetrieveMetadataTypes(BaseRetrieveMetadata): - api_2= ApiListMetadataTypes + api_class= ApiListMetadataTypes task_options = { "api_version": { - "description": "Override the API version used to list metadata" + "description": "Override the API version used to list metadatatypes" }, } + def _init_options(self, kwargs): + super(RetrieveMetadataTypes, self)._init_options(kwargs) + if "api_version" not in self.options: + self.options[ + "api_version" + ] = self.project_config.project__package__api_version - def _run_task(self): + def _get_api(self): + return self.api_class( + self, self.options.get("api_version") + ) - api_object = self.api_2(self, "58.0" ) + def _run_task(self): + api_object = self._get_api() root = api_object._get_response().content.decode("utf-8") - self.logger.info(api_object._process_response(root)) From 8cfba34ebc7383913d3e8a285334b57afdaa70ac Mon Sep 17 00:00:00 2001 From: lakshmi2506 Date: Wed, 4 Oct 2023 16:11:15 +0530 Subject: [PATCH 03/11] task_options --- cci_venv/bin/Activate.ps1 | 241 ------------------ cci_venv/bin/activate | 66 ----- cci_venv/bin/activate.csh | 25 -- cci_venv/bin/activate.fish | 64 ----- cci_venv/bin/black | 8 - cci_venv/bin/blackd | 8 - cci_venv/bin/cci | 8 - cci_venv/bin/chardetect | 8 - cci_venv/bin/coverage | 8 - cci_venv/bin/coverage-3.9 | 8 - cci_venv/bin/coverage3 | 8 - cci_venv/bin/faker | 8 - cci_venv/bin/flake8 | 8 - cci_venv/bin/identify-cli | 8 - cci_venv/bin/isort | 8 - cci_venv/bin/isort-identify-imports | 8 - cci_venv/bin/jsonschema | 8 - cci_venv/bin/keyring | 8 - cci_venv/bin/libdoc | 8 - cci_venv/bin/markdown-it | 8 - cci_venv/bin/myst-anchors | 8 - cci_venv/bin/myst-docutils-html | 8 - cci_venv/bin/myst-docutils-html5 | 8 - cci_venv/bin/myst-docutils-latex | 8 - cci_venv/bin/myst-docutils-pseudoxml | 8 - cci_venv/bin/myst-docutils-xml | 8 - cci_venv/bin/natsort | 8 - cci_venv/bin/nodeenv | 8 - cci_venv/bin/normalizer | 8 - cci_venv/bin/pabot | 8 - cci_venv/bin/pip | 8 - cci_venv/bin/pip-compile | 8 - cci_venv/bin/pip-sync | 8 - cci_venv/bin/pip3 | 8 - cci_venv/bin/pip3.11 | 8 - cci_venv/bin/pip3.9 | 8 - cci_venv/bin/pre-commit | 8 - cci_venv/bin/py.test | 8 - cci_venv/bin/pybabel | 8 - cci_venv/bin/pycodestyle | 8 - cci_venv/bin/pyflakes | 8 - cci_venv/bin/pygmentize | 8 - cci_venv/bin/pyproject-build | 8 - cci_venv/bin/pytest | 8 - cci_venv/bin/python | 1 - cci_venv/bin/python3 | 1 - cci_venv/bin/python3.9 | 1 - cci_venv/bin/rebot | 8 - cci_venv/bin/rflint | 8 - cci_venv/bin/robot | 8 - cci_venv/bin/rst2ansi | 26 -- cci_venv/bin/rst2html.py | 23 -- cci_venv/bin/rst2html4.py | 26 -- cci_venv/bin/rst2html5.py | 35 --- cci_venv/bin/rst2latex.py | 26 -- cci_venv/bin/rst2man.py | 26 -- cci_venv/bin/rst2odt.py | 30 --- cci_venv/bin/rst2odt_prepstyles.py | 67 ----- cci_venv/bin/rst2pseudoxml.py | 23 -- cci_venv/bin/rst2s5.py | 24 -- cci_venv/bin/rst2xetex.py | 27 -- cci_venv/bin/rst2xml.py | 23 -- cci_venv/bin/rstpep2html.py | 25 -- cci_venv/bin/snowbench | 8 - cci_venv/bin/snowfakery | 8 - cci_venv/bin/sphinx-apidoc | 8 - cci_venv/bin/sphinx-autogen | 8 - cci_venv/bin/sphinx-build | 8 - cci_venv/bin/sphinx-quickstart | 8 - cci_venv/bin/tox | 8 - cci_venv/bin/virtualenv | 8 - cci_venv/bin/wheel | 8 - .../site/python3.9/greenlet/greenlet.h | 164 ------------ cci_venv/pyvenv.cfg | 3 - cci_venv/requirements/dev.txt | 229 ----------------- cci_venv/requirements/prod.txt | 44 ---- 76 files changed, 1636 deletions(-) delete mode 100644 cci_venv/bin/Activate.ps1 delete mode 100644 cci_venv/bin/activate delete mode 100644 cci_venv/bin/activate.csh delete mode 100644 cci_venv/bin/activate.fish delete mode 100755 cci_venv/bin/black delete mode 100755 cci_venv/bin/blackd delete mode 100755 cci_venv/bin/cci delete mode 100755 cci_venv/bin/chardetect delete mode 100755 cci_venv/bin/coverage delete mode 100755 cci_venv/bin/coverage-3.9 delete mode 100755 cci_venv/bin/coverage3 delete mode 100755 cci_venv/bin/faker delete mode 100755 cci_venv/bin/flake8 delete mode 100755 cci_venv/bin/identify-cli delete mode 100755 cci_venv/bin/isort delete mode 100755 cci_venv/bin/isort-identify-imports delete mode 100755 cci_venv/bin/jsonschema delete mode 100755 cci_venv/bin/keyring delete mode 100755 cci_venv/bin/libdoc delete mode 100755 cci_venv/bin/markdown-it delete mode 100755 cci_venv/bin/myst-anchors delete mode 100755 cci_venv/bin/myst-docutils-html delete mode 100755 cci_venv/bin/myst-docutils-html5 delete mode 100755 cci_venv/bin/myst-docutils-latex delete mode 100755 cci_venv/bin/myst-docutils-pseudoxml delete mode 100755 cci_venv/bin/myst-docutils-xml delete mode 100755 cci_venv/bin/natsort delete mode 100755 cci_venv/bin/nodeenv delete mode 100755 cci_venv/bin/normalizer delete mode 100755 cci_venv/bin/pabot delete mode 100755 cci_venv/bin/pip delete mode 100755 cci_venv/bin/pip-compile delete mode 100755 cci_venv/bin/pip-sync delete mode 100755 cci_venv/bin/pip3 delete mode 100755 cci_venv/bin/pip3.11 delete mode 100755 cci_venv/bin/pip3.9 delete mode 100755 cci_venv/bin/pre-commit delete mode 100755 cci_venv/bin/py.test delete mode 100755 cci_venv/bin/pybabel delete mode 100755 cci_venv/bin/pycodestyle delete mode 100755 cci_venv/bin/pyflakes delete mode 100755 cci_venv/bin/pygmentize delete mode 100755 cci_venv/bin/pyproject-build delete mode 100755 cci_venv/bin/pytest delete mode 120000 cci_venv/bin/python delete mode 120000 cci_venv/bin/python3 delete mode 120000 cci_venv/bin/python3.9 delete mode 100755 cci_venv/bin/rebot delete mode 100755 cci_venv/bin/rflint delete mode 100755 cci_venv/bin/robot delete mode 100755 cci_venv/bin/rst2ansi delete mode 100755 cci_venv/bin/rst2html.py delete mode 100755 cci_venv/bin/rst2html4.py delete mode 100755 cci_venv/bin/rst2html5.py delete mode 100755 cci_venv/bin/rst2latex.py delete mode 100755 cci_venv/bin/rst2man.py delete mode 100755 cci_venv/bin/rst2odt.py delete mode 100755 cci_venv/bin/rst2odt_prepstyles.py delete mode 100755 cci_venv/bin/rst2pseudoxml.py delete mode 100755 cci_venv/bin/rst2s5.py delete mode 100755 cci_venv/bin/rst2xetex.py delete mode 100755 cci_venv/bin/rst2xml.py delete mode 100755 cci_venv/bin/rstpep2html.py delete mode 100755 cci_venv/bin/snowbench delete mode 100755 cci_venv/bin/snowfakery delete mode 100755 cci_venv/bin/sphinx-apidoc delete mode 100755 cci_venv/bin/sphinx-autogen delete mode 100755 cci_venv/bin/sphinx-build delete mode 100755 cci_venv/bin/sphinx-quickstart delete mode 100755 cci_venv/bin/tox delete mode 100755 cci_venv/bin/virtualenv delete mode 100755 cci_venv/bin/wheel delete mode 100644 cci_venv/include/site/python3.9/greenlet/greenlet.h delete mode 100644 cci_venv/pyvenv.cfg delete mode 100644 cci_venv/requirements/dev.txt delete mode 100644 cci_venv/requirements/prod.txt diff --git a/cci_venv/bin/Activate.ps1 b/cci_venv/bin/Activate.ps1 deleted file mode 100644 index 2fb3852c3c..0000000000 --- a/cci_venv/bin/Activate.ps1 +++ /dev/null @@ -1,241 +0,0 @@ -<# -.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/cci_venv/bin/activate b/cci_venv/bin/activate deleted file mode 100644 index 21c2b8d393..0000000000 --- a/cci_venv/bin/activate +++ /dev/null @@ -1,66 +0,0 @@ -# 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="/Users/l.ramireddy/Downloads/CumulusCI/cci_venv" -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="(cci_venv) ${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/cci_venv/bin/activate.csh b/cci_venv/bin/activate.csh deleted file mode 100644 index b9f287280d..0000000000 --- a/cci_venv/bin/activate.csh +++ /dev/null @@ -1,25 +0,0 @@ -# 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 "/Users/l.ramireddy/Downloads/CumulusCI/cci_venv" - -set _OLD_VIRTUAL_PATH="$PATH" -setenv PATH "$VIRTUAL_ENV/bin:$PATH" - - -set _OLD_VIRTUAL_PROMPT="$prompt" - -if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then - set prompt = "(cci_venv) $prompt" -endif - -alias pydoc python -m pydoc - -rehash diff --git a/cci_venv/bin/activate.fish b/cci_venv/bin/activate.fish deleted file mode 100644 index 0725b5f656..0000000000 --- a/cci_venv/bin/activate.fish +++ /dev/null @@ -1,64 +0,0 @@ -# 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 "/Users/l.ramireddy/Downloads/CumulusCI/cci_venv" - -set -gx _OLD_VIRTUAL_PATH $PATH -set -gx PATH "$VIRTUAL_ENV/bin" $PATH - -# Unset PYTHONHOME if set. -if set -q PYTHONHOME - set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME - set -e PYTHONHOME -end - -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) "(cci_venv) " (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/cci_venv/bin/black b/cci_venv/bin/black deleted file mode 100755 index 8fddae98b0..0000000000 --- a/cci_venv/bin/black +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- coding: utf-8 -*- -import re -import sys -from black import patched_main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(patched_main()) diff --git a/cci_venv/bin/blackd b/cci_venv/bin/blackd deleted file mode 100755 index 452a9818c4..0000000000 --- a/cci_venv/bin/blackd +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- coding: utf-8 -*- -import re -import sys -from blackd import patched_main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(patched_main()) diff --git a/cci_venv/bin/cci b/cci_venv/bin/cci deleted file mode 100755 index 7e3ec88284..0000000000 --- a/cci_venv/bin/cci +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- coding: utf-8 -*- -import re -import sys -from cumulusci.cli.cci import main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/cci_venv/bin/chardetect b/cci_venv/bin/chardetect deleted file mode 100755 index 3e18cdf729..0000000000 --- a/cci_venv/bin/chardetect +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- 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/cci_venv/bin/coverage b/cci_venv/bin/coverage deleted file mode 100755 index 3ec554f4f8..0000000000 --- a/cci_venv/bin/coverage +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- 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/cci_venv/bin/coverage-3.9 b/cci_venv/bin/coverage-3.9 deleted file mode 100755 index 3ec554f4f8..0000000000 --- a/cci_venv/bin/coverage-3.9 +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- 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/cci_venv/bin/coverage3 b/cci_venv/bin/coverage3 deleted file mode 100755 index 3ec554f4f8..0000000000 --- a/cci_venv/bin/coverage3 +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- 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/cci_venv/bin/faker b/cci_venv/bin/faker deleted file mode 100755 index f4fef2c5bc..0000000000 --- a/cci_venv/bin/faker +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- coding: utf-8 -*- -import re -import sys -from faker.cli import execute_from_command_line -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(execute_from_command_line()) diff --git a/cci_venv/bin/flake8 b/cci_venv/bin/flake8 deleted file mode 100755 index 28bccc742c..0000000000 --- a/cci_venv/bin/flake8 +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- 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/cci_venv/bin/identify-cli b/cci_venv/bin/identify-cli deleted file mode 100755 index a15a809bc2..0000000000 --- a/cci_venv/bin/identify-cli +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- 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/cci_venv/bin/isort b/cci_venv/bin/isort deleted file mode 100755 index 63eae32e31..0000000000 --- a/cci_venv/bin/isort +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- coding: utf-8 -*- -import re -import sys -from isort.main import main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/cci_venv/bin/isort-identify-imports b/cci_venv/bin/isort-identify-imports deleted file mode 100755 index b0d648fb3f..0000000000 --- a/cci_venv/bin/isort-identify-imports +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- coding: utf-8 -*- -import re -import sys -from isort.main import identify_imports_main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(identify_imports_main()) diff --git a/cci_venv/bin/jsonschema b/cci_venv/bin/jsonschema deleted file mode 100755 index 7e071f8116..0000000000 --- a/cci_venv/bin/jsonschema +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- coding: utf-8 -*- -import re -import sys -from jsonschema.cli import main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/cci_venv/bin/keyring b/cci_venv/bin/keyring deleted file mode 100755 index 0e1bf44fed..0000000000 --- a/cci_venv/bin/keyring +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- 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/cci_venv/bin/libdoc b/cci_venv/bin/libdoc deleted file mode 100755 index e5ed24b522..0000000000 --- a/cci_venv/bin/libdoc +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- coding: utf-8 -*- -import re -import sys -from robot.libdoc import libdoc_cli -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(libdoc_cli()) diff --git a/cci_venv/bin/markdown-it b/cci_venv/bin/markdown-it deleted file mode 100755 index f5d45d06be..0000000000 --- a/cci_venv/bin/markdown-it +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/myst-anchors b/cci_venv/bin/myst-anchors deleted file mode 100755 index 77e53cbd7b..0000000000 --- a/cci_venv/bin/myst-anchors +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/myst-docutils-html b/cci_venv/bin/myst-docutils-html deleted file mode 100755 index 1d8127474e..0000000000 --- a/cci_venv/bin/myst-docutils-html +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/myst-docutils-html5 b/cci_venv/bin/myst-docutils-html5 deleted file mode 100755 index b08822ba1d..0000000000 --- a/cci_venv/bin/myst-docutils-html5 +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/myst-docutils-latex b/cci_venv/bin/myst-docutils-latex deleted file mode 100755 index f694b85aff..0000000000 --- a/cci_venv/bin/myst-docutils-latex +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/myst-docutils-pseudoxml b/cci_venv/bin/myst-docutils-pseudoxml deleted file mode 100755 index 32112a5931..0000000000 --- a/cci_venv/bin/myst-docutils-pseudoxml +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/myst-docutils-xml b/cci_venv/bin/myst-docutils-xml deleted file mode 100755 index b2ba7b6267..0000000000 --- a/cci_venv/bin/myst-docutils-xml +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/natsort b/cci_venv/bin/natsort deleted file mode 100755 index 6f4b97538a..0000000000 --- a/cci_venv/bin/natsort +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- coding: utf-8 -*- -import re -import sys -from natsort.__main__ import main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/cci_venv/bin/nodeenv b/cci_venv/bin/nodeenv deleted file mode 100755 index 1a322f2f46..0000000000 --- a/cci_venv/bin/nodeenv +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- 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/cci_venv/bin/normalizer b/cci_venv/bin/normalizer deleted file mode 100755 index 84beb4cfa6..0000000000 --- a/cci_venv/bin/normalizer +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- 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/cci_venv/bin/pabot b/cci_venv/bin/pabot deleted file mode 100755 index 1c422a1396..0000000000 --- a/cci_venv/bin/pabot +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- coding: utf-8 -*- -import re -import sys -from pabot.pabot import main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/cci_venv/bin/pip b/cci_venv/bin/pip deleted file mode 100755 index e6124a1a8b..0000000000 --- a/cci_venv/bin/pip +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pip-compile b/cci_venv/bin/pip-compile deleted file mode 100755 index 93a7025865..0000000000 --- a/cci_venv/bin/pip-compile +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pip-sync b/cci_venv/bin/pip-sync deleted file mode 100755 index d2aab886e6..0000000000 --- a/cci_venv/bin/pip-sync +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pip3 b/cci_venv/bin/pip3 deleted file mode 100755 index e6124a1a8b..0000000000 --- a/cci_venv/bin/pip3 +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pip3.11 b/cci_venv/bin/pip3.11 deleted file mode 100755 index e6124a1a8b..0000000000 --- a/cci_venv/bin/pip3.11 +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pip3.9 b/cci_venv/bin/pip3.9 deleted file mode 100755 index e6124a1a8b..0000000000 --- a/cci_venv/bin/pip3.9 +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pre-commit b/cci_venv/bin/pre-commit deleted file mode 100755 index 49e634db94..0000000000 --- a/cci_venv/bin/pre-commit +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- 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/cci_venv/bin/py.test b/cci_venv/bin/py.test deleted file mode 100755 index 89d65fe7d7..0000000000 --- a/cci_venv/bin/py.test +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- 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/cci_venv/bin/pybabel b/cci_venv/bin/pybabel deleted file mode 100755 index c8556b4286..0000000000 --- a/cci_venv/bin/pybabel +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pycodestyle b/cci_venv/bin/pycodestyle deleted file mode 100755 index 78806a67b0..0000000000 --- a/cci_venv/bin/pycodestyle +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- 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/cci_venv/bin/pyflakes b/cci_venv/bin/pyflakes deleted file mode 100755 index 411cd3b657..0000000000 --- a/cci_venv/bin/pyflakes +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- 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/cci_venv/bin/pygmentize b/cci_venv/bin/pygmentize deleted file mode 100755 index acd74380f3..0000000000 --- a/cci_venv/bin/pygmentize +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pyproject-build b/cci_venv/bin/pyproject-build deleted file mode 100755 index a6ce606f38..0000000000 --- a/cci_venv/bin/pyproject-build +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/pytest b/cci_venv/bin/pytest deleted file mode 100755 index 89d65fe7d7..0000000000 --- a/cci_venv/bin/pytest +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- 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/cci_venv/bin/python b/cci_venv/bin/python deleted file mode 120000 index b8a0adbbb9..0000000000 --- a/cci_venv/bin/python +++ /dev/null @@ -1 +0,0 @@ -python3 \ No newline at end of file diff --git a/cci_venv/bin/python3 b/cci_venv/bin/python3 deleted file mode 120000 index f25545feec..0000000000 --- a/cci_venv/bin/python3 +++ /dev/null @@ -1 +0,0 @@ -/Library/Developer/CommandLineTools/usr/bin/python3 \ No newline at end of file diff --git a/cci_venv/bin/python3.9 b/cci_venv/bin/python3.9 deleted file mode 120000 index b8a0adbbb9..0000000000 --- a/cci_venv/bin/python3.9 +++ /dev/null @@ -1 +0,0 @@ -python3 \ No newline at end of file diff --git a/cci_venv/bin/rebot b/cci_venv/bin/rebot deleted file mode 100755 index 0f81b389f7..0000000000 --- a/cci_venv/bin/rebot +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- coding: utf-8 -*- -import re -import sys -from robot.rebot import rebot_cli -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(rebot_cli()) diff --git a/cci_venv/bin/rflint b/cci_venv/bin/rflint deleted file mode 100755 index e649a3e7b1..0000000000 --- a/cci_venv/bin/rflint +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- coding: utf-8 -*- -import re -import sys -from rflint.__main__ import main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/cci_venv/bin/robot b/cci_venv/bin/robot deleted file mode 100755 index d8ca923a58..0000000000 --- a/cci_venv/bin/robot +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- coding: utf-8 -*- -import re -import sys -from robot.run import run_cli -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(run_cli()) diff --git a/cci_venv/bin/rst2ansi b/cci_venv/bin/rst2ansi deleted file mode 100755 index 631cb26005..0000000000 --- a/cci_venv/bin/rst2ansi +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/python - -import sys -from rst2ansi import rst2ansi -import argparse -import io - -parser = argparse.ArgumentParser(description='Prints a reStructuredText input in an ansi-decorated format suitable for console output.') -parser.add_argument('file', type=str, nargs='?', help='A path to the file to open') - -args = parser.parse_args() - -def process_file(f): - out = rst2ansi(f.read()) - if out: - try: - print(out) - except UnicodeEncodeError: - print(out.encode('ascii', errors='backslashreplace').decode('ascii')) - -if args.file: - with io.open(args.file, 'rb') as f: - process_file(f) -else: - process_file(sys.stdin) - diff --git a/cci_venv/bin/rst2html.py b/cci_venv/bin/rst2html.py deleted file mode 100755 index 4deeb673e1..0000000000 --- a/cci_venv/bin/rst2html.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2html4.py b/cci_venv/bin/rst2html4.py deleted file mode 100755 index 26b7083fdf..0000000000 --- a/cci_venv/bin/rst2html4.py +++ /dev/null @@ -1,26 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2html5.py b/cci_venv/bin/rst2html5.py deleted file mode 100755 index 07bb91cc24..0000000000 --- a/cci_venv/bin/rst2html5.py +++ /dev/null @@ -1,35 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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: http://www.spdx.org/licenses/BSD-2-Clause -# -# Revision: $Revision: 8410 $ -# Date: $Date: 2019-11-04 22:14:43 +0100 (Mo, 04. Nov 2019) $ - -""" -A minimal front end to the Docutils Publisher, producing HTML 5 documents. - -The output also conforms to XHTML 1.0 transitional -(except for the doctype declaration). -""" - -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 HTML 5 documents from standalone ' - u'reStructuredText sources ' - + default_description) - -publish_cmdline(writer_name='html5', description=description) diff --git a/cci_venv/bin/rst2latex.py b/cci_venv/bin/rst2latex.py deleted file mode 100755 index 9dcd011a95..0000000000 --- a/cci_venv/bin/rst2latex.py +++ /dev/null @@ -1,26 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2man.py b/cci_venv/bin/rst2man.py deleted file mode 100755 index 3c40200330..0000000000 --- a/cci_venv/bin/rst2man.py +++ /dev/null @@ -1,26 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2odt.py b/cci_venv/bin/rst2odt.py deleted file mode 100755 index 0be802f64b..0000000000 --- a/cci_venv/bin/rst2odt.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2odt_prepstyles.py b/cci_venv/bin/rst2odt_prepstyles.py deleted file mode 100755 index 727e87f91d..0000000000 --- a/cci_venv/bin/rst2odt_prepstyles.py +++ /dev/null @@ -1,67 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2pseudoxml.py b/cci_venv/bin/rst2pseudoxml.py deleted file mode 100755 index 717bf2e1ea..0000000000 --- a/cci_venv/bin/rst2pseudoxml.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2s5.py b/cci_venv/bin/rst2s5.py deleted file mode 100755 index 196249d292..0000000000 --- a/cci_venv/bin/rst2s5.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2xetex.py b/cci_venv/bin/rst2xetex.py deleted file mode 100755 index 5c50c3f7b8..0000000000 --- a/cci_venv/bin/rst2xetex.py +++ /dev/null @@ -1,27 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rst2xml.py b/cci_venv/bin/rst2xml.py deleted file mode 100755 index db68e2f214..0000000000 --- a/cci_venv/bin/rst2xml.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/rstpep2html.py b/cci_venv/bin/rstpep2html.py deleted file mode 100755 index 4fb4508aaa..0000000000 --- a/cci_venv/bin/rstpep2html.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/snowbench b/cci_venv/bin/snowbench deleted file mode 100755 index e75bb04614..0000000000 --- a/cci_venv/bin/snowbench +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- coding: utf-8 -*- -import re -import sys -from snowfakery.tools.snowbench import main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/cci_venv/bin/snowfakery b/cci_venv/bin/snowfakery deleted file mode 100755 index 8bfe15089b..0000000000 --- a/cci_venv/bin/snowfakery +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- coding: utf-8 -*- -import re -import sys -from snowfakery.cli import main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/cci_venv/bin/sphinx-apidoc b/cci_venv/bin/sphinx-apidoc deleted file mode 100755 index fd351c9e85..0000000000 --- a/cci_venv/bin/sphinx-apidoc +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/sphinx-autogen b/cci_venv/bin/sphinx-autogen deleted file mode 100755 index 4f605a06bb..0000000000 --- a/cci_venv/bin/sphinx-autogen +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/sphinx-build b/cci_venv/bin/sphinx-build deleted file mode 100755 index a4d9d78528..0000000000 --- a/cci_venv/bin/sphinx-build +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/sphinx-quickstart b/cci_venv/bin/sphinx-quickstart deleted file mode 100755 index 8b8f570daa..0000000000 --- a/cci_venv/bin/sphinx-quickstart +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/bin/tox b/cci_venv/bin/tox deleted file mode 100755 index e288d3a32d..0000000000 --- a/cci_venv/bin/tox +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- coding: utf-8 -*- -import re -import sys -from tox.run import run -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(run()) diff --git a/cci_venv/bin/virtualenv b/cci_venv/bin/virtualenv deleted file mode 100755 index e22135d441..0000000000 --- a/cci_venv/bin/virtualenv +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/bin/python -# -*- 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/cci_venv/bin/wheel b/cci_venv/bin/wheel deleted file mode 100755 index ac53361d94..0000000000 --- a/cci_venv/bin/wheel +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/l.ramireddy/Downloads/CumulusCI/cci_venv/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/cci_venv/include/site/python3.9/greenlet/greenlet.h b/cci_venv/include/site/python3.9/greenlet/greenlet.h deleted file mode 100644 index d02a16e434..0000000000 --- a/cci_venv/include/site/python3.9/greenlet/greenlet.h +++ /dev/null @@ -1,164 +0,0 @@ -/* -*- 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" - -#ifndef GREENLET_MODULE -#define implementation_ptr_t void* -#endif - -typedef struct _greenlet { - PyObject_HEAD - PyObject* weakreflist; - PyObject* dict; - implementation_ptr_t pimpl; -} PyGreenlet; - -#define PyGreenlet_Check(op) (op && PyObject_TypeCheck(op, &PyGreenlet_Type)) - - -/* C API functions */ - -/* Total number of symbols that are exported */ -#define PyGreenlet_API_pointers 12 - -#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 - -#define PyGreenlet_MAIN_NUM 8 -#define PyGreenlet_STARTED_NUM 9 -#define PyGreenlet_ACTIVE_NUM 10 -#define PyGreenlet_GET_PARENT_NUM 11 - -#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]) - -/* - * PyGreenlet_GetParent(PyObject* greenlet) - * - * return greenlet.parent; - * - * This could return NULL even if there is no exception active. - * If it does not return NULL, you are responsible for decrementing the - * reference count. - */ -# define PyGreenlet_GetParent \ - (*(PyGreenlet* (*)(PyGreenlet*)) \ - _PyGreenlet_API[PyGreenlet_GET_PARENT_NUM]) - -/* - * deprecated, undocumented alias. - */ -# define PyGreenlet_GET_PARENT PyGreenlet_GetParent - -# define PyGreenlet_MAIN \ - (*(int (*)(PyGreenlet*)) \ - _PyGreenlet_API[PyGreenlet_MAIN_NUM]) - -# define PyGreenlet_STARTED \ - (*(int (*)(PyGreenlet*)) \ - _PyGreenlet_API[PyGreenlet_STARTED_NUM]) - -# define PyGreenlet_ACTIVE \ - (*(int (*)(PyGreenlet*)) \ - _PyGreenlet_API[PyGreenlet_ACTIVE_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/cci_venv/pyvenv.cfg b/cci_venv/pyvenv.cfg deleted file mode 100644 index 4760c1ffc4..0000000000 --- a/cci_venv/pyvenv.cfg +++ /dev/null @@ -1,3 +0,0 @@ -home = /Library/Developer/CommandLineTools/usr/bin -include-system-site-packages = false -version = 3.9.6 diff --git a/cci_venv/requirements/dev.txt b/cci_venv/requirements/dev.txt deleted file mode 100644 index 6af1da5af7..0000000000 --- a/cci_venv/requirements/dev.txt +++ /dev/null @@ -1,229 +0,0 @@ -# -# This file is autogenerated by pip-compile with Python 3.9 -# by the following command: -# -# pip-compile --allow-unsafe requirements/dev.in -# -attrs==22.2.0 - # via - # jsonschema - # pytest -black==23.1.0 - # via -r requirements/dev.in -cachetools==5.3.0 - # via tox -certifi==2022.12.7 - # via - # -r requirements/prod.txt - # requests -cfgv==3.3.1 - # via pre-commit -chardet==5.1.0 - # via - # diff-cover - # tox -charset-normalizer==3.0.1 - # via - # -r requirements/prod.txt - # requests -click==8.1.3 - # via - # -r requirements/prod.txt - # black - # mkdocs -colorama==0.4.6 - # via tox -coverage[toml]==6.5.0 - # via - # -r requirements/dev.in - # coveralls - # pytest-cov -coveralls==3.3.1 - # via -r requirements/dev.in -diff-cover==7.4.0 - # via -r requirements/dev.in -distlib==0.3.6 - # via virtualenv -docopt==0.6.2 - # via coveralls -exceptiongroup==1.1.0 - # via pytest -faker==17.0.0 - # via - # -r requirements/prod.txt - # faker-microservice -faker-microservice==2.0.0 - # via -r requirements/dev.in -filelock==3.9.0 - # via - # tox - # virtualenv -ghp-import==2.1.0 - # via mkdocs -greenlet==2.0.2 - # via - # -r requirements/prod.txt - # sqlalchemy -gvgen==1.0 - # via -r requirements/prod.txt -identify==2.5.18 - # via pre-commit -idna==3.4 - # via - # -r requirements/prod.txt - # requests - # yarl -importlib-metadata==6.0.0 - # via - # markdown - # mkdocs -iniconfig==2.0.0 - # via pytest -jinja2==3.1.2 - # via - # -r requirements/prod.txt - # diff-cover - # mkdocs -jsonschema==4.17.3 - # via -r requirements/dev.in -markdown==3.4.1 - # via mkdocs -markupsafe==2.1.2 - # via - # -r requirements/prod.txt - # jinja2 -mergedeep==1.3.4 - # via mkdocs -mkdocs==1.2.4 - # via - # -r requirements/dev.in - # mkdocs-exclude-search -mkdocs-exclude-search==0.6.5 - # via -r requirements/dev.in -multidict==6.0.4 - # via yarl -mypy-extensions==1.0.0 - # via black -nodeenv==1.7.0 - # via - # pre-commit - # pyright -packaging==23.0 - # via - # black - # mkdocs - # pyproject-api - # pytest - # tox -pathspec==0.11.0 - # via black -platformdirs==3.0.0 - # via - # black - # tox - # virtualenv -pluggy==1.0.0 - # via - # diff-cover - # pytest - # tox -pre-commit==3.0.4 - # via -r requirements/dev.in -pydantic==1.10.5 - # via -r requirements/prod.txt -pygments==2.14.0 - # via diff-cover -pyproject-api==1.5.0 - # via tox -pyright==1.1.294 - # via -r requirements/dev.in -pyrsistent==0.19.3 - # via jsonschema -pytest==7.2.1 - # via - # -r requirements/dev.in - # pytest-cov - # pytest-vcr -pytest-cov==4.0.0 - # via -r requirements/dev.in -pytest-vcr==1.0.2 - # via -r requirements/dev.in -python-baseconv==1.2.2 - # via -r requirements/prod.txt -python-dateutil==2.8.2 - # via - # -r requirements/prod.txt - # faker - # ghp-import -pyyaml==6.0 - # via - # -r requirements/prod.txt - # mkdocs - # pre-commit - # pyyaml-env-tag - # vcrpy -pyyaml-env-tag==0.1 - # via mkdocs -requests==2.28.2 - # via - # -r requirements/prod.txt - # coveralls - # responses -responses==0.22.0 - # via -r requirements/dev.in -six==1.16.0 - # via - # -r requirements/prod.txt - # python-dateutil - # vcrpy -sqlalchemy==1.4.46 - # via -r requirements/prod.txt -toml==0.10.2 - # via responses -tomli==2.0.1 - # via - # black - # coverage - # pyproject-api - # pytest - # tox -tox==4.4.5 - # via - # -r requirements/dev.in - # tox-gh-actions -tox-gh-actions==3.0.0 - # via -r requirements/dev.in -typeguard==2.13.3 - # via -r requirements/dev.in -types-toml==0.10.8.4 - # via responses -typing-extensions==4.5.0 - # via - # -r requirements/prod.txt - # black - # pydantic -urllib3==1.26.14 - # via - # -r requirements/prod.txt - # requests - # responses -vcrpy==4.2.1 - # via - # -r requirements/dev.in - # pytest-vcr -virtualenv==20.19.0 - # via - # pre-commit - # tox -watchdog==2.2.1 - # via mkdocs -wrapt==1.14.1 - # via vcrpy -yarl==1.8.2 - # via vcrpy -zipp==3.13.0 - # via importlib-metadata - -# The following packages are considered to be unsafe in a requirements file: -setuptools==67.3.2 - # via nodeenv diff --git a/cci_venv/requirements/prod.txt b/cci_venv/requirements/prod.txt deleted file mode 100644 index affd25463e..0000000000 --- a/cci_venv/requirements/prod.txt +++ /dev/null @@ -1,44 +0,0 @@ -# -# This file is autogenerated by pip-compile with Python 3.9 -# by the following command: -# -# pip-compile --allow-unsafe requirements/prod.in -# -certifi==2022.12.7 - # via requests -charset-normalizer==3.0.1 - # via requests -click==8.1.3 - # via -r requirements/prod.in -faker==17.0.0 - # via -r requirements/prod.in -greenlet==2.0.2 - # via sqlalchemy -gvgen==1.0 - # via -r requirements/prod.in -idna==3.4 - # via requests -jinja2==3.1.2 - # via -r requirements/prod.in -markupsafe==2.1.2 - # via jinja2 -pydantic==1.10.5 - # via -r requirements/prod.in -python-baseconv==1.2.2 - # via -r requirements/prod.in -python-dateutil==2.8.2 - # via - # -r requirements/prod.in - # faker -pyyaml==6.0 - # via -r requirements/prod.in -requests==2.28.2 - # via -r requirements/prod.in -six==1.16.0 - # via python-dateutil -sqlalchemy==1.4.46 - # via -r requirements/prod.in -typing-extensions==4.5.0 - # via pydantic -urllib3==1.26.14 - # via requests From ec8716e02cb3a6c68f59714bdf9856b17a752c4b Mon Sep 17 00:00:00 2001 From: lakshmi2506 Date: Thu, 5 Oct 2023 13:01:10 +0530 Subject: [PATCH 04/11] clean-up --- .gitignore | 1 + cumulusci/salesforce_api/metadata.py | 30 +++++++++------- .../tests/metadata_test_strings.py | 5 +++ .../salesforce_api/tests/test_metadata.py | 35 +++++++++++++++++++ .../tasks/salesforce/RetrieveMetadataTypes.py | 22 +++++------- 5 files changed, 66 insertions(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index d91ee2ee9b..2a85104501 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ docs/api/ docs/_build/ github_release_notes.html tmp +cci_venv/ # Distribution / packaging *.egg diff --git a/cumulusci/salesforce_api/metadata.py b/cumulusci/salesforce_api/metadata.py index c95fd29783..72d13f30fc 100644 --- a/cumulusci/salesforce_api/metadata.py +++ b/cumulusci/salesforce_api/metadata.py @@ -685,9 +685,7 @@ class ApiListMetadataTypes(BaseMetadataApiCall): soap_envelope_start = soap_envelopes.METADATA_TYPES soap_action_start = "describemetadatatypes" - def __init__( - self, task, as_of_version=None - ): + def __init__(self, task, as_of_version=None): super(ApiListMetadataTypes, self).__init__(task) self.metadata_types = [] self.as_of_version = ( @@ -698,20 +696,26 @@ def __init__( self.api_version = self.as_of_version def _build_envelope_start(self): - + return self.soap_envelope_start.format( as_of_version=self.as_of_version, ) def _process_response(self, response): - self.metadata_types=[] - temp=parseString(response).getElementsByTagName("metadataObjects") - - for metadataobject in temp: - self.metadata_types.append(self._get_element_value(metadataobject, "xmlName")) - child_elements = metadataobject.getElementsByTagName("childXmlNames") - child_xml_names = [element.firstChild.nodeValue for element in child_elements] - self.metadata_types+=child_xml_names + self.metadata_types = [] + response = response.content.decode("utf-8") + metaobjects = parseString(response).getElementsByTagName("metadataObjects") + for metadataobject in metaobjects: + self.metadata_types.append( + self._get_element_value(metadataobject, "xmlName") + ) + child_elements = metadataobject.getElementsByTagName("childXmlNames") + child_xml_names = [ + element.firstChild.nodeValue for element in child_elements + ] + self.metadata_types += child_xml_names + self.metadata_types.sort() + self.status = "Done" + self.task.logger.info(self.status) return self.metadata_types - diff --git a/cumulusci/salesforce_api/tests/metadata_test_strings.py b/cumulusci/salesforce_api/tests/metadata_test_strings.py index 8ab145a752..3075648cec 100644 --- a/cumulusci/salesforce_api/tests/metadata_test_strings.py +++ b/cumulusci/salesforce_api/tests/metadata_test_strings.py @@ -19,3 +19,8 @@ status_envelope = '\n\n \n \n ###SESSION_ID###\n \n \n \n \n {process_id}\n \n \n' deploy_status_envelope = '\n\n \n \n ###SESSION_ID###\n \n \n \n \n {process_id}\n true\n \n \n' + + +list_metadata_types_envelope = '\n\n \n \n ###SESSION_ID###\n \n \n \n \n {as_of_version}\n \n \n ' + +list_metadata_types_result = 'WorkflowFieldUpdateworkflowsfalsefalseworkflowWorkflowtruefalse' diff --git a/cumulusci/salesforce_api/tests/test_metadata.py b/cumulusci/salesforce_api/tests/test_metadata.py index 7e578a34bb..fa0e0c2767 100644 --- a/cumulusci/salesforce_api/tests/test_metadata.py +++ b/cumulusci/salesforce_api/tests/test_metadata.py @@ -19,6 +19,7 @@ from cumulusci.salesforce_api.metadata import ( ApiDeploy, ApiListMetadata, + ApiListMetadataTypes, ApiRetrieveInstalledPackages, ApiRetrievePackaged, ApiRetrieveUnpackaged, @@ -36,6 +37,8 @@ list_metadata_result, list_metadata_result_bad_val, list_metadata_start_envelope, + list_metadata_types_envelope, + list_metadata_types_result, result_envelope, retrieve_packaged_start_envelope, retrieve_result, @@ -843,6 +846,38 @@ def test_bad_date_somehow(self): api() +class TestApiListMetadataTypes(TestBaseTestMetadataApi): + api_class = ApiListMetadataTypes + envelope_start = list_metadata_types_envelope + + def setup_method(self): + super().setup_method() + self.metadata_types = None + self.api_version = self.project_config.project__package__api_version + + def _response_call_success_result(self, response_result): + return list_metadata_types_result + + def _expected_call_success_result(self, response_result): + metadata_types = ["Workflow", "WorkflowFieldUpdate"] + return metadata_types + + def _create_instance(self, task, api_version=None): + return super()._create_instance(task, api_version) + + @responses.activate + def test_call_success(self): + org_config = { + "instance_url": "https://na12.salesforce.com", + "id": "https://login.salesforce.com/id/00D000000000000ABC/005000000000000ABC", + "access_token": "0123456789", + } + task = self._create_task(org_config=org_config) + api = self._create_instance(task) + if not self.api_class.soap_envelope_start: + api.soap_envelope_start = "{api_version}" + + class TestApiRetrieveUnpackaged(TestBaseTestMetadataApi): maxDiff = None api_class = ApiRetrieveUnpackaged diff --git a/cumulusci/tasks/salesforce/RetrieveMetadataTypes.py b/cumulusci/tasks/salesforce/RetrieveMetadataTypes.py index aa57ec749a..99f6806a0d 100644 --- a/cumulusci/tasks/salesforce/RetrieveMetadataTypes.py +++ b/cumulusci/tasks/salesforce/RetrieveMetadataTypes.py @@ -1,17 +1,15 @@ -from typing import Any from cumulusci.salesforce_api.metadata import ApiListMetadataTypes - from cumulusci.tasks.salesforce import BaseRetrieveMetadata -from defusedxml.minidom import parseString + class RetrieveMetadataTypes(BaseRetrieveMetadata): - api_class= ApiListMetadataTypes + api_class = ApiListMetadataTypes task_options = { "api_version": { "description": "Override the API version used to list metadatatypes" }, - } + def _init_options(self, kwargs): super(RetrieveMetadataTypes, self)._init_options(kwargs) if "api_version" not in self.options: @@ -20,16 +18,12 @@ def _init_options(self, kwargs): ] = self.project_config.project__package__api_version def _get_api(self): - return self.api_class( - self, self.options.get("api_version") - ) + return self.api_class(self, self.options.get("api_version")) def _run_task(self): api_object = self._get_api() - root = api_object._get_response().content.decode("utf-8") - self.logger.info(api_object._process_response(root)) - - - - \ No newline at end of file + while api_object.status == "Pending": + api_object() + + self.logger.info("Metadata Types supported by org:\n" + str(api_object())) From d54afc4661ca206a78912a502ce972dcd085fefd Mon Sep 17 00:00:00 2001 From: lakshmi2506 Date: Thu, 5 Oct 2023 17:05:13 +0530 Subject: [PATCH 05/11] tests_added --- cumulusci/salesforce_api/metadata.py | 11 ++++---- cumulusci/salesforce_api/soap_envelopes.py | 4 +-- .../tests/metadata_test_strings.py | 3 ++- .../salesforce_api/tests/test_metadata.py | 6 ++++- .../tests/test_retrievemetadatatypes.py | 26 +++++++++++++++++++ 5 files changed, 40 insertions(+), 10 deletions(-) create mode 100644 cumulusci/tasks/salesforce/tests/test_retrievemetadatatypes.py diff --git a/cumulusci/salesforce_api/metadata.py b/cumulusci/salesforce_api/metadata.py index 72d13f30fc..ed82bd380b 100644 --- a/cumulusci/salesforce_api/metadata.py +++ b/cumulusci/salesforce_api/metadata.py @@ -685,20 +685,19 @@ class ApiListMetadataTypes(BaseMetadataApiCall): soap_envelope_start = soap_envelopes.METADATA_TYPES soap_action_start = "describemetadatatypes" - def __init__(self, task, as_of_version=None): + def __init__(self, task, api_version=None): super(ApiListMetadataTypes, self).__init__(task) self.metadata_types = [] - self.as_of_version = ( - as_of_version - if as_of_version + self.api_version = ( + api_version + if api_version else task.project_config.project__package__api_version ) - self.api_version = self.as_of_version def _build_envelope_start(self): return self.soap_envelope_start.format( - as_of_version=self.as_of_version, + api_version=self.api_version, ) def _process_response(self, response): diff --git a/cumulusci/salesforce_api/soap_envelopes.py b/cumulusci/salesforce_api/soap_envelopes.py index 3ccf02c0d0..f92cc8e542 100644 --- a/cumulusci/salesforce_api/soap_envelopes.py +++ b/cumulusci/salesforce_api/soap_envelopes.py @@ -162,7 +162,7 @@ """ -METADATA_TYPES= """ +METADATA_TYPES = """ @@ -171,7 +171,7 @@ - {as_of_version} + {api_version} """ diff --git a/cumulusci/salesforce_api/tests/metadata_test_strings.py b/cumulusci/salesforce_api/tests/metadata_test_strings.py index 3075648cec..c58d660908 100644 --- a/cumulusci/salesforce_api/tests/metadata_test_strings.py +++ b/cumulusci/salesforce_api/tests/metadata_test_strings.py @@ -21,6 +21,7 @@ deploy_status_envelope = '\n\n \n \n ###SESSION_ID###\n \n \n \n \n {process_id}\n true\n \n \n' -list_metadata_types_envelope = '\n\n \n \n ###SESSION_ID###\n \n \n \n \n {as_of_version}\n \n \n ' +# list_metadata_types_envelope = '\n\n \n \n ###SESSION_ID###\n \n \n \n \n {api_version}\n \n \n' +list_metadata_types_envelope = '\n\n \n \n ###SESSION_ID###\n \n \n \n \n {api_version}\n \n \n' list_metadata_types_result = 'WorkflowFieldUpdateworkflowsfalsefalseworkflowWorkflowtruefalse' diff --git a/cumulusci/salesforce_api/tests/test_metadata.py b/cumulusci/salesforce_api/tests/test_metadata.py index fa0e0c2767..9df439f67e 100644 --- a/cumulusci/salesforce_api/tests/test_metadata.py +++ b/cumulusci/salesforce_api/tests/test_metadata.py @@ -858,7 +858,7 @@ def setup_method(self): def _response_call_success_result(self, response_result): return list_metadata_types_result - def _expected_call_success_result(self, response_result): + def _expected_call_success_result(self, response_result=None): metadata_types = ["Workflow", "WorkflowFieldUpdate"] return metadata_types @@ -876,6 +876,10 @@ def test_call_success(self): api = self._create_instance(task) if not self.api_class.soap_envelope_start: api.soap_envelope_start = "{api_version}" + self._mock_call_mdapi(api, list_metadata_types_result) + + metadata_types = api() + assert metadata_types == self._expected_call_success_result() class TestApiRetrieveUnpackaged(TestBaseTestMetadataApi): diff --git a/cumulusci/tasks/salesforce/tests/test_retrievemetadatatypes.py b/cumulusci/tasks/salesforce/tests/test_retrievemetadatatypes.py new file mode 100644 index 0000000000..c15a01ea0d --- /dev/null +++ b/cumulusci/tasks/salesforce/tests/test_retrievemetadatatypes.py @@ -0,0 +1,26 @@ + + +from unittest import mock + +from cumulusci.tasks.salesforce import RetrieveMetadataTypes +from .util import create_task + +class TestRetrieveMetadataTypes: + def test_run_task(self): + task = create_task(RetrieveMetadataTypes) + task._get_api = mock.Mock() + task() + task._get_api.assert_called_once() + + + def test_run_task_with_apiversion(self): + task = create_task(RetrieveMetadataTypes,{"api_version": 8.0}) + assert task.options.get("api_version")==8.0 + task._get_api() + + + + + + + From f9d47ea2f5f8e25645e84f2eaffef7c0b9d53874 Mon Sep 17 00:00:00 2001 From: lakshmi2506 Date: Thu, 5 Oct 2023 17:08:07 +0530 Subject: [PATCH 06/11] tests_added --- .../tests/test_retrievemetadatatypes.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/cumulusci/tasks/salesforce/tests/test_retrievemetadatatypes.py b/cumulusci/tasks/salesforce/tests/test_retrievemetadatatypes.py index c15a01ea0d..07345aa2ca 100644 --- a/cumulusci/tasks/salesforce/tests/test_retrievemetadatatypes.py +++ b/cumulusci/tasks/salesforce/tests/test_retrievemetadatatypes.py @@ -1,10 +1,10 @@ - - from unittest import mock from cumulusci.tasks.salesforce import RetrieveMetadataTypes + from .util import create_task + class TestRetrieveMetadataTypes: def test_run_task(self): task = create_task(RetrieveMetadataTypes) @@ -12,15 +12,7 @@ def test_run_task(self): task() task._get_api.assert_called_once() - def test_run_task_with_apiversion(self): - task = create_task(RetrieveMetadataTypes,{"api_version": 8.0}) - assert task.options.get("api_version")==8.0 + task = create_task(RetrieveMetadataTypes, {"api_version": 8.0}) + assert task.options.get("api_version") == 8.0 task._get_api() - - - - - - - From 510aefd6abb827b807867680008bff01ba28e528 Mon Sep 17 00:00:00 2001 From: lakshmi2506 Date: Thu, 5 Oct 2023 17:10:25 +0530 Subject: [PATCH 07/11] tests_added --- cumulusci/salesforce_api/tests/metadata_test_strings.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/cumulusci/salesforce_api/tests/metadata_test_strings.py b/cumulusci/salesforce_api/tests/metadata_test_strings.py index c58d660908..4163fecdbb 100644 --- a/cumulusci/salesforce_api/tests/metadata_test_strings.py +++ b/cumulusci/salesforce_api/tests/metadata_test_strings.py @@ -20,8 +20,5 @@ deploy_status_envelope = '\n\n \n \n ###SESSION_ID###\n \n \n \n \n {process_id}\n true\n \n \n' - -# list_metadata_types_envelope = '\n\n \n \n ###SESSION_ID###\n \n \n \n \n {api_version}\n \n \n' - list_metadata_types_envelope = '\n\n \n \n ###SESSION_ID###\n \n \n \n \n {api_version}\n \n \n' list_metadata_types_result = 'WorkflowFieldUpdateworkflowsfalsefalseworkflowWorkflowtruefalse' From 09c8e88f084e25d28ad06f254aba551a10e658d4 Mon Sep 17 00:00:00 2001 From: lakshmi2506 Date: Thu, 5 Oct 2023 17:43:17 +0530 Subject: [PATCH 08/11] Clean Up --- cumulusci/salesforce_api/soap_envelopes.py | 21 ++++++++++--------- .../tests/metadata_test_strings.py | 2 +- .../tasks/salesforce/RetrieveMetadataTypes.py | 4 +++- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/cumulusci/salesforce_api/soap_envelopes.py b/cumulusci/salesforce_api/soap_envelopes.py index f92cc8e542..2f83e37be6 100644 --- a/cumulusci/salesforce_api/soap_envelopes.py +++ b/cumulusci/salesforce_api/soap_envelopes.py @@ -162,16 +162,17 @@ """ + METADATA_TYPES = """ - - - ###SESSION_ID### - - - - - {api_version} - - + + + ###SESSION_ID### + + + + + {api_version} + + """ diff --git a/cumulusci/salesforce_api/tests/metadata_test_strings.py b/cumulusci/salesforce_api/tests/metadata_test_strings.py index 4163fecdbb..977e76a295 100644 --- a/cumulusci/salesforce_api/tests/metadata_test_strings.py +++ b/cumulusci/salesforce_api/tests/metadata_test_strings.py @@ -20,5 +20,5 @@ deploy_status_envelope = '\n\n \n \n ###SESSION_ID###\n \n \n \n \n {process_id}\n true\n \n \n' -list_metadata_types_envelope = '\n\n \n \n ###SESSION_ID###\n \n \n \n \n {api_version}\n \n \n' +list_metadata_types_envelope = '\n\n \n \n ###SESSION_ID###\n \n \n \n \n {api_version}\n \n \n' list_metadata_types_result = 'WorkflowFieldUpdateworkflowsfalsefalseworkflowWorkflowtruefalse' diff --git a/cumulusci/tasks/salesforce/RetrieveMetadataTypes.py b/cumulusci/tasks/salesforce/RetrieveMetadataTypes.py index 99f6806a0d..326c71c9d6 100644 --- a/cumulusci/tasks/salesforce/RetrieveMetadataTypes.py +++ b/cumulusci/tasks/salesforce/RetrieveMetadataTypes.py @@ -1,3 +1,5 @@ +import time + from cumulusci.salesforce_api.metadata import ApiListMetadataTypes from cumulusci.tasks.salesforce import BaseRetrieveMetadata @@ -24,6 +26,6 @@ def _run_task(self): api_object = self._get_api() while api_object.status == "Pending": - api_object() + time.sleep(1) self.logger.info("Metadata Types supported by org:\n" + str(api_object())) From d79eccd6d98ba05dd147874beb154558e377e99b Mon Sep 17 00:00:00 2001 From: lakshmi2506 Date: Thu, 5 Oct 2023 17:46:54 +0530 Subject: [PATCH 09/11] Clean Up --- cumulusci/cumulusci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cumulusci/cumulusci.yml b/cumulusci/cumulusci.yml index fbe9493ebc..6ebb75e12d 100644 --- a/cumulusci/cumulusci.yml +++ b/cumulusci/cumulusci.yml @@ -482,7 +482,7 @@ tasks: class_path: cumulusci.tasks.salesforce.RetrieveMetadataTypes description: Retrieves the metadata types supported by the org based on the api version group: Salesforce Metadatatypes - + retrieve_src: description: Retrieves the packaged metadata into the src directory class_path: cumulusci.tasks.salesforce.RetrievePackaged @@ -490,7 +490,6 @@ tasks: path: src group: Salesforce Metadata - retrieve_unpackaged: description: Retrieve the contents of a package.xml file. class_path: cumulusci.tasks.salesforce.RetrieveUnpackaged @@ -689,6 +688,7 @@ tasks: mapping: "datasets/mapping.yml" sql_path: "datasets/sample.sql" group: "Data Operations" + load_dataset: description: Load a SQL dataset using the bulk API. class_path: cumulusci.tasks.bulkdata.load.LoadData From 12b8108ccdf6b713b683222d2ea0beba94e40cc5 Mon Sep 17 00:00:00 2001 From: lakshmi2506 Date: Mon, 9 Oct 2023 17:53:34 +0530 Subject: [PATCH 10/11] few_variable_changes --- .gitignore | 1 - cumulusci/cumulusci.yml | 10 +++------- cumulusci/salesforce_api/metadata.py | 5 ++--- cumulusci/salesforce_api/soap_envelopes.py | 3 +-- ...ieveMetadataTypes.py => DescribeMetadataTypes.py} | 12 ++++-------- cumulusci/tasks/salesforce/__init__.py | 2 +- ...etadatatypes.py => test_describemetadatatypes.py} | 8 ++++---- 7 files changed, 15 insertions(+), 26 deletions(-) rename cumulusci/tasks/salesforce/{RetrieveMetadataTypes.py => DescribeMetadataTypes.py} (77%) rename cumulusci/tasks/salesforce/tests/{test_retrievemetadatatypes.py => test_describemetadatatypes.py} (61%) diff --git a/.gitignore b/.gitignore index 2a85104501..d91ee2ee9b 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,6 @@ docs/api/ docs/_build/ github_release_notes.html tmp -cci_venv/ # Distribution / packaging *.egg diff --git a/cumulusci/cumulusci.yml b/cumulusci/cumulusci.yml index 6ebb75e12d..6a3bf98422 100644 --- a/cumulusci/cumulusci.yml +++ b/cumulusci/cumulusci.yml @@ -477,19 +477,16 @@ tasks: options: path: packaged group: Salesforce Metadata - - retrieve_metadatatypes: - class_path: cumulusci.tasks.salesforce.RetrieveMetadataTypes + describe_metadatatypes: + class_path: cumulusci.tasks.salesforce.DescribeMetadataTypes description: Retrieves the metadata types supported by the org based on the api version - group: Salesforce Metadatatypes - + group: Salesforce Metadata retrieve_src: description: Retrieves the packaged metadata into the src directory class_path: cumulusci.tasks.salesforce.RetrievePackaged options: path: src group: Salesforce Metadata - retrieve_unpackaged: description: Retrieve the contents of a package.xml file. class_path: cumulusci.tasks.salesforce.RetrieveUnpackaged @@ -688,7 +685,6 @@ tasks: mapping: "datasets/mapping.yml" sql_path: "datasets/sample.sql" group: "Data Operations" - load_dataset: description: Load a SQL dataset using the bulk API. class_path: cumulusci.tasks.bulkdata.load.LoadData diff --git a/cumulusci/salesforce_api/metadata.py b/cumulusci/salesforce_api/metadata.py index ed82bd380b..7c40bbcd63 100644 --- a/cumulusci/salesforce_api/metadata.py +++ b/cumulusci/salesforce_api/metadata.py @@ -682,7 +682,7 @@ def _process_response(self, response): class ApiListMetadataTypes(BaseMetadataApiCall): check_interval = 1 - soap_envelope_start = soap_envelopes.METADATA_TYPES + soap_envelope_start = soap_envelopes.DESCRIBE_METADATA soap_action_start = "describemetadatatypes" def __init__(self, task, api_version=None): @@ -702,8 +702,7 @@ def _build_envelope_start(self): def _process_response(self, response): self.metadata_types = [] - response = response.content.decode("utf-8") - metaobjects = parseString(response).getElementsByTagName("metadataObjects") + metaobjects = parseString(response.content).getElementsByTagName("metadataObjects") for metadataobject in metaobjects: self.metadata_types.append( diff --git a/cumulusci/salesforce_api/soap_envelopes.py b/cumulusci/salesforce_api/soap_envelopes.py index 2f83e37be6..ae6e8ec816 100644 --- a/cumulusci/salesforce_api/soap_envelopes.py +++ b/cumulusci/salesforce_api/soap_envelopes.py @@ -162,8 +162,7 @@ """ - -METADATA_TYPES = """ +DESCRIBE_METADATA = """ diff --git a/cumulusci/tasks/salesforce/RetrieveMetadataTypes.py b/cumulusci/tasks/salesforce/DescribeMetadataTypes.py similarity index 77% rename from cumulusci/tasks/salesforce/RetrieveMetadataTypes.py rename to cumulusci/tasks/salesforce/DescribeMetadataTypes.py index 326c71c9d6..e92bd98b2c 100644 --- a/cumulusci/tasks/salesforce/RetrieveMetadataTypes.py +++ b/cumulusci/tasks/salesforce/DescribeMetadataTypes.py @@ -1,10 +1,9 @@ -import time from cumulusci.salesforce_api.metadata import ApiListMetadataTypes from cumulusci.tasks.salesforce import BaseRetrieveMetadata -class RetrieveMetadataTypes(BaseRetrieveMetadata): +class DescribeMetadataTypes(BaseRetrieveMetadata): api_class = ApiListMetadataTypes task_options = { "api_version": { @@ -13,7 +12,7 @@ class RetrieveMetadataTypes(BaseRetrieveMetadata): } def _init_options(self, kwargs): - super(RetrieveMetadataTypes, self)._init_options(kwargs) + super(DescribeMetadataTypes, self)._init_options(kwargs) if "api_version" not in self.options: self.options[ "api_version" @@ -24,8 +23,5 @@ def _get_api(self): def _run_task(self): api_object = self._get_api() - - while api_object.status == "Pending": - time.sleep(1) - - self.logger.info("Metadata Types supported by org:\n" + str(api_object())) + metadata_list=api_object() + self.logger.info("Metadata Types supported by org:\n" + str(metadata_list)) diff --git a/cumulusci/tasks/salesforce/__init__.py b/cumulusci/tasks/salesforce/__init__.py index 41756fca2b..670c556600 100644 --- a/cumulusci/tasks/salesforce/__init__.py +++ b/cumulusci/tasks/salesforce/__init__.py @@ -30,7 +30,7 @@ "PublishCommunity": "cumulusci.tasks.salesforce.PublishCommunity", "RetrievePackaged": "cumulusci.tasks.salesforce.RetrievePackaged", "RetrieveReportsAndDashboards": "cumulusci.tasks.salesforce.RetrieveReportsAndDashboards", - "RetrieveMetadataTypes": "cumulusci.tasks.salesforce.RetrieveMetadataTypes", + "DescribeMetadataTypes": "cumulusci.tasks.salesforce.DescribeMetadataTypes", "RetrieveUnpackaged": "cumulusci.tasks.salesforce.RetrieveUnpackaged", "SOQLQuery": "cumulusci.tasks.salesforce.SOQLQuery", "SetTDTMHandlerStatus": "cumulusci.tasks.salesforce.trigger_handlers", diff --git a/cumulusci/tasks/salesforce/tests/test_retrievemetadatatypes.py b/cumulusci/tasks/salesforce/tests/test_describemetadatatypes.py similarity index 61% rename from cumulusci/tasks/salesforce/tests/test_retrievemetadatatypes.py rename to cumulusci/tasks/salesforce/tests/test_describemetadatatypes.py index 07345aa2ca..0d3c86b25c 100644 --- a/cumulusci/tasks/salesforce/tests/test_retrievemetadatatypes.py +++ b/cumulusci/tasks/salesforce/tests/test_describemetadatatypes.py @@ -1,18 +1,18 @@ from unittest import mock -from cumulusci.tasks.salesforce import RetrieveMetadataTypes +from cumulusci.tasks.salesforce import DescribeMetadataTypes from .util import create_task class TestRetrieveMetadataTypes: def test_run_task(self): - task = create_task(RetrieveMetadataTypes) + task = create_task(DescribeMetadataTypes) task._get_api = mock.Mock() task() task._get_api.assert_called_once() def test_run_task_with_apiversion(self): - task = create_task(RetrieveMetadataTypes, {"api_version": 8.0}) + task = create_task(DescribeMetadataTypes, {"api_version": 8.0}) assert task.options.get("api_version") == 8.0 - task._get_api() + task._get_api() \ No newline at end of file From d6a0a82a50c2e15eadb38e8840999aba1e27ecbd Mon Sep 17 00:00:00 2001 From: lakshmi2506 Date: Mon, 9 Oct 2023 18:08:18 +0530 Subject: [PATCH 11/11] clean-up --- cumulusci/salesforce_api/metadata.py | 4 +++- cumulusci/tasks/salesforce/DescribeMetadataTypes.py | 3 +-- .../tasks/salesforce/tests/test_describemetadatatypes.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cumulusci/salesforce_api/metadata.py b/cumulusci/salesforce_api/metadata.py index 7c40bbcd63..8ef8c013bc 100644 --- a/cumulusci/salesforce_api/metadata.py +++ b/cumulusci/salesforce_api/metadata.py @@ -702,7 +702,9 @@ def _build_envelope_start(self): def _process_response(self, response): self.metadata_types = [] - metaobjects = parseString(response.content).getElementsByTagName("metadataObjects") + metaobjects = parseString(response.content).getElementsByTagName( + "metadataObjects" + ) for metadataobject in metaobjects: self.metadata_types.append( diff --git a/cumulusci/tasks/salesforce/DescribeMetadataTypes.py b/cumulusci/tasks/salesforce/DescribeMetadataTypes.py index e92bd98b2c..49c605c37d 100644 --- a/cumulusci/tasks/salesforce/DescribeMetadataTypes.py +++ b/cumulusci/tasks/salesforce/DescribeMetadataTypes.py @@ -1,4 +1,3 @@ - from cumulusci.salesforce_api.metadata import ApiListMetadataTypes from cumulusci.tasks.salesforce import BaseRetrieveMetadata @@ -23,5 +22,5 @@ def _get_api(self): def _run_task(self): api_object = self._get_api() - metadata_list=api_object() + metadata_list = api_object() self.logger.info("Metadata Types supported by org:\n" + str(metadata_list)) diff --git a/cumulusci/tasks/salesforce/tests/test_describemetadatatypes.py b/cumulusci/tasks/salesforce/tests/test_describemetadatatypes.py index 0d3c86b25c..9715786b39 100644 --- a/cumulusci/tasks/salesforce/tests/test_describemetadatatypes.py +++ b/cumulusci/tasks/salesforce/tests/test_describemetadatatypes.py @@ -15,4 +15,4 @@ def test_run_task(self): def test_run_task_with_apiversion(self): task = create_task(DescribeMetadataTypes, {"api_version": 8.0}) assert task.options.get("api_version") == 8.0 - task._get_api() \ No newline at end of file + task._get_api()