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.
Files changed (107) hide show
  1. jmapvault-0.1.0/.editorconfig +7 -0
  2. jmapvault-0.1.0/.github/workflows/ci.yml +88 -0
  3. jmapvault-0.1.0/.github/workflows/semantic-pr.yml +18 -0
  4. jmapvault-0.1.0/.gitignore +3 -0
  5. jmapvault-0.1.0/.renovaterc.json +4 -0
  6. jmapvault-0.1.0/.ryl.toml +36 -0
  7. jmapvault-0.1.0/DESIGN.md +587 -0
  8. jmapvault-0.1.0/GOAL.md +47 -0
  9. jmapvault-0.1.0/LICENSE +661 -0
  10. jmapvault-0.1.0/PKG-INFO +396 -0
  11. jmapvault-0.1.0/README.md +360 -0
  12. jmapvault-0.1.0/biome.json +8 -0
  13. jmapvault-0.1.0/examples/config.toml +38 -0
  14. jmapvault-0.1.0/examples/launchd/net.hugoh.jmapvault.plist +42 -0
  15. jmapvault-0.1.0/examples/systemd/jmapvault@.service +28 -0
  16. jmapvault-0.1.0/examples/systemd/jmapvault@.timer +10 -0
  17. jmapvault-0.1.0/hk.pkl +41 -0
  18. jmapvault-0.1.0/mise.toml +30 -0
  19. jmapvault-0.1.0/pyproject.toml +80 -0
  20. jmapvault-0.1.0/scripts/stalwart-test-server.sh +107 -0
  21. jmapvault-0.1.0/src/jmapvault/__init__.py +0 -0
  22. jmapvault-0.1.0/src/jmapvault/changes.py +91 -0
  23. jmapvault-0.1.0/src/jmapvault/cli.py +533 -0
  24. jmapvault-0.1.0/src/jmapvault/config.py +161 -0
  25. jmapvault-0.1.0/src/jmapvault/credentials.py +187 -0
  26. jmapvault-0.1.0/src/jmapvault/discovery.py +123 -0
  27. jmapvault-0.1.0/src/jmapvault/discovery_view.py +31 -0
  28. jmapvault-0.1.0/src/jmapvault/engine.py +297 -0
  29. jmapvault-0.1.0/src/jmapvault/errors.py +43 -0
  30. jmapvault-0.1.0/src/jmapvault/exit_codes.py +7 -0
  31. jmapvault-0.1.0/src/jmapvault/export/__init__.py +13 -0
  32. jmapvault-0.1.0/src/jmapvault/export/common.py +109 -0
  33. jmapvault-0.1.0/src/jmapvault/export/containers.py +77 -0
  34. jmapvault-0.1.0/src/jmapvault/export/mail.py +257 -0
  35. jmapvault-0.1.0/src/jmapvault/export/pim.py +125 -0
  36. jmapvault-0.1.0/src/jmapvault/export/view.py +26 -0
  37. jmapvault-0.1.0/src/jmapvault/ical.py +347 -0
  38. jmapvault-0.1.0/src/jmapvault/lock.py +32 -0
  39. jmapvault-0.1.0/src/jmapvault/logging_setup.py +59 -0
  40. jmapvault-0.1.0/src/jmapvault/meta.py +43 -0
  41. jmapvault-0.1.0/src/jmapvault/oauth.py +95 -0
  42. jmapvault-0.1.0/src/jmapvault/progress.py +176 -0
  43. jmapvault-0.1.0/src/jmapvault/retry.py +197 -0
  44. jmapvault-0.1.0/src/jmapvault/runreport.py +54 -0
  45. jmapvault-0.1.0/src/jmapvault/runreport_view.py +67 -0
  46. jmapvault-0.1.0/src/jmapvault/session.py +29 -0
  47. jmapvault-0.1.0/src/jmapvault/state.py +432 -0
  48. jmapvault-0.1.0/src/jmapvault/status_view.py +108 -0
  49. jmapvault-0.1.0/src/jmapvault/store.py +227 -0
  50. jmapvault-0.1.0/src/jmapvault/syncers/__init__.py +19 -0
  51. jmapvault-0.1.0/src/jmapvault/syncers/calendars.py +36 -0
  52. jmapvault-0.1.0/src/jmapvault/syncers/consistency.py +148 -0
  53. jmapvault-0.1.0/src/jmapvault/syncers/contacts.py +34 -0
  54. jmapvault-0.1.0/src/jmapvault/syncers/mail.py +380 -0
  55. jmapvault-0.1.0/src/jmapvault/syncers/objects.py +328 -0
  56. jmapvault-0.1.0/src/jmapvault/syncers/retire.py +39 -0
  57. jmapvault-0.1.0/src/jmapvault/syncers/settings.py +82 -0
  58. jmapvault-0.1.0/src/jmapvault/syncers/sieve.py +152 -0
  59. jmapvault-0.1.0/src/jmapvault/vcard.py +290 -0
  60. jmapvault-0.1.0/src/jmapvault/verify.py +236 -0
  61. jmapvault-0.1.0/src/jmapvault/verify_view.py +62 -0
  62. jmapvault-0.1.0/tests/__init__.py +0 -0
  63. jmapvault-0.1.0/tests/conftest.py +69 -0
  64. jmapvault-0.1.0/tests/export_helpers.py +71 -0
  65. jmapvault-0.1.0/tests/fake_jmap.py +332 -0
  66. jmapvault-0.1.0/tests/fake_jmap_pim.py +288 -0
  67. jmapvault-0.1.0/tests/integration/README.md +16 -0
  68. jmapvault-0.1.0/tests/integration/__init__.py +0 -0
  69. jmapvault-0.1.0/tests/integration/conftest.py +95 -0
  70. jmapvault-0.1.0/tests/integration/seed.py +283 -0
  71. jmapvault-0.1.0/tests/integration/test_backup_cycle.py +150 -0
  72. jmapvault-0.1.0/tests/integration/test_export.py +63 -0
  73. jmapvault-0.1.0/tests/mail_helpers.py +73 -0
  74. jmapvault-0.1.0/tests/test_auth_failure.py +123 -0
  75. jmapvault-0.1.0/tests/test_calendars.py +249 -0
  76. jmapvault-0.1.0/tests/test_changes.py +37 -0
  77. jmapvault-0.1.0/tests/test_cli.py +679 -0
  78. jmapvault-0.1.0/tests/test_cli_export.py +120 -0
  79. jmapvault-0.1.0/tests/test_cli_verify.py +124 -0
  80. jmapvault-0.1.0/tests/test_config.py +204 -0
  81. jmapvault-0.1.0/tests/test_contacts.py +228 -0
  82. jmapvault-0.1.0/tests/test_credentials.py +103 -0
  83. jmapvault-0.1.0/tests/test_discovery.py +117 -0
  84. jmapvault-0.1.0/tests/test_download.py +228 -0
  85. jmapvault-0.1.0/tests/test_export_mail.py +261 -0
  86. jmapvault-0.1.0/tests/test_export_pim.py +110 -0
  87. jmapvault-0.1.0/tests/test_ical.py +259 -0
  88. jmapvault-0.1.0/tests/test_lock.py +33 -0
  89. jmapvault-0.1.0/tests/test_logging_setup.py +71 -0
  90. jmapvault-0.1.0/tests/test_mail_incremental.py +338 -0
  91. jmapvault-0.1.0/tests/test_mail_sync.py +306 -0
  92. jmapvault-0.1.0/tests/test_meta.py +52 -0
  93. jmapvault-0.1.0/tests/test_oauth.py +356 -0
  94. jmapvault-0.1.0/tests/test_progress.py +107 -0
  95. jmapvault-0.1.0/tests/test_retry.py +156 -0
  96. jmapvault-0.1.0/tests/test_runreport.py +36 -0
  97. jmapvault-0.1.0/tests/test_runreport_view.py +60 -0
  98. jmapvault-0.1.0/tests/test_session.py +61 -0
  99. jmapvault-0.1.0/tests/test_settings.py +155 -0
  100. jmapvault-0.1.0/tests/test_sieve.py +163 -0
  101. jmapvault-0.1.0/tests/test_state.py +239 -0
  102. jmapvault-0.1.0/tests/test_status_view.py +48 -0
  103. jmapvault-0.1.0/tests/test_store.py +210 -0
  104. jmapvault-0.1.0/tests/test_sync_consistency.py +430 -0
  105. jmapvault-0.1.0/tests/test_vcard.py +241 -0
  106. jmapvault-0.1.0/tests/test_verify.py +341 -0
  107. jmapvault-0.1.0/uv.lock +995 -0
@@ -0,0 +1,7 @@
1
+ root = true
2
+
3
+ [*.sh]
4
+ indent_size = 2
5
+ indent_style = space
6
+ switch_case_indent = true
7
+ binary_next_line = true
@@ -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,3 @@
1
+ __pycache__/
2
+ *.pyc
3
+ .venv/
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": ["github>hugoh/renovate-config"]
4
+ }
@@ -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"