dolphin-desktop 0.1.0__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.
- dolphin_desktop-0.1.0/.github/workflows/ci.yml +92 -0
- dolphin_desktop-0.1.0/.github/workflows/docs.yml +78 -0
- dolphin_desktop-0.1.0/.github/workflows/release.yml +183 -0
- dolphin_desktop-0.1.0/.gitignore +42 -0
- dolphin_desktop-0.1.0/.pre-commit-config.yaml +17 -0
- dolphin_desktop-0.1.0/CODE_OF_CONDUCT.md +27 -0
- dolphin_desktop-0.1.0/CONTRIBUTING.md +70 -0
- dolphin_desktop-0.1.0/LICENSE +163 -0
- dolphin_desktop-0.1.0/PKG-INFO +293 -0
- dolphin_desktop-0.1.0/README.md +77 -0
- dolphin_desktop-0.1.0/SECURITY.md +23 -0
- dolphin_desktop-0.1.0/docs/architecture.md +100 -0
- dolphin_desktop-0.1.0/docs/ci/github-actions.md +89 -0
- dolphin_desktop-0.1.0/docs/ci/index.md +54 -0
- dolphin_desktop-0.1.0/docs/ci/jenkins.md +62 -0
- dolphin_desktop-0.1.0/docs/ci/teamcity.md +68 -0
- dolphin_desktop-0.1.0/docs/core-concepts.md +86 -0
- dolphin_desktop-0.1.0/docs/faq.md +102 -0
- dolphin_desktop-0.1.0/docs/guides/cef-legacy.md +84 -0
- dolphin_desktop-0.1.0/docs/guides/electron.md +71 -0
- dolphin_desktop-0.1.0/docs/guides/image-based.md +85 -0
- dolphin_desktop-0.1.0/docs/guides/index.md +17 -0
- dolphin_desktop-0.1.0/docs/guides/java.md +61 -0
- dolphin_desktop-0.1.0/docs/guides/native.md +88 -0
- dolphin_desktop-0.1.0/docs/guides/office.md +77 -0
- dolphin_desktop-0.1.0/docs/guides/webview2.md +56 -0
- dolphin_desktop-0.1.0/docs/image-based.md +9 -0
- dolphin_desktop-0.1.0/docs/index.md +47 -0
- dolphin_desktop-0.1.0/docs/installation.md +112 -0
- dolphin_desktop-0.1.0/docs/quickstart.md +112 -0
- dolphin_desktop-0.1.0/docs/reference/application.md +44 -0
- dolphin_desktop-0.1.0/docs/reference/cli.md +158 -0
- dolphin_desktop-0.1.0/docs/reference/clipboard.md +33 -0
- dolphin_desktop-0.1.0/docs/reference/desktop.md +63 -0
- dolphin_desktop-0.1.0/docs/reference/dialogs.md +57 -0
- dolphin_desktop-0.1.0/docs/reference/exceptions.md +56 -0
- dolphin_desktop-0.1.0/docs/reference/image.md +69 -0
- dolphin_desktop-0.1.0/docs/reference/index.md +80 -0
- dolphin_desktop-0.1.0/docs/reference/java.md +41 -0
- dolphin_desktop-0.1.0/docs/reference/keyboard.md +34 -0
- dolphin_desktop-0.1.0/docs/reference/locator.md +106 -0
- dolphin_desktop-0.1.0/docs/reference/mouse.md +26 -0
- dolphin_desktop-0.1.0/docs/reference/office.md +68 -0
- dolphin_desktop-0.1.0/docs/reference/pytest-plugin.md +124 -0
- dolphin_desktop-0.1.0/docs/reference/window.md +52 -0
- dolphin_desktop-0.1.0/docs/tutorials/fallback-selectors.md +116 -0
- dolphin_desktop-0.1.0/docs/tutorials/first-test.md +135 -0
- dolphin_desktop-0.1.0/docs/tutorials/headless-mode.md +91 -0
- dolphin_desktop-0.1.0/docs/tutorials/index.md +15 -0
- dolphin_desktop-0.1.0/docs/tutorials/page-objects.md +87 -0
- dolphin_desktop-0.1.0/docs/tutorials/tracing.md +82 -0
- dolphin_desktop-0.1.0/examples/README.md +25 -0
- dolphin_desktop-0.1.0/examples/image_based/test_image_based.py +95 -0
- dolphin_desktop-0.1.0/examples/java_swing/test_java_swing.py +61 -0
- dolphin_desktop-0.1.0/examples/legacy_ie/IESampleApp/IESampleApp.csproj +11 -0
- dolphin_desktop-0.1.0/examples/legacy_ie/IESampleApp/MainWindow.xaml +41 -0
- dolphin_desktop-0.1.0/examples/legacy_ie/IESampleApp/MainWindow.xaml.cs +80 -0
- dolphin_desktop-0.1.0/examples/legacy_ie/build.ps1 +12 -0
- dolphin_desktop-0.1.0/examples/legacy_ie/conftest.py +47 -0
- dolphin_desktop-0.1.0/examples/legacy_ie/test_ie_webhost.py +231 -0
- dolphin_desktop-0.1.0/examples/notepad/test_notepad.py +94 -0
- dolphin_desktop-0.1.0/examples/object_repository.py +62 -0
- dolphin_desktop-0.1.0/examples/objects/login.yaml +18 -0
- dolphin_desktop-0.1.0/examples/office/test_office.py +128 -0
- dolphin_desktop-0.1.0/examples/webview2_sample/WebView2LoginSample/MainWindow.xaml +28 -0
- dolphin_desktop-0.1.0/examples/webview2_sample/WebView2LoginSample/MainWindow.xaml.cs +31 -0
- dolphin_desktop-0.1.0/examples/webview2_sample/WebView2LoginSample/WebView2LoginSample.csproj +19 -0
- dolphin_desktop-0.1.0/examples/webview2_sample/WebView2LoginSample/login.html +64 -0
- dolphin_desktop-0.1.0/examples/webview2_sample/build.ps1 +12 -0
- dolphin_desktop-0.1.0/examples/webview2_sample/conftest.py +47 -0
- dolphin_desktop-0.1.0/examples/webview2_sample/test_webview2_login.py +121 -0
- dolphin_desktop-0.1.0/examples/wpf/test_wpf.py +65 -0
- dolphin_desktop-0.1.0/mkdocs.yml +123 -0
- dolphin_desktop-0.1.0/pyproject.toml +171 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/__init__.py +125 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_application.py +379 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_backend.py +534 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_cli.py +915 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_clipboard.py +84 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_config.py +98 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_crash.py +105 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_desktop.py +324 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_dialogs.py +261 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_element.py +326 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_exceptions.py +22 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_image.py +462 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_java.py +819 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_keyboard.py +41 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_locator.py +808 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_logging.py +61 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_mouse.py +45 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_office.py +271 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_recorder.py +688 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_runner.py +298 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_selfheal.py +73 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_spy.py +935 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_telemetry.py +72 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_trace.py +460 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_types.py +6 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_video.py +175 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/_window.py +449 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/objects.py +306 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/py.typed +0 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/pytest_plugin.py +772 -0
- dolphin_desktop-0.1.0/src/dolphin_desktop/spy.py +18 -0
- dolphin_desktop-0.1.0/tests/__init__.py +0 -0
- dolphin_desktop-0.1.0/tests/conftest.py +10 -0
- dolphin_desktop-0.1.0/tests/test_auto_wait.py +294 -0
- dolphin_desktop-0.1.0/tests/test_backend.py +618 -0
- dolphin_desktop-0.1.0/tests/test_cli_init.py +196 -0
- dolphin_desktop-0.1.0/tests/test_image_locator.py +354 -0
- dolphin_desktop-0.1.0/tests/test_imports.py +35 -0
- dolphin_desktop-0.1.0/tests/test_objects.py +508 -0
- dolphin_desktop-0.1.0/tests/test_stability.py +400 -0
- dolphin_desktop-0.1.0/uv.lock +1951 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [master]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [master]
|
|
8
|
+
|
|
9
|
+
env:
|
|
10
|
+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
test:
|
|
14
|
+
name: "Python ${{ matrix.python-version }} / Windows"
|
|
15
|
+
runs-on: windows-latest
|
|
16
|
+
strategy:
|
|
17
|
+
fail-fast: false
|
|
18
|
+
matrix:
|
|
19
|
+
python-version: ["3.11", "3.12", "3.13"]
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v5
|
|
23
|
+
|
|
24
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
25
|
+
uses: actions/setup-python@v6
|
|
26
|
+
with:
|
|
27
|
+
python-version: ${{ matrix.python-version }}
|
|
28
|
+
|
|
29
|
+
- name: Install uv
|
|
30
|
+
uses: astral-sh/setup-uv@v8.1.0
|
|
31
|
+
with:
|
|
32
|
+
enable-cache: true
|
|
33
|
+
|
|
34
|
+
- name: Install dependencies
|
|
35
|
+
run: uv sync --group dev
|
|
36
|
+
|
|
37
|
+
- name: Lint
|
|
38
|
+
run: uv run ruff check .
|
|
39
|
+
|
|
40
|
+
- name: Format check
|
|
41
|
+
run: uv run ruff format --check .
|
|
42
|
+
|
|
43
|
+
- name: Type check
|
|
44
|
+
run: uv run mypy src/
|
|
45
|
+
|
|
46
|
+
- name: Unit and smoke tests
|
|
47
|
+
run: >
|
|
48
|
+
uv run pytest
|
|
49
|
+
-m "not integration"
|
|
50
|
+
--cov=dolphin_desktop
|
|
51
|
+
--cov-report=xml
|
|
52
|
+
--cov-report=term-missing
|
|
53
|
+
-q
|
|
54
|
+
|
|
55
|
+
- name: Upload coverage
|
|
56
|
+
uses: codecov/codecov-action@v6
|
|
57
|
+
if: always()
|
|
58
|
+
with:
|
|
59
|
+
files: coverage.xml
|
|
60
|
+
flags: windows-py${{ matrix.python-version }}
|
|
61
|
+
fail_ci_if_error: false
|
|
62
|
+
|
|
63
|
+
package:
|
|
64
|
+
name: Build package
|
|
65
|
+
runs-on: windows-latest
|
|
66
|
+
needs: test
|
|
67
|
+
|
|
68
|
+
steps:
|
|
69
|
+
- uses: actions/checkout@v5
|
|
70
|
+
|
|
71
|
+
- name: Set up Python
|
|
72
|
+
uses: actions/setup-python@v6
|
|
73
|
+
with:
|
|
74
|
+
python-version: "3.13"
|
|
75
|
+
|
|
76
|
+
- name: Install uv
|
|
77
|
+
uses: astral-sh/setup-uv@v8.1.0
|
|
78
|
+
with:
|
|
79
|
+
enable-cache: true
|
|
80
|
+
|
|
81
|
+
- name: Build wheel and sdist
|
|
82
|
+
run: uv run --with build python -m build
|
|
83
|
+
|
|
84
|
+
- name: Check distribution metadata
|
|
85
|
+
run: uv run --with twine twine check dist/*
|
|
86
|
+
|
|
87
|
+
- name: Upload package artifacts
|
|
88
|
+
uses: actions/upload-artifact@v4
|
|
89
|
+
with:
|
|
90
|
+
name: dolphin-desktop-dist
|
|
91
|
+
path: dist/
|
|
92
|
+
if-no-files-found: error
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
name: Docs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [master]
|
|
6
|
+
paths:
|
|
7
|
+
- "docs/**"
|
|
8
|
+
- "mkdocs.yml"
|
|
9
|
+
- "src/dolphin_desktop/**"
|
|
10
|
+
pull_request:
|
|
11
|
+
paths:
|
|
12
|
+
- "docs/**"
|
|
13
|
+
- "mkdocs.yml"
|
|
14
|
+
- "src/dolphin_desktop/**"
|
|
15
|
+
|
|
16
|
+
permissions:
|
|
17
|
+
contents: write
|
|
18
|
+
|
|
19
|
+
env:
|
|
20
|
+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
|
21
|
+
NO_MKDOCS_2_WARNING: 1
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
build:
|
|
25
|
+
name: Build docs
|
|
26
|
+
runs-on: windows-latest
|
|
27
|
+
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v5
|
|
30
|
+
with:
|
|
31
|
+
fetch-depth: 0 # needed for mike versioning
|
|
32
|
+
|
|
33
|
+
- uses: actions/setup-python@v6
|
|
34
|
+
with:
|
|
35
|
+
python-version: "3.11"
|
|
36
|
+
cache: pip
|
|
37
|
+
|
|
38
|
+
- name: Install docs dependencies
|
|
39
|
+
run: pip install -e ".[docs]"
|
|
40
|
+
|
|
41
|
+
- name: Build MkDocs
|
|
42
|
+
run: mkdocs build --strict
|
|
43
|
+
|
|
44
|
+
- name: Upload build artifact
|
|
45
|
+
uses: actions/upload-artifact@v4
|
|
46
|
+
with:
|
|
47
|
+
name: docs-site
|
|
48
|
+
path: site/
|
|
49
|
+
retention-days: 7
|
|
50
|
+
|
|
51
|
+
deploy:
|
|
52
|
+
name: Deploy to GitHub Pages
|
|
53
|
+
runs-on: windows-latest
|
|
54
|
+
needs: build
|
|
55
|
+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
|
56
|
+
|
|
57
|
+
steps:
|
|
58
|
+
- uses: actions/checkout@v5
|
|
59
|
+
with:
|
|
60
|
+
fetch-depth: 0
|
|
61
|
+
|
|
62
|
+
- uses: actions/setup-python@v6
|
|
63
|
+
with:
|
|
64
|
+
python-version: "3.11"
|
|
65
|
+
cache: pip
|
|
66
|
+
|
|
67
|
+
- name: Install docs dependencies
|
|
68
|
+
run: pip install -e ".[docs]"
|
|
69
|
+
|
|
70
|
+
- name: Configure git
|
|
71
|
+
run: |
|
|
72
|
+
git config user.name "github-actions[bot]"
|
|
73
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
74
|
+
|
|
75
|
+
- name: Deploy with mike
|
|
76
|
+
run: |
|
|
77
|
+
mike deploy --push --update-aliases latest
|
|
78
|
+
mike set-default --push latest
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
target:
|
|
7
|
+
description: Publish target
|
|
8
|
+
required: true
|
|
9
|
+
type: choice
|
|
10
|
+
options:
|
|
11
|
+
- testpypi
|
|
12
|
+
- pypi
|
|
13
|
+
default: testpypi
|
|
14
|
+
push:
|
|
15
|
+
tags:
|
|
16
|
+
- "v*.*.*"
|
|
17
|
+
|
|
18
|
+
permissions:
|
|
19
|
+
contents: read
|
|
20
|
+
id-token: write
|
|
21
|
+
|
|
22
|
+
jobs:
|
|
23
|
+
build:
|
|
24
|
+
name: Build distributions
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
outputs:
|
|
27
|
+
version: ${{ steps.meta.outputs.version }}
|
|
28
|
+
target: ${{ steps.meta.outputs.target }}
|
|
29
|
+
|
|
30
|
+
steps:
|
|
31
|
+
- uses: actions/checkout@v5
|
|
32
|
+
|
|
33
|
+
- name: Set up Python
|
|
34
|
+
uses: actions/setup-python@v6
|
|
35
|
+
with:
|
|
36
|
+
python-version: "3.13"
|
|
37
|
+
|
|
38
|
+
- name: Install build tools
|
|
39
|
+
run: python -m pip install --upgrade build twine
|
|
40
|
+
|
|
41
|
+
- name: Validate release target
|
|
42
|
+
id: meta
|
|
43
|
+
env:
|
|
44
|
+
EVENT_NAME: ${{ github.event_name }}
|
|
45
|
+
REF_NAME: ${{ github.ref_name }}
|
|
46
|
+
DISPATCH_TARGET: ${{ inputs.target }}
|
|
47
|
+
run: |
|
|
48
|
+
python - <<'PY'
|
|
49
|
+
import os
|
|
50
|
+
import pathlib
|
|
51
|
+
import re
|
|
52
|
+
import sys
|
|
53
|
+
|
|
54
|
+
text = pathlib.Path("pyproject.toml").read_text(encoding="utf-8")
|
|
55
|
+
version = re.search(r'^version = "([^"]+)"$', text, re.MULTILINE).group(1)
|
|
56
|
+
event_name = os.environ["EVENT_NAME"]
|
|
57
|
+
ref_name = os.environ["REF_NAME"]
|
|
58
|
+
|
|
59
|
+
if event_name == "push":
|
|
60
|
+
rc = re.fullmatch(r"v(\d+\.\d+\.\d+)-rc\.(\d+)", ref_name)
|
|
61
|
+
prod = re.fullmatch(r"v(\d+\.\d+\.\d+)", ref_name)
|
|
62
|
+
if rc:
|
|
63
|
+
expected_version = f"{rc.group(1)}rc{rc.group(2)}"
|
|
64
|
+
target = "testpypi"
|
|
65
|
+
elif prod:
|
|
66
|
+
expected_version = prod.group(1)
|
|
67
|
+
target = "pypi"
|
|
68
|
+
else:
|
|
69
|
+
print(f"Unsupported release tag: {ref_name}", file=sys.stderr)
|
|
70
|
+
sys.exit(1)
|
|
71
|
+
if version != expected_version:
|
|
72
|
+
print(
|
|
73
|
+
f"pyproject.toml version {version!r} does not match tag "
|
|
74
|
+
f"{ref_name!r} (expected {expected_version!r})",
|
|
75
|
+
file=sys.stderr,
|
|
76
|
+
)
|
|
77
|
+
sys.exit(1)
|
|
78
|
+
else:
|
|
79
|
+
target = os.environ["DISPATCH_TARGET"]
|
|
80
|
+
|
|
81
|
+
with open(os.environ["GITHUB_OUTPUT"], "a", encoding="utf-8") as fh:
|
|
82
|
+
fh.write(f"version={version}\n")
|
|
83
|
+
fh.write(f"target={target}\n")
|
|
84
|
+
PY
|
|
85
|
+
|
|
86
|
+
- name: Build wheel and sdist
|
|
87
|
+
run: python -m build
|
|
88
|
+
|
|
89
|
+
- name: Check distribution metadata
|
|
90
|
+
run: twine check dist/*
|
|
91
|
+
|
|
92
|
+
- name: Upload distributions
|
|
93
|
+
uses: actions/upload-artifact@v4
|
|
94
|
+
with:
|
|
95
|
+
name: dolphin-desktop-dist
|
|
96
|
+
path: dist/
|
|
97
|
+
if-no-files-found: error
|
|
98
|
+
|
|
99
|
+
publish-testpypi:
|
|
100
|
+
name: Publish to TestPyPI
|
|
101
|
+
runs-on: ubuntu-latest
|
|
102
|
+
needs: build
|
|
103
|
+
if: needs.build.outputs.target == 'testpypi'
|
|
104
|
+
environment: testpypi
|
|
105
|
+
|
|
106
|
+
steps:
|
|
107
|
+
- name: Download distributions
|
|
108
|
+
uses: actions/download-artifact@v4
|
|
109
|
+
with:
|
|
110
|
+
name: dolphin-desktop-dist
|
|
111
|
+
path: dist/
|
|
112
|
+
|
|
113
|
+
- name: Publish distributions
|
|
114
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
115
|
+
with:
|
|
116
|
+
repository-url: https://test.pypi.org/legacy/
|
|
117
|
+
packages-dir: dist/
|
|
118
|
+
skip-existing: true
|
|
119
|
+
|
|
120
|
+
publish-pypi:
|
|
121
|
+
name: Publish to PyPI
|
|
122
|
+
runs-on: ubuntu-latest
|
|
123
|
+
needs: build
|
|
124
|
+
if: needs.build.outputs.target == 'pypi'
|
|
125
|
+
environment: pypi
|
|
126
|
+
|
|
127
|
+
steps:
|
|
128
|
+
- name: Download distributions
|
|
129
|
+
uses: actions/download-artifact@v4
|
|
130
|
+
with:
|
|
131
|
+
name: dolphin-desktop-dist
|
|
132
|
+
path: dist/
|
|
133
|
+
|
|
134
|
+
- name: Publish distributions
|
|
135
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
136
|
+
with:
|
|
137
|
+
packages-dir: dist/
|
|
138
|
+
|
|
139
|
+
smoke-testpypi:
|
|
140
|
+
name: Smoke TestPyPI package
|
|
141
|
+
runs-on: windows-latest
|
|
142
|
+
needs: [build, publish-testpypi]
|
|
143
|
+
if: needs.build.outputs.target == 'testpypi'
|
|
144
|
+
|
|
145
|
+
steps:
|
|
146
|
+
- name: Set up Python
|
|
147
|
+
uses: actions/setup-python@v6
|
|
148
|
+
with:
|
|
149
|
+
python-version: "3.13"
|
|
150
|
+
|
|
151
|
+
- name: Install from TestPyPI
|
|
152
|
+
run: >
|
|
153
|
+
python -m pip install
|
|
154
|
+
--index-url https://test.pypi.org/simple/
|
|
155
|
+
--extra-index-url https://pypi.org/simple/
|
|
156
|
+
"dolphin-desktop==${{ needs.build.outputs.version }}"
|
|
157
|
+
|
|
158
|
+
- name: Import and CLI smoke
|
|
159
|
+
run: |
|
|
160
|
+
python -c "import dolphin_desktop; print(dolphin_desktop.__version__)"
|
|
161
|
+
dolphin --help
|
|
162
|
+
dolphin info backends
|
|
163
|
+
|
|
164
|
+
smoke-pypi:
|
|
165
|
+
name: Smoke PyPI package
|
|
166
|
+
runs-on: windows-latest
|
|
167
|
+
needs: [build, publish-pypi]
|
|
168
|
+
if: needs.build.outputs.target == 'pypi'
|
|
169
|
+
|
|
170
|
+
steps:
|
|
171
|
+
- name: Set up Python
|
|
172
|
+
uses: actions/setup-python@v6
|
|
173
|
+
with:
|
|
174
|
+
python-version: "3.13"
|
|
175
|
+
|
|
176
|
+
- name: Install from PyPI
|
|
177
|
+
run: python -m pip install "dolphin-desktop==${{ needs.build.outputs.version }}"
|
|
178
|
+
|
|
179
|
+
- name: Import and CLI smoke
|
|
180
|
+
run: |
|
|
181
|
+
python -c "import dolphin_desktop; print(dolphin_desktop.__version__)"
|
|
182
|
+
dolphin --help
|
|
183
|
+
dolphin info backends
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.pyo
|
|
5
|
+
.venv/
|
|
6
|
+
*.egg-info/
|
|
7
|
+
dist/
|
|
8
|
+
build/
|
|
9
|
+
.coverage
|
|
10
|
+
coverage.xml
|
|
11
|
+
htmlcov/
|
|
12
|
+
.mypy_cache/
|
|
13
|
+
.ruff_cache/
|
|
14
|
+
|
|
15
|
+
# Dolphin telemetry / generated artifacts
|
|
16
|
+
.dolphin-selfheal.jsonl
|
|
17
|
+
dolphin-screenshots/
|
|
18
|
+
dolphin-traces/
|
|
19
|
+
dolphin-videos/
|
|
20
|
+
dolphin-report.html
|
|
21
|
+
|
|
22
|
+
# MkDocs build output
|
|
23
|
+
site/
|
|
24
|
+
|
|
25
|
+
# .NET / demo app build output
|
|
26
|
+
bin/
|
|
27
|
+
obj/
|
|
28
|
+
|
|
29
|
+
# IDE / tools
|
|
30
|
+
.claude/
|
|
31
|
+
.idea/
|
|
32
|
+
.vscode/
|
|
33
|
+
*.iml
|
|
34
|
+
|
|
35
|
+
# pytest
|
|
36
|
+
.pytest_cache/
|
|
37
|
+
|
|
38
|
+
# Local scratch output
|
|
39
|
+
hs_err_pid*.log
|
|
40
|
+
test_out*.txt
|
|
41
|
+
Nowy folder*/
|
|
42
|
+
C?Users*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
3
|
+
rev: v0.15.12
|
|
4
|
+
hooks:
|
|
5
|
+
- id: ruff
|
|
6
|
+
args: [--fix]
|
|
7
|
+
- id: ruff-format
|
|
8
|
+
|
|
9
|
+
- repo: local
|
|
10
|
+
hooks:
|
|
11
|
+
- id: mypy
|
|
12
|
+
name: mypy
|
|
13
|
+
entry: uv run mypy
|
|
14
|
+
language: system
|
|
15
|
+
types: [python]
|
|
16
|
+
args: [src/]
|
|
17
|
+
pass_filenames: false
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We are committed to making participation in this project respectful,
|
|
6
|
+
professional, and harassment-free for everyone.
|
|
7
|
+
|
|
8
|
+
## Expected Behavior
|
|
9
|
+
|
|
10
|
+
- Use welcoming and inclusive language.
|
|
11
|
+
- Respect different viewpoints and experience levels.
|
|
12
|
+
- Give and accept constructive feedback gracefully.
|
|
13
|
+
- Focus disagreement on technical substance, not people.
|
|
14
|
+
|
|
15
|
+
## Unacceptable Behavior
|
|
16
|
+
|
|
17
|
+
- Harassment, insults, intimidation, or personal attacks.
|
|
18
|
+
- Sexualized language or imagery.
|
|
19
|
+
- Publishing private information without explicit permission.
|
|
20
|
+
- Sustained disruption of project discussions.
|
|
21
|
+
|
|
22
|
+
## Enforcement
|
|
23
|
+
|
|
24
|
+
Project maintainers may remove comments, close issues, block accounts, or take
|
|
25
|
+
other moderation action when behavior violates this code.
|
|
26
|
+
|
|
27
|
+
Report conduct concerns privately to kontakt@dolphinsoft.pl.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Contributing to Dolphin
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in contributing!
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
- Windows 10 / 11 or Windows Server 2022+
|
|
8
|
+
- Python 3.11-3.13
|
|
9
|
+
- [uv](https://docs.astral.sh/uv/) package manager
|
|
10
|
+
|
|
11
|
+
## Setup
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
git clone https://github.com/DolphinSoftEU/DolphinDesktop.git
|
|
15
|
+
cd DolphinDesktop
|
|
16
|
+
|
|
17
|
+
# install all dependencies including dev extras
|
|
18
|
+
uv sync --group dev
|
|
19
|
+
|
|
20
|
+
# install pre-commit hooks
|
|
21
|
+
uv run pre-commit install
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Running Tests
|
|
25
|
+
|
|
26
|
+
Unit and non-integration tests (no real apps required):
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
uv run pytest -m "not integration"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Full integration test suite (requires Windows desktop session):
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
uv run pytest
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
With coverage:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
uv run pytest --cov=dolphin_desktop --cov-report=term-missing
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Code Style
|
|
45
|
+
|
|
46
|
+
This project uses [ruff](https://docs.astral.sh/ruff/) for linting and formatting, and [mypy](https://mypy-lang.org/) for type checking.
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# lint
|
|
50
|
+
uv run ruff check .
|
|
51
|
+
|
|
52
|
+
# format
|
|
53
|
+
uv run ruff format .
|
|
54
|
+
|
|
55
|
+
# type check
|
|
56
|
+
uv run mypy src/
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Pre-commit hooks run these automatically on every commit.
|
|
60
|
+
|
|
61
|
+
## Submitting a Pull Request
|
|
62
|
+
|
|
63
|
+
1. Fork the repository and create a feature branch.
|
|
64
|
+
2. Add tests for any new functionality.
|
|
65
|
+
3. Ensure `ruff check .`, `ruff format --check .`, and `mypy src/` all pass.
|
|
66
|
+
4. Open a PR against `main` - CI will run the full matrix automatically.
|
|
67
|
+
|
|
68
|
+
## Architecture
|
|
69
|
+
|
|
70
|
+
See [docs/architecture.md](docs/architecture.md) for a breakdown of the library's design.
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
https://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction, and
|
|
10
|
+
distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by the
|
|
13
|
+
copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all other
|
|
16
|
+
entities that control, are controlled by, or are under common control with
|
|
17
|
+
that entity. For the purposes of this definition, "control" means (i) the
|
|
18
|
+
power, direct or indirect, to cause the direction or management of such
|
|
19
|
+
entity, whether by contract or otherwise, or (ii) ownership of fifty percent
|
|
20
|
+
(50%) or more of the outstanding shares, or (iii) beneficial ownership of
|
|
21
|
+
such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising
|
|
24
|
+
permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation source, and
|
|
28
|
+
configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical transformation or
|
|
31
|
+
translation of a Source form, including but not limited to compiled object
|
|
32
|
+
code, generated documentation, and conversions to other media types.
|
|
33
|
+
|
|
34
|
+
"Work" shall mean the work of authorship, whether in Source or Object form,
|
|
35
|
+
made available under the License, as indicated by a copyright notice that is
|
|
36
|
+
included in or attached to the work.
|
|
37
|
+
|
|
38
|
+
"Derivative Works" shall mean any work, whether in Source or Object form,
|
|
39
|
+
that is based on (or derived from) the Work and for which the editorial
|
|
40
|
+
revisions, annotations, elaborations, or other modifications represent, as a
|
|
41
|
+
whole, an original work of authorship. For the purposes of this License,
|
|
42
|
+
Derivative Works shall not include works that remain separable from, or merely
|
|
43
|
+
link (or bind by name) to the interfaces of, the Work and Derivative Works
|
|
44
|
+
thereof.
|
|
45
|
+
|
|
46
|
+
"Contribution" shall mean any work of authorship, including the original
|
|
47
|
+
version of the Work and any modifications or additions to that Work or
|
|
48
|
+
Derivative Works thereof, that is intentionally submitted to Licensor for
|
|
49
|
+
inclusion in the Work by the copyright owner or by an individual or Legal
|
|
50
|
+
Entity authorized to submit on behalf of the copyright owner. For the purposes
|
|
51
|
+
of this definition, "submitted" means any form of electronic, verbal, or
|
|
52
|
+
written communication sent to the Licensor or its representatives, including
|
|
53
|
+
but not limited to communication on electronic mailing lists, source code
|
|
54
|
+
control systems, and issue tracking systems that are managed by, or on behalf
|
|
55
|
+
of, the Licensor for the purpose of discussing and improving the Work, but
|
|
56
|
+
excluding communication that is conspicuously marked or otherwise designated
|
|
57
|
+
in writing by the copyright owner as "Not a Contribution."
|
|
58
|
+
|
|
59
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
|
|
60
|
+
of whom a Contribution has been received by Licensor and subsequently
|
|
61
|
+
incorporated within the Work.
|
|
62
|
+
|
|
63
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this
|
|
64
|
+
License, each Contributor hereby grants to You a perpetual, worldwide,
|
|
65
|
+
non-exclusive, no-charge, royalty-free, irrevocable copyright license to
|
|
66
|
+
reproduce, prepare Derivative Works of, publicly display, publicly perform,
|
|
67
|
+
sublicense, and distribute the Work and such Derivative Works in Source or
|
|
68
|
+
Object form.
|
|
69
|
+
|
|
70
|
+
3. Grant of Patent License. Subject to the terms and conditions of this
|
|
71
|
+
License, each Contributor hereby grants to You a perpetual, worldwide,
|
|
72
|
+
non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this
|
|
73
|
+
section) patent license to make, have made, use, offer to sell, sell, import,
|
|
74
|
+
and otherwise transfer the Work, where such license applies only to those
|
|
75
|
+
patent claims licensable by such Contributor that are necessarily infringed by
|
|
76
|
+
their Contribution(s) alone or by combination of their Contribution(s) with
|
|
77
|
+
the Work to which such Contribution(s) was submitted. If You institute patent
|
|
78
|
+
litigation against any entity (including a cross-claim or counterclaim in a
|
|
79
|
+
lawsuit) alleging that the Work or a Contribution incorporated within the Work
|
|
80
|
+
constitutes direct or contributory patent infringement, then any patent
|
|
81
|
+
licenses granted to You under this License for that Work shall terminate as of
|
|
82
|
+
the date such litigation is filed.
|
|
83
|
+
|
|
84
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or
|
|
85
|
+
Derivative Works thereof in any medium, with or without modifications, and in
|
|
86
|
+
Source or Object form, provided that You meet the following conditions:
|
|
87
|
+
|
|
88
|
+
(a) You must give any other recipients of the Work or Derivative Works a copy
|
|
89
|
+
of this License; and
|
|
90
|
+
|
|
91
|
+
(b) You must cause any modified files to carry prominent notices stating that
|
|
92
|
+
You changed the files; and
|
|
93
|
+
|
|
94
|
+
(c) You must retain, in the Source form of any Derivative Works that You
|
|
95
|
+
distribute, all copyright, patent, trademark, and attribution notices from the
|
|
96
|
+
Source form of the Work, excluding those notices that do not pertain to any
|
|
97
|
+
part of the Derivative Works; and
|
|
98
|
+
|
|
99
|
+
(d) If the Work includes a "NOTICE" text file as part of its distribution,
|
|
100
|
+
then any Derivative Works that You distribute must include a readable copy of
|
|
101
|
+
the attribution notices contained within such NOTICE file, excluding those
|
|
102
|
+
notices that do not pertain to any part of the Derivative Works, in at least
|
|
103
|
+
one of the following places: within a NOTICE text file distributed as part of
|
|
104
|
+
the Derivative Works; within the Source form or documentation, if provided
|
|
105
|
+
along with the Derivative Works; or within a display generated by the
|
|
106
|
+
Derivative Works, if and wherever such third-party notices normally appear.
|
|
107
|
+
The contents of the NOTICE file are for informational purposes only and do not
|
|
108
|
+
modify the License. You may add Your own attribution notices within Derivative
|
|
109
|
+
Works that You distribute, alongside or as an addendum to the NOTICE text from
|
|
110
|
+
the Work, provided that such additional attribution notices cannot be construed
|
|
111
|
+
as modifying the License.
|
|
112
|
+
|
|
113
|
+
You may add Your own copyright statement to Your modifications and may provide
|
|
114
|
+
additional or different license terms and conditions for use, reproduction, or
|
|
115
|
+
distribution of Your modifications, or for any such Derivative Works as a
|
|
116
|
+
whole, provided Your use, reproduction, and distribution of the Work otherwise
|
|
117
|
+
complies with the conditions stated in this License.
|
|
118
|
+
|
|
119
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any
|
|
120
|
+
Contribution intentionally submitted for inclusion in the Work by You to the
|
|
121
|
+
Licensor shall be under the terms and conditions of this License, without any
|
|
122
|
+
additional terms or conditions. Notwithstanding the above, nothing herein
|
|
123
|
+
shall supersede or modify the terms of any separate license agreement you may
|
|
124
|
+
have executed with Licensor regarding such Contributions.
|
|
125
|
+
|
|
126
|
+
6. Trademarks. This License does not grant permission to use the trade names,
|
|
127
|
+
trademarks, service marks, or product names of the Licensor, except as
|
|
128
|
+
required for reasonable and customary use in describing the origin of the Work
|
|
129
|
+
and reproducing the content of the NOTICE file.
|
|
130
|
+
|
|
131
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
|
|
132
|
+
writing, Licensor provides the Work (and each Contributor provides its
|
|
133
|
+
Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
134
|
+
KIND, either express or implied, including, without limitation, any warranties
|
|
135
|
+
or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
136
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
137
|
+
appropriateness of using or redistributing the Work and assume any risks
|
|
138
|
+
associated with Your exercise of permissions under this License.
|
|
139
|
+
|
|
140
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in
|
|
141
|
+
tort (including negligence), contract, or otherwise, unless required by
|
|
142
|
+
applicable law (such as deliberate and grossly negligent acts) or agreed to in
|
|
143
|
+
writing, shall any Contributor be liable to You for damages, including any
|
|
144
|
+
direct, indirect, special, incidental, or consequential damages of any
|
|
145
|
+
character arising as a result of this License or out of the use or inability
|
|
146
|
+
to use the Work (including but not limited to damages for loss of goodwill,
|
|
147
|
+
work stoppage, computer failure or malfunction, or any and all other
|
|
148
|
+
commercial damages or losses), even if such Contributor has been advised of
|
|
149
|
+
the possibility of such damages.
|
|
150
|
+
|
|
151
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work
|
|
152
|
+
or Derivative Works thereof, You may choose to offer, and charge a fee for,
|
|
153
|
+
acceptance of support, warranty, indemnity, or other liability obligations
|
|
154
|
+
and/or rights consistent with this License. However, in accepting such
|
|
155
|
+
obligations, You may act only on Your own behalf and on Your sole
|
|
156
|
+
responsibility, not on behalf of any other Contributor, and only if You agree
|
|
157
|
+
to indemnify, defend, and hold each Contributor harmless for any liability
|
|
158
|
+
incurred by, or claims asserted against, such Contributor by reason of your
|
|
159
|
+
accepting any such warranty or additional liability.
|
|
160
|
+
|
|
161
|
+
END OF TERMS AND CONDITIONS
|
|
162
|
+
|
|
163
|
+
Copyright 2026 DolphinSoft Kamil Głuszek
|