uipath 2.0.21__tar.gz → 2.0.22__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of uipath might be problematic. Click here for more details.
- uipath-2.0.22/.github/workflows/publish-dev.yml +109 -0
- {uipath-2.0.21 → uipath-2.0.22}/PKG-INFO +1 -1
- {uipath-2.0.21 → uipath-2.0.22}/pyproject.toml +4 -1
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/__init__.py +10 -1
- {uipath-2.0.21 → uipath-2.0.22}/uv.lock +1509 -1509
- {uipath-2.0.21 → uipath-2.0.22}/.cursorrules +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/.editorconfig +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/.gitattributes +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/.github/workflows/build.yml +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/.github/workflows/cd.yml +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/.github/workflows/ci.yml +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/.github/workflows/commitlint.yml +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/.github/workflows/lint.yml +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/.github/workflows/test.yml +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/.gitignore +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/.pre-commit-config.yaml +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/.python-version +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/.vscode/extensions.json +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/.vscode/settings.json +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/CONTRIBUTING.md +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/LICENSE +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/README.md +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/docs/CONTRIBUTING.md +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/docs/actions.md +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/docs/assets/uipath-logo.svg +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/docs/assets.md +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/docs/buckets.md +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/docs/connections.md +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/docs/context_grounding.md +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/docs/getting_started_agent.md +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/docs/getting_started_cli.md +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/docs/getting_started_sdk.md +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/docs/index.md +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/docs/jobs.md +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/docs/processes.md +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/docs/queues.md +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/docs/sdk.md +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/justfile +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/mkdocs.yml +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/py.typed +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/__init__.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/README.md +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_auth/_auth_server.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_auth/_models.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_auth/_oidc_utils.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_auth/_portal_service.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_auth/_utils.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_auth/auth_config.json +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_auth/index.html +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_auth/localhost.crt +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_auth/localhost.key +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_runtime/_contracts.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_runtime/_logging.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_runtime/_runtime.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_templates/.psmdcp.template +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_templates/.rels.template +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_templates/[Content_Types].xml.template +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_templates/main.py.template +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_templates/package.nuspec.template +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_utils/_common.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_utils/_folders.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_utils/_input_args.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_utils/_parse_ast.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/_utils/_processes.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/cli_auth.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/cli_deploy.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/cli_init.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/cli_invoke.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/cli_new.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/cli_pack.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/cli_publish.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/cli_run.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/middlewares.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_cli/spinner.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_config.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_execution_context.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_folder_context.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_services/__init__.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_services/_base_service.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_services/actions_service.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_services/api_client.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_services/assets_service.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_services/buckets_service.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_services/connections_service.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_services/connections_service.pyi +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_services/context_grounding_service.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_services/folder_service.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_services/jobs_service.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_services/llm_gateway_service.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_services/processes_service.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_services/queues_service.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_uipath.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_utils/__init__.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_utils/_endpoint.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_utils/_infer_bindings.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_utils/_logs.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_utils/_request_override.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_utils/_request_spec.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_utils/_user_agent.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/_utils/constants.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/models/__init__.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/models/action_schema.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/models/actions.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/models/assets.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/models/connections.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/models/context_grounding.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/models/context_grounding_index.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/models/exceptions.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/models/interrupt_models.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/models/job.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/models/llm_gateway.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/models/processes.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/models/queues.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/py.typed +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/tracing/__init__.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/tracing/_otel_exporters.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/tracing/_traced.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/src/uipath/tracing/_utils.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/tests/__init__.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/tests/cli/test_init.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/tests/conftest.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/tests/sdk/services/test_llm_integration.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/tests/sdk/services/test_llm_service.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/tests/sdk/services/test_uipath_llm_integration.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/tests/sdk/test_config.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/tests/tracing/test_otel_exporters.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/tests/tracing/test_span_utils.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/tests/tracing/test_traced.py +0 -0
- {uipath-2.0.21 → uipath-2.0.22}/tests/tracing/test_tracing_manager.py +0 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
name: Publish Dev Build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [opened, synchronize, reopened, labeled]
|
|
6
|
+
secrets:
|
|
7
|
+
PYPI_TOKEN:
|
|
8
|
+
required: true
|
|
9
|
+
TESTPYPI_TOKEN:
|
|
10
|
+
required: true
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
publish-dev:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
|
|
17
|
+
# Only run if PR has the build:dev label
|
|
18
|
+
if: contains(github.event.pull_request.labels.*.name, 'build:dev')
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
|
|
23
|
+
- uses: astral-sh/setup-uv@v5
|
|
24
|
+
|
|
25
|
+
- uses: actions/setup-python@v5
|
|
26
|
+
with:
|
|
27
|
+
python-version-file: ".python-version"
|
|
28
|
+
|
|
29
|
+
- name: Setup venv
|
|
30
|
+
run: |
|
|
31
|
+
uv venv
|
|
32
|
+
uv sync --all-extras
|
|
33
|
+
|
|
34
|
+
- name: Set development version
|
|
35
|
+
shell: pwsh
|
|
36
|
+
env:
|
|
37
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
38
|
+
run: |
|
|
39
|
+
$pyprojcontent = Get-Content pyproject.toml -Raw
|
|
40
|
+
|
|
41
|
+
$PROJECT_NAME = ($pyprojcontent | Select-String -Pattern '(?m)^\[(project|tool\.poetry)\][^\[]*?name\s*=\s*"([^"]*)"' -AllMatches).Matches[0].Groups[2].Value
|
|
42
|
+
$CURRENT_VERSION = ($pyprojcontent | Select-String -Pattern '(?m)^\[(project|tool\.poetry)\][^\[]*?version\s*=\s*"([^"]*)"' -AllMatches).Matches[0].Groups[2].Value
|
|
43
|
+
$NIGHTLY_NAME = "$PROJECT_NAME-nightly"
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# Get PR number and run number with proper padding
|
|
47
|
+
$PR_NUM = [int]"${{ github.event.pull_request.number }}"
|
|
48
|
+
$PADDED_PR = "{0:D5}" -f [int]"${{ github.event.pull_request.number }}"
|
|
49
|
+
$PADDED_RUN = "{0:D4}" -f [int]"${{ github.run_number }}"
|
|
50
|
+
$PADDED_NEXT_PR = "{0:D5}" -f ($PR_NUM + 1)
|
|
51
|
+
|
|
52
|
+
# Create version range strings for PR
|
|
53
|
+
$MIN_VERSION = "$CURRENT_VERSION.dev1$PADDED_PR" + "0000"
|
|
54
|
+
$MAX_VERSION = "$CURRENT_VERSION.dev1$PADDED_NEXT_PR" + "0000"
|
|
55
|
+
|
|
56
|
+
# Create unique dev version with PR number and run ID
|
|
57
|
+
$DEV_VERSION = "$CURRENT_VERSION.dev1$PADDED_PR$PADDED_RUN"
|
|
58
|
+
|
|
59
|
+
# Update version in pyproject.toml
|
|
60
|
+
(Get-Content pyproject.toml) -replace "version = `"$CURRENT_VERSION`"", "version = `"$DEV_VERSION`"" | Set-Content pyproject.toml
|
|
61
|
+
|
|
62
|
+
# Update project name in pyproject.toml
|
|
63
|
+
(Get-Content pyproject.toml) -replace "name = `"$PROJECT_NAME`"", "name = `"$NIGHTLY_NAME`"" | Set-Content pyproject.toml
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
Write-Output "Package version set to $DEV_VERSION"
|
|
67
|
+
|
|
68
|
+
$dependencyMessage = @"
|
|
69
|
+
- Add this package as a dependency in your pyproject.toml:
|
|
70
|
+
|
|
71
|
+
``````toml
|
|
72
|
+
[project]
|
|
73
|
+
dependencies = [
|
|
74
|
+
# Exact version:
|
|
75
|
+
"$NIGHTLY_NAME==$DEV_VERSION",
|
|
76
|
+
|
|
77
|
+
# Any version from PR
|
|
78
|
+
"$NIGHTLY_NAME>=$MIN_VERSION,<$MAX_VERSION"
|
|
79
|
+
]
|
|
80
|
+
``````
|
|
81
|
+
"@
|
|
82
|
+
Write-Output $dependencyMessage
|
|
83
|
+
|
|
84
|
+
# Post comment to GitHub PR
|
|
85
|
+
$owner = "${{ github.repository_owner }}"
|
|
86
|
+
$repo = "${{ github.repository }}".Split('/')[1]
|
|
87
|
+
$issueNumber = $PR_NUM
|
|
88
|
+
|
|
89
|
+
$body = @{
|
|
90
|
+
body = $dependencyMessage
|
|
91
|
+
} | ConvertTo-Json
|
|
92
|
+
|
|
93
|
+
# Create the comment using GitHub REST API
|
|
94
|
+
$uri = "https://api.github.com/repos/$owner/$repo/issues/$issueNumber/comments"
|
|
95
|
+
$headers = @{
|
|
96
|
+
Authorization = "token $env:GITHUB_TOKEN"
|
|
97
|
+
Accept = "application/vnd.github.v3+json"
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
Invoke-RestMethod -Uri $uri -Method Post -Body $body -Headers $headers -ContentType "application/json"
|
|
101
|
+
|
|
102
|
+
- name: Build package
|
|
103
|
+
run: uv build
|
|
104
|
+
|
|
105
|
+
- name: Publish
|
|
106
|
+
run: |
|
|
107
|
+
uv publish
|
|
108
|
+
env:
|
|
109
|
+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: uipath
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.22
|
|
4
4
|
Summary: Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools.
|
|
5
5
|
Project-URL: Homepage, https://uipath.com
|
|
6
6
|
Project-URL: Repository, https://github.com/UiPath/uipath-python
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "uipath"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.22"
|
|
4
4
|
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
|
|
5
5
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -61,6 +61,9 @@ dev = [
|
|
|
61
61
|
[project.optional-dependencies]
|
|
62
62
|
langchain = ["uipath-langchain>=0.0.88,<0.1.0"]
|
|
63
63
|
|
|
64
|
+
[tool.hatch.build.targets.wheel]
|
|
65
|
+
packages = ["src/uipath"]
|
|
66
|
+
|
|
64
67
|
[tool.ruff]
|
|
65
68
|
line-length = 88
|
|
66
69
|
indent-width = 4
|
|
@@ -13,9 +13,18 @@ from .cli_publish import publish as publish # type: ignore
|
|
|
13
13
|
from .cli_run import run as run # type: ignore
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
def _get_safe_version() -> str:
|
|
17
|
+
"""Get the version of the uipath package."""
|
|
18
|
+
try:
|
|
19
|
+
version = importlib.metadata.version("uipath")
|
|
20
|
+
return version
|
|
21
|
+
except importlib.metadata.PackageNotFoundError:
|
|
22
|
+
return "unknown"
|
|
23
|
+
|
|
24
|
+
|
|
16
25
|
@click.group(invoke_without_command=True)
|
|
17
26
|
@click.version_option(
|
|
18
|
-
|
|
27
|
+
_get_safe_version(),
|
|
19
28
|
prog_name="uipath",
|
|
20
29
|
message="%(prog)s version %(version)s",
|
|
21
30
|
)
|