jmapvault 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.
- jmapvault-0.1.0/.editorconfig +7 -0
- jmapvault-0.1.0/.github/workflows/ci.yml +88 -0
- jmapvault-0.1.0/.github/workflows/semantic-pr.yml +18 -0
- jmapvault-0.1.0/.gitignore +3 -0
- jmapvault-0.1.0/.renovaterc.json +4 -0
- jmapvault-0.1.0/.ryl.toml +36 -0
- jmapvault-0.1.0/DESIGN.md +587 -0
- jmapvault-0.1.0/GOAL.md +47 -0
- jmapvault-0.1.0/LICENSE +661 -0
- jmapvault-0.1.0/PKG-INFO +396 -0
- jmapvault-0.1.0/README.md +360 -0
- jmapvault-0.1.0/biome.json +8 -0
- jmapvault-0.1.0/examples/config.toml +38 -0
- jmapvault-0.1.0/examples/launchd/net.hugoh.jmapvault.plist +42 -0
- jmapvault-0.1.0/examples/systemd/jmapvault@.service +28 -0
- jmapvault-0.1.0/examples/systemd/jmapvault@.timer +10 -0
- jmapvault-0.1.0/hk.pkl +41 -0
- jmapvault-0.1.0/mise.toml +30 -0
- jmapvault-0.1.0/pyproject.toml +80 -0
- jmapvault-0.1.0/scripts/stalwart-test-server.sh +107 -0
- jmapvault-0.1.0/src/jmapvault/__init__.py +0 -0
- jmapvault-0.1.0/src/jmapvault/changes.py +91 -0
- jmapvault-0.1.0/src/jmapvault/cli.py +533 -0
- jmapvault-0.1.0/src/jmapvault/config.py +161 -0
- jmapvault-0.1.0/src/jmapvault/credentials.py +187 -0
- jmapvault-0.1.0/src/jmapvault/discovery.py +123 -0
- jmapvault-0.1.0/src/jmapvault/discovery_view.py +31 -0
- jmapvault-0.1.0/src/jmapvault/engine.py +297 -0
- jmapvault-0.1.0/src/jmapvault/errors.py +43 -0
- jmapvault-0.1.0/src/jmapvault/exit_codes.py +7 -0
- jmapvault-0.1.0/src/jmapvault/export/__init__.py +13 -0
- jmapvault-0.1.0/src/jmapvault/export/common.py +109 -0
- jmapvault-0.1.0/src/jmapvault/export/containers.py +77 -0
- jmapvault-0.1.0/src/jmapvault/export/mail.py +257 -0
- jmapvault-0.1.0/src/jmapvault/export/pim.py +125 -0
- jmapvault-0.1.0/src/jmapvault/export/view.py +26 -0
- jmapvault-0.1.0/src/jmapvault/ical.py +347 -0
- jmapvault-0.1.0/src/jmapvault/lock.py +32 -0
- jmapvault-0.1.0/src/jmapvault/logging_setup.py +59 -0
- jmapvault-0.1.0/src/jmapvault/meta.py +43 -0
- jmapvault-0.1.0/src/jmapvault/oauth.py +95 -0
- jmapvault-0.1.0/src/jmapvault/progress.py +176 -0
- jmapvault-0.1.0/src/jmapvault/retry.py +197 -0
- jmapvault-0.1.0/src/jmapvault/runreport.py +54 -0
- jmapvault-0.1.0/src/jmapvault/runreport_view.py +67 -0
- jmapvault-0.1.0/src/jmapvault/session.py +29 -0
- jmapvault-0.1.0/src/jmapvault/state.py +432 -0
- jmapvault-0.1.0/src/jmapvault/status_view.py +108 -0
- jmapvault-0.1.0/src/jmapvault/store.py +227 -0
- jmapvault-0.1.0/src/jmapvault/syncers/__init__.py +19 -0
- jmapvault-0.1.0/src/jmapvault/syncers/calendars.py +36 -0
- jmapvault-0.1.0/src/jmapvault/syncers/consistency.py +148 -0
- jmapvault-0.1.0/src/jmapvault/syncers/contacts.py +34 -0
- jmapvault-0.1.0/src/jmapvault/syncers/mail.py +380 -0
- jmapvault-0.1.0/src/jmapvault/syncers/objects.py +328 -0
- jmapvault-0.1.0/src/jmapvault/syncers/retire.py +39 -0
- jmapvault-0.1.0/src/jmapvault/syncers/settings.py +82 -0
- jmapvault-0.1.0/src/jmapvault/syncers/sieve.py +152 -0
- jmapvault-0.1.0/src/jmapvault/vcard.py +290 -0
- jmapvault-0.1.0/src/jmapvault/verify.py +236 -0
- jmapvault-0.1.0/src/jmapvault/verify_view.py +62 -0
- jmapvault-0.1.0/tests/__init__.py +0 -0
- jmapvault-0.1.0/tests/conftest.py +69 -0
- jmapvault-0.1.0/tests/export_helpers.py +71 -0
- jmapvault-0.1.0/tests/fake_jmap.py +332 -0
- jmapvault-0.1.0/tests/fake_jmap_pim.py +288 -0
- jmapvault-0.1.0/tests/integration/README.md +16 -0
- jmapvault-0.1.0/tests/integration/__init__.py +0 -0
- jmapvault-0.1.0/tests/integration/conftest.py +95 -0
- jmapvault-0.1.0/tests/integration/seed.py +283 -0
- jmapvault-0.1.0/tests/integration/test_backup_cycle.py +150 -0
- jmapvault-0.1.0/tests/integration/test_export.py +63 -0
- jmapvault-0.1.0/tests/mail_helpers.py +73 -0
- jmapvault-0.1.0/tests/test_auth_failure.py +123 -0
- jmapvault-0.1.0/tests/test_calendars.py +249 -0
- jmapvault-0.1.0/tests/test_changes.py +37 -0
- jmapvault-0.1.0/tests/test_cli.py +679 -0
- jmapvault-0.1.0/tests/test_cli_export.py +120 -0
- jmapvault-0.1.0/tests/test_cli_verify.py +124 -0
- jmapvault-0.1.0/tests/test_config.py +204 -0
- jmapvault-0.1.0/tests/test_contacts.py +228 -0
- jmapvault-0.1.0/tests/test_credentials.py +103 -0
- jmapvault-0.1.0/tests/test_discovery.py +117 -0
- jmapvault-0.1.0/tests/test_download.py +228 -0
- jmapvault-0.1.0/tests/test_export_mail.py +261 -0
- jmapvault-0.1.0/tests/test_export_pim.py +110 -0
- jmapvault-0.1.0/tests/test_ical.py +259 -0
- jmapvault-0.1.0/tests/test_lock.py +33 -0
- jmapvault-0.1.0/tests/test_logging_setup.py +71 -0
- jmapvault-0.1.0/tests/test_mail_incremental.py +338 -0
- jmapvault-0.1.0/tests/test_mail_sync.py +306 -0
- jmapvault-0.1.0/tests/test_meta.py +52 -0
- jmapvault-0.1.0/tests/test_oauth.py +356 -0
- jmapvault-0.1.0/tests/test_progress.py +107 -0
- jmapvault-0.1.0/tests/test_retry.py +156 -0
- jmapvault-0.1.0/tests/test_runreport.py +36 -0
- jmapvault-0.1.0/tests/test_runreport_view.py +60 -0
- jmapvault-0.1.0/tests/test_session.py +61 -0
- jmapvault-0.1.0/tests/test_settings.py +155 -0
- jmapvault-0.1.0/tests/test_sieve.py +163 -0
- jmapvault-0.1.0/tests/test_state.py +239 -0
- jmapvault-0.1.0/tests/test_status_view.py +48 -0
- jmapvault-0.1.0/tests/test_store.py +210 -0
- jmapvault-0.1.0/tests/test_sync_consistency.py +430 -0
- jmapvault-0.1.0/tests/test_vcard.py +241 -0
- jmapvault-0.1.0/tests/test_verify.py +341 -0
- jmapvault-0.1.0/uv.lock +995 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ci
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
pull_request:
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
inputs:
|
|
11
|
+
bump:
|
|
12
|
+
description: Version bump; auto derives it from the commits since the last tag
|
|
13
|
+
type: choice
|
|
14
|
+
options: [auto, patch, minor, major]
|
|
15
|
+
default: auto
|
|
16
|
+
tag:
|
|
17
|
+
description: Existing tag to release instead of bumping (overrides bump)
|
|
18
|
+
type: string
|
|
19
|
+
required: false
|
|
20
|
+
|
|
21
|
+
permissions: {}
|
|
22
|
+
|
|
23
|
+
concurrency:
|
|
24
|
+
group: ${{ github.workflow }}-caller-${{ github.event.pull_request.number || github.ref }}
|
|
25
|
+
# Cancel superseded PR runs; never cancel a push-to-default-branch run mid-release.
|
|
26
|
+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
27
|
+
|
|
28
|
+
jobs:
|
|
29
|
+
hk:
|
|
30
|
+
uses: hugoh/gh-workflows/.github/workflows/hk.yml@dc88449107d4f550eba9b0dfd4ce8988d0c4a3f1 # v1.42.3
|
|
31
|
+
permissions:
|
|
32
|
+
contents: read
|
|
33
|
+
packages: read
|
|
34
|
+
statuses: write
|
|
35
|
+
with:
|
|
36
|
+
pre-hk: uv sync --locked
|
|
37
|
+
|
|
38
|
+
# The single required status check, and the only thing `release` waits for.
|
|
39
|
+
# Every job that must pass before merging or releasing goes in `needs`;
|
|
40
|
+
# jobs that only run after it are downstream and must not be listed here.
|
|
41
|
+
# hk's `ci` profile already runs the repo's tests.
|
|
42
|
+
ci-gate:
|
|
43
|
+
if: always()
|
|
44
|
+
needs: [hk]
|
|
45
|
+
timeout-minutes: 2
|
|
46
|
+
runs-on: ubuntu-latest
|
|
47
|
+
permissions: {}
|
|
48
|
+
steps:
|
|
49
|
+
- uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
|
|
50
|
+
with:
|
|
51
|
+
jobs: ${{ toJSON(needs) }}
|
|
52
|
+
|
|
53
|
+
release:
|
|
54
|
+
needs: ci-gate
|
|
55
|
+
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')
|
|
56
|
+
uses: hugoh/gh-workflows/.github/workflows/release.yml@dc88449107d4f550eba9b0dfd4ce8988d0c4a3f1 # v1.42.3
|
|
57
|
+
permissions:
|
|
58
|
+
contents: write
|
|
59
|
+
with:
|
|
60
|
+
bump: ${{ inputs.bump || 'auto' }}
|
|
61
|
+
tag: ${{ inputs.tag || '' }}
|
|
62
|
+
|
|
63
|
+
# Trusted publishing doesn't work from a reusable workflow
|
|
64
|
+
# (pypi/warehouse#11096), so publishing stays in this top-level workflow.
|
|
65
|
+
publish-pypi:
|
|
66
|
+
needs: release
|
|
67
|
+
if: needs.release.outputs.tag != ''
|
|
68
|
+
timeout-minutes: 5
|
|
69
|
+
runs-on: ubuntu-latest
|
|
70
|
+
environment: pypi
|
|
71
|
+
permissions:
|
|
72
|
+
id-token: write
|
|
73
|
+
steps:
|
|
74
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
75
|
+
with:
|
|
76
|
+
persist-credentials: false
|
|
77
|
+
fetch-depth: 0
|
|
78
|
+
ref: ${{ needs.release.outputs.tag }}
|
|
79
|
+
|
|
80
|
+
- uses: hugoh/gh-workflows/setup@dc88449107d4f550eba9b0dfd4ce8988d0c4a3f1 # v1.42.3
|
|
81
|
+
|
|
82
|
+
- name: Build package
|
|
83
|
+
run: uv build
|
|
84
|
+
|
|
85
|
+
- name: Publish to PyPI
|
|
86
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
87
|
+
with:
|
|
88
|
+
skip-existing: true
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: semantic-pr
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
pull_request:
|
|
6
|
+
types: [opened, edited, reopened, synchronize]
|
|
7
|
+
|
|
8
|
+
permissions: {}
|
|
9
|
+
|
|
10
|
+
concurrency:
|
|
11
|
+
group: ${{ github.workflow }}-caller-${{ github.event.pull_request.number || github.ref }}
|
|
12
|
+
cancel-in-progress: true
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
semantic-pr:
|
|
16
|
+
uses: hugoh/gh-workflows/.github/workflows/semantic-pr.yml@dc88449107d4f550eba9b0dfd4ce8988d0c4a3f1 # v1.42.3
|
|
17
|
+
permissions:
|
|
18
|
+
pull-requests: read
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[files]
|
|
2
|
+
yaml = [
|
|
3
|
+
"*.yaml",
|
|
4
|
+
"*.yml",
|
|
5
|
+
".yamllint",
|
|
6
|
+
]
|
|
7
|
+
|
|
8
|
+
[lint.rules]
|
|
9
|
+
anchors = "enable"
|
|
10
|
+
braces = "enable"
|
|
11
|
+
brackets = "enable"
|
|
12
|
+
colons = "enable"
|
|
13
|
+
commas = "enable"
|
|
14
|
+
comments = "disable"
|
|
15
|
+
comments-indentation = "disable"
|
|
16
|
+
document-end = "disable"
|
|
17
|
+
document-start = "disable"
|
|
18
|
+
empty-lines = "enable"
|
|
19
|
+
empty-values = "disable"
|
|
20
|
+
float-values = "disable"
|
|
21
|
+
hyphens = "enable"
|
|
22
|
+
indentation = "enable"
|
|
23
|
+
key-duplicates = "enable"
|
|
24
|
+
key-ordering = "disable"
|
|
25
|
+
line-length = "disable"
|
|
26
|
+
new-line-at-end-of-file = "enable"
|
|
27
|
+
new-lines = "enable"
|
|
28
|
+
octal-values = "disable"
|
|
29
|
+
quoted-strings = "disable"
|
|
30
|
+
trailing-spaces = "enable"
|
|
31
|
+
truthy = "disable"
|
|
32
|
+
|
|
33
|
+
[format]
|
|
34
|
+
comment-spacing = 1
|
|
35
|
+
comment-starting-space = "preserve"
|
|
36
|
+
quote-style = "preserve"
|