nice-dialogs 1.3.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.
- nice_dialogs-1.3.0/.github/dependabot.yml +6 -0
- nice_dialogs-1.3.0/.github/workflows/ci.yml +69 -0
- nice_dialogs-1.3.0/.github/workflows/publish.yml +35 -0
- nice_dialogs-1.3.0/.gitignore +648 -0
- nice_dialogs-1.3.0/.pre-commit-config.yaml +29 -0
- nice_dialogs-1.3.0/.python-version +1 -0
- nice_dialogs-1.3.0/.vscode/launch.json +14 -0
- nice_dialogs-1.3.0/.vscode/settings.json +7 -0
- nice_dialogs-1.3.0/LICENSE +21 -0
- nice_dialogs-1.3.0/Makefile +39 -0
- nice_dialogs-1.3.0/PKG-INFO +84 -0
- nice_dialogs-1.3.0/README.md +62 -0
- nice_dialogs-1.3.0/examples/__init__.py +4 -0
- nice_dialogs-1.3.0/examples/main.py +26 -0
- nice_dialogs-1.3.0/examples/pages/__init__.py +0 -0
- nice_dialogs-1.3.0/examples/pages/index.py +198 -0
- nice_dialogs-1.3.0/nice_dialogs/__init__.py +3 -0
- nice_dialogs-1.3.0/nice_dialogs/dialogs/__init__.py +15 -0
- nice_dialogs-1.3.0/nice_dialogs/dialogs/confirmation.py +111 -0
- nice_dialogs-1.3.0/nice_dialogs/dialogs/cron_editor.py +336 -0
- nice_dialogs-1.3.0/nice_dialogs/dialogs/datetime_picker.py +226 -0
- nice_dialogs-1.3.0/nice_dialogs/dialogs/labelmaker.py +278 -0
- nice_dialogs-1.3.0/nice_dialogs/dialogs/types.py +30 -0
- nice_dialogs-1.3.0/nice_dialogs/dialogs/upload_file.py +148 -0
- nice_dialogs-1.3.0/nice_dialogs/py.typed +0 -0
- nice_dialogs-1.3.0/pyproject.toml +87 -0
- nice_dialogs-1.3.0/tests/conftest.py +18 -0
- nice_dialogs-1.3.0/tests/test_confirmation_dialog.py +18 -0
- nice_dialogs-1.3.0/tests/test_cron_editor.py +62 -0
- nice_dialogs-1.3.0/tests/test_datetime_picker.py +61 -0
- nice_dialogs-1.3.0/tests/test_labelmaker.py +80 -0
- nice_dialogs-1.3.0/tests/test_upload_file.py +38 -0
- nice_dialogs-1.3.0/uv.lock +1896 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
"on":
|
|
4
|
+
workflow_call:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
pull_request:
|
|
9
|
+
|
|
10
|
+
env:
|
|
11
|
+
UV_VERSION: "0.11.x"
|
|
12
|
+
UV_MANAGED_PYTHON: "1"
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
commitlint:
|
|
16
|
+
uses: tcjennings/actions-workflows/.github/workflows/commitlint.yaml@main
|
|
17
|
+
with:
|
|
18
|
+
verbose: true
|
|
19
|
+
|
|
20
|
+
lint:
|
|
21
|
+
needs: commitlint
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
strategy:
|
|
24
|
+
matrix:
|
|
25
|
+
nicegui-version: ["3.11", "3.12", "3.13", "3.14"]
|
|
26
|
+
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # 7.0.0
|
|
29
|
+
|
|
30
|
+
- name: Install uv
|
|
31
|
+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
|
|
32
|
+
with:
|
|
33
|
+
version: ${{ env.UV_VERSION }}
|
|
34
|
+
python-version: ${{ matrix.python-version }}
|
|
35
|
+
|
|
36
|
+
- name: Install dependencies
|
|
37
|
+
run: uv sync --group dev
|
|
38
|
+
|
|
39
|
+
- name: Run Linters
|
|
40
|
+
uses: j178/prek-action@e98a699c41eb69ab013a45817a0406469a748f8d # v2.0.5
|
|
41
|
+
|
|
42
|
+
- name: Type check with mypy
|
|
43
|
+
run: uv run --with "nicegui==${{ matrix.nicegui-version }}.*" --isolated mypy -p nice_dialogs
|
|
44
|
+
|
|
45
|
+
test:
|
|
46
|
+
needs: lint
|
|
47
|
+
runs-on: ubuntu-latest
|
|
48
|
+
strategy:
|
|
49
|
+
matrix:
|
|
50
|
+
python-version: ["3.13", "3.14"]
|
|
51
|
+
nicegui-version: ["3.11", "3.12", "3.13", "3.14"]
|
|
52
|
+
|
|
53
|
+
steps:
|
|
54
|
+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # 7.0.0
|
|
55
|
+
|
|
56
|
+
- name: Install uv
|
|
57
|
+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
|
|
58
|
+
with:
|
|
59
|
+
version: ${{ env.UV_VERSION }}
|
|
60
|
+
python-version: ${{ matrix.python-version }}
|
|
61
|
+
|
|
62
|
+
- name: Install dependencies
|
|
63
|
+
run: uv sync --group dev
|
|
64
|
+
|
|
65
|
+
- name: Install NiceGUI
|
|
66
|
+
run: uv pip install "nicegui==${{ matrix.nicegui-version }}.*"
|
|
67
|
+
|
|
68
|
+
- name: Run tests
|
|
69
|
+
run: uv run pytest
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Publish Package
|
|
2
|
+
|
|
3
|
+
"on":
|
|
4
|
+
workflow_call:
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
release:
|
|
7
|
+
types: [published]
|
|
8
|
+
|
|
9
|
+
env:
|
|
10
|
+
UV_VERSION: "0.11.x"
|
|
11
|
+
UV_MANAGED_PYTHON: "1"
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
|
|
15
|
+
pypi-publish:
|
|
16
|
+
name: upload release to PyPI
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
environment: pypi
|
|
19
|
+
permissions:
|
|
20
|
+
id-token: write
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # 7.0.0
|
|
23
|
+
|
|
24
|
+
- name: Install uv
|
|
25
|
+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
|
|
26
|
+
with:
|
|
27
|
+
version: ${{ env.UV_VERSION }}
|
|
28
|
+
python-version: "3.14"
|
|
29
|
+
|
|
30
|
+
- name: Build distributions
|
|
31
|
+
run: uv build
|
|
32
|
+
|
|
33
|
+
- name: Publish package distributions to PyPI
|
|
34
|
+
if: github.event_name == 'release' && github.event.action == 'published'
|
|
35
|
+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
|