Skip to content

Chore/clean #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions .github/actions/setup-python-env/action.yml

This file was deleted.

19 changes: 10 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,12 @@ on:
secrets:
token:
required: true
inputs:
folder_path:
description: 'The folder path to run actions in'
required: true
type: string

jobs:
build:
name: Build and publish
if: github.ref == 'refs/heads/main'
runs-on: "ubuntu-24.04"
defaults:
run:
working-directory: ${{ inputs.folder_path }}


steps:
- uses: actions/checkout@v4
Expand All @@ -39,7 +30,17 @@ jobs:
run: |
uv build

- name: Check if version in pyproject.toml was modified
id: check_version
run: |
if git diff --name-only ${{ github.sha }} ${{ github.event.before }} | grep -q 'pyproject.toml'; then
echo "modified=true" >> $GITHUB_OUTPUT
else
echo "modified=false" >> $GITHUB_OUTPUT
fi

- name: "Publish"
if: ${{ steps.check_version.outputs.modified }} == 'true'
run: |
uv publish
env:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: CD

on:
workflow_dispatch: {}
push:
branches:
- main

jobs:
build:
uses: ./.github/workflows/build.yml
secrets:
token: ${{ secrets.PYPI_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Core CI

on:
workflow_dispatch: {}
push:
branches:
- main
paths:
- "src/uipath_sdk/**"
pull_request:
branches:
- main
paths:
- "src/uipath_sdk/**"

jobs:
lint:
uses: ./.github/workflows/lint.yml

test:
uses: ./.github/workflows/test.yml
37 changes: 0 additions & 37 deletions .github/workflows/core_ci.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/langchain_ci.yml

This file was deleted.

7 changes: 0 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ name: Reusable Lint Workflow
on:
workflow_call:
inputs:
folder_path:
description: 'The folder path to run actions in'
required: true
type: string
should_skip:
description: 'Whether to skip the linting step'
required: false
Expand All @@ -18,9 +14,6 @@ jobs:
name: Lint
runs-on: "ubuntu-24.04"
if: inputs.should_skip == false
defaults:
run:
working-directory: ${{ inputs.folder_path }}


steps:
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/rest_ci.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
name: Core CI
name: Dumb CI

on:
workflow_dispatch: {}
push:
branches:
- main
paths-ignore:
- "sdk/**"
- "src/**"
pull_request:
branches:
- main
paths-ignore:
- "sdk/**"
- "src/**"

jobs:
lint:
uses: ./.github/workflows/lint.yml
with:
should_skip: true
folder_path: "."

test:
uses: ./.github/workflows/test.yml
with:
should_skip: true
folder_path: "."
should_skip: true
8 changes: 0 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ name: Reusable Test Workflow
on:
workflow_call:
inputs:

folder_path:
description: 'The folder path to run actions in'
required: true
type: string
should_skip:
description: 'Whether to skip the linting step'
required: false
Expand All @@ -19,9 +14,6 @@ jobs:
name: Test
runs-on: "ubuntu-24.04"
if: inputs.should_skip == false
defaults:
run:
working-directory: ${{ inputs.folder_path }}

steps:
- uses: actions/checkout@v4
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ See `just --list` for linting, formatting and build commands.
### Use SDK Locally
1. Create a folder on your own device `mkdir project; cd project`
2. Initialize the python project `uv` `uv init . --python 3.9`
3. Obtain the project path `PATH_TO_SDK=/Users/YOU_USER/platform-sdk/sdk/core`
3. Obtain the project path `PATH_TO_SDK=/Users/YOU_USER/uipath-python`
4. Install the sdk in editable mode `uv add --editable ${PATH_TO_SDK}`

:information_source: Instead of cloning the project into `.venv/lib/python3.9/site-packages/uipath_sdk`, this mode creates a file named `_uipath_sdk.pth` inside `.venv/lib/python3.9/site-packages`. This file contains the value of `PATH_TO_SDK`, which is added to `sys.path`—the list of directories where python searches for packages. (Run `python -c 'import sys; print(sys.path)'` to see the entries.)
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,3 @@ To properly use the CLI for packaging and publishing, your project should includ
- A `uipath.json` file (generated by `uipath init`)
- Any Python files needed for your automation

## Development

### Setting Up a Development Environment

Please read our [contribution guidelines](CONTRIBUTING.md) before submitting a pull request.

File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions sdk/core/pyproject.toml → pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "uipath-sdk"
version = "0.0.112"
version = "0.0.113"
description = "UiPath SDK"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.9"
Expand Down Expand Up @@ -41,10 +41,10 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["uipath_sdk"]
packages = ["src/uipath_sdk"]

[tool.hatch.build.targets.sdist]
packages = ["uipath_sdk"]
packages = ["src/uipath_sdk"]

[dependency-groups]
dev = [
Expand Down
4 changes: 0 additions & 4 deletions samples/company-research-agent/.env.example

This file was deleted.

23 changes: 0 additions & 23 deletions samples/company-research-agent/agent.mermaid

This file was deleted.

74 changes: 0 additions & 74 deletions samples/company-research-agent/graph.py

This file was deleted.

Loading
Loading