orgwarrior-web 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 (73) hide show
  1. orgwarrior_web-0.1.0/.github/workflows/ci.yml +31 -0
  2. orgwarrior_web-0.1.0/.github/workflows/publish.yml +27 -0
  3. orgwarrior_web-0.1.0/.gitignore +5 -0
  4. orgwarrior_web-0.1.0/LICENSE +674 -0
  5. orgwarrior_web-0.1.0/PKG-INFO +365 -0
  6. orgwarrior_web-0.1.0/README.md +346 -0
  7. orgwarrior_web-0.1.0/docs/calendar.md +47 -0
  8. orgwarrior_web-0.1.0/docs/demo/calendar.org +12 -0
  9. orgwarrior_web-0.1.0/docs/demo/inbox.org +12 -0
  10. orgwarrior_web-0.1.0/docs/demo/init.el +49 -0
  11. orgwarrior_web-0.1.0/docs/demo/projects.org +28 -0
  12. orgwarrior_web-0.1.0/docs/demo/tasks.org +73 -0
  13. orgwarrior_web-0.1.0/docs/keys.md +163 -0
  14. orgwarrior_web-0.1.0/docs/phone.md +78 -0
  15. orgwarrior_web-0.1.0/docs/screenshots/desktop-keys.png +0 -0
  16. orgwarrior_web-0.1.0/docs/screenshots/desktop.png +0 -0
  17. orgwarrior_web-0.1.0/docs/screenshots/phone-add.png +0 -0
  18. orgwarrior_web-0.1.0/docs/screenshots/phone-task.png +0 -0
  19. orgwarrior_web-0.1.0/docs/screenshots/phone-today.png +0 -0
  20. orgwarrior_web-0.1.0/docs/screenshots/phones.png +0 -0
  21. orgwarrior_web-0.1.0/pyproject.toml +47 -0
  22. orgwarrior_web-0.1.0/scripts/dev-web +21 -0
  23. orgwarrior_web-0.1.0/scripts/get-browser +45 -0
  24. orgwarrior_web-0.1.0/scripts/screenshots +89 -0
  25. orgwarrior_web-0.1.0/scripts/screenshots-cli.py +51 -0
  26. orgwarrior_web-0.1.0/scripts/screenshots.js +150 -0
  27. orgwarrior_web-0.1.0/src/orgwarrior_web/__init__.py +3 -0
  28. orgwarrior_web-0.1.0/src/orgwarrior_web/auth.py +130 -0
  29. orgwarrior_web-0.1.0/src/orgwarrior_web/feed.py +140 -0
  30. orgwarrior_web-0.1.0/src/orgwarrior_web/jsonfile.py +37 -0
  31. orgwarrior_web-0.1.0/src/orgwarrior_web/keymap.py +321 -0
  32. orgwarrior_web-0.1.0/src/orgwarrior_web/sanitize.py +66 -0
  33. orgwarrior_web-0.1.0/src/orgwarrior_web/server.py +676 -0
  34. orgwarrior_web-0.1.0/src/orgwarrior_web/static/actions.js +867 -0
  35. orgwarrior_web-0.1.0/src/orgwarrior_web/static/app.js +856 -0
  36. orgwarrior_web-0.1.0/src/orgwarrior_web/static/apple-touch-icon.png +0 -0
  37. orgwarrior_web-0.1.0/src/orgwarrior_web/static/draft.js +223 -0
  38. orgwarrior_web-0.1.0/src/orgwarrior_web/static/forms.js +597 -0
  39. orgwarrior_web-0.1.0/src/orgwarrior_web/static/icon-192.png +0 -0
  40. orgwarrior_web-0.1.0/src/orgwarrior_web/static/icon-512.png +0 -0
  41. orgwarrior_web-0.1.0/src/orgwarrior_web/static/icon-maskable-512.png +0 -0
  42. orgwarrior_web-0.1.0/src/orgwarrior_web/static/icon-maskable.svg +1 -0
  43. orgwarrior_web-0.1.0/src/orgwarrior_web/static/icon-monochrome-512.png +0 -0
  44. orgwarrior_web-0.1.0/src/orgwarrior_web/static/icon-monochrome.svg +1 -0
  45. orgwarrior_web-0.1.0/src/orgwarrior_web/static/icon.svg +1 -0
  46. orgwarrior_web-0.1.0/src/orgwarrior_web/static/index.html +79 -0
  47. orgwarrior_web-0.1.0/src/orgwarrior_web/static/keys.js +745 -0
  48. orgwarrior_web-0.1.0/src/orgwarrior_web/static/manifest.webmanifest +20 -0
  49. orgwarrior_web-0.1.0/src/orgwarrior_web/static/prefs.js +100 -0
  50. orgwarrior_web-0.1.0/src/orgwarrior_web/static/sheets.js +519 -0
  51. orgwarrior_web-0.1.0/src/orgwarrior_web/static/style.css +713 -0
  52. orgwarrior_web-0.1.0/src/orgwarrior_web/static/sw.js +7 -0
  53. orgwarrior_web-0.1.0/src/orgwarrior_web/static/taskpage.js +322 -0
  54. orgwarrior_web-0.1.0/tests/browser/capture.js +96 -0
  55. orgwarrior_web-0.1.0/tests/browser/clock.js +95 -0
  56. orgwarrior_web-0.1.0/tests/browser/history.js +97 -0
  57. orgwarrior_web-0.1.0/tests/browser/keyboard.js +651 -0
  58. orgwarrior_web-0.1.0/tests/browser/keymap.js +121 -0
  59. orgwarrior_web-0.1.0/tests/browser/layout.js +155 -0
  60. orgwarrior_web-0.1.0/tests/browser/lib.js +150 -0
  61. orgwarrior_web-0.1.0/tests/browser/outline.js +121 -0
  62. orgwarrior_web-0.1.0/tests/browser/props.js +86 -0
  63. orgwarrior_web-0.1.0/tests/browser/render.js +238 -0
  64. orgwarrior_web-0.1.0/tests/browser/repeat.js +85 -0
  65. orgwarrior_web-0.1.0/tests/browser/report.js +61 -0
  66. orgwarrior_web-0.1.0/tests/browser/structure.js +170 -0
  67. orgwarrior_web-0.1.0/tests/browser/task-page.js +204 -0
  68. orgwarrior_web-0.1.0/tests/test_browser.py +77 -0
  69. orgwarrior_web-0.1.0/tests/test_feed.py +110 -0
  70. orgwarrior_web-0.1.0/tests/test_keymap.py +108 -0
  71. orgwarrior_web-0.1.0/tests/test_sanitize.py +26 -0
  72. orgwarrior_web-0.1.0/tests/test_server.py +666 -0
  73. orgwarrior_web-0.1.0/uv.lock +93 -0
@@ -0,0 +1,31 @@
1
+ # The server and feed tests on the oldest Emacs supported and the newest;
2
+ # the browser tests skip themselves without scripts/get-browser's Chrome.
3
+ # orgwarrior is checked out beside this one, as for development.
4
+ name: tests
5
+
6
+ on:
7
+ push:
8
+ pull_request:
9
+ workflow_dispatch:
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ emacs: ["29.4", "31.1"]
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ with:
21
+ path: orgwarrior-web
22
+ - uses: actions/checkout@v4
23
+ with:
24
+ repository: aleksozolins/orgwarrior
25
+ path: orgwarrior
26
+ - uses: purcell/setup-emacs@v8.0
27
+ with:
28
+ version: ${{ matrix.emacs }}
29
+ - uses: astral-sh/setup-uv@v6
30
+ - run: uv run pytest -q
31
+ working-directory: orgwarrior-web
@@ -0,0 +1,27 @@
1
+ # On a v* tag: build and publish to PyPI through trusted publishing (PyPI
2
+ # trusts this workflow in the pypi environment; no token is stored).
3
+ name: publish
4
+
5
+ on:
6
+ push:
7
+ tags: ["v*"]
8
+ # By hand on the tag too (gh workflow run publish.yml --ref v0.1.0), should
9
+ # its push not start a run.
10
+ workflow_dispatch:
11
+
12
+ jobs:
13
+ publish:
14
+ runs-on: ubuntu-latest
15
+ environment: pypi
16
+ permissions:
17
+ id-token: write
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ - uses: astral-sh/setup-uv@v6
21
+ # A version can't be uploaded twice: the tag must be the one in pyproject.toml.
22
+ - name: Tag matches the version
23
+ run: |
24
+ version=$(python3 -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')
25
+ test "$GITHUB_REF_NAME" = "v$version" || { echo "tag $GITHUB_REF_NAME, version $version"; exit 1; }
26
+ - run: uv build
27
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,5 @@
1
+ __pycache__/
2
+ .venv/
3
+ .pytest_cache/
4
+ dist/
5
+ CLAUDE.local.md