orgwarrior 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 (44) hide show
  1. orgwarrior-0.1.0/.github/workflows/ci.yml +22 -0
  2. orgwarrior-0.1.0/.github/workflows/publish.yml +27 -0
  3. orgwarrior-0.1.0/.gitignore +6 -0
  4. orgwarrior-0.1.0/LICENSE +674 -0
  5. orgwarrior-0.1.0/PKG-INFO +248 -0
  6. orgwarrior-0.1.0/README.md +230 -0
  7. orgwarrior-0.1.0/config.toml.example +49 -0
  8. orgwarrior-0.1.0/docs/logo.svg +1 -0
  9. orgwarrior-0.1.0/docs/orgwarrior.1 +578 -0
  10. orgwarrior-0.1.0/docs/screenshots/cli-clocked.png +0 -0
  11. orgwarrior-0.1.0/docs/screenshots/cli-help.png +0 -0
  12. orgwarrior-0.1.0/docs/screenshots/cli-show.png +0 -0
  13. orgwarrior-0.1.0/docs/screenshots/cli-today.png +0 -0
  14. orgwarrior-0.1.0/pyproject.toml +39 -0
  15. orgwarrior-0.1.0/scripts/dev-daemon +49 -0
  16. orgwarrior-0.1.0/scripts/dev-orgwarrior +8 -0
  17. orgwarrior-0.1.0/src/orgwarrior/__init__.py +7 -0
  18. orgwarrior-0.1.0/src/orgwarrior/__main__.py +3 -0
  19. orgwarrior-0.1.0/src/orgwarrior/api.py +372 -0
  20. orgwarrior-0.1.0/src/orgwarrior/cli.py +930 -0
  21. orgwarrior-0.1.0/src/orgwarrior/config.py +189 -0
  22. orgwarrior-0.1.0/src/orgwarrior/emacs.py +112 -0
  23. orgwarrior-0.1.0/src/orgwarrior/help.py +471 -0
  24. orgwarrior-0.1.0/src/orgwarrior/manpage.py +129 -0
  25. orgwarrior-0.1.0/src/orgwarrior/orgwarrior.el +3187 -0
  26. orgwarrior-0.1.0/src/orgwarrior/skill.py +116 -0
  27. orgwarrior-0.1.0/tests/conftest.py +45 -0
  28. orgwarrior-0.1.0/tests/fixture-init.el +92 -0
  29. orgwarrior-0.1.0/tests/fixtures/org/calendar.org +4 -0
  30. orgwarrior-0.1.0/tests/fixtures/org/inbox.org +10 -0
  31. orgwarrior-0.1.0/tests/fixtures/org/projects.org +9 -0
  32. orgwarrior-0.1.0/tests/fixtures/org/tasks.org +22 -0
  33. orgwarrior-0.1.0/tests/fixtures/org-alt/bugs.org +6 -0
  34. orgwarrior-0.1.0/tests/fixtures/org-alt/inbox.org +3 -0
  35. orgwarrior-0.1.0/tests/fixtures/org-alt/tasks.org +7 -0
  36. orgwarrior-0.1.0/tests/orgwarrior-alt-test.el +121 -0
  37. orgwarrior-0.1.0/tests/orgwarrior-test.el +2307 -0
  38. orgwarrior-0.1.0/tests/test_api.py +140 -0
  39. orgwarrior-0.1.0/tests/test_config.py +73 -0
  40. orgwarrior-0.1.0/tests/test_elisp.py +19 -0
  41. orgwarrior-0.1.0/tests/test_emacs.py +50 -0
  42. orgwarrior-0.1.0/tests/test_integration.py +116 -0
  43. orgwarrior-0.1.0/tests/test_parse.py +552 -0
  44. orgwarrior-0.1.0/uv.lock +79 -0
@@ -0,0 +1,22 @@
1
+ # The whole suite (ERT and pytest) on the oldest Emacs supported and the newest.
2
+ name: tests
3
+
4
+ on:
5
+ push:
6
+ pull_request:
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ emacs: ["29.4", "31.1"]
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: purcell/setup-emacs@v8.0
19
+ with:
20
+ version: ${{ matrix.emacs }}
21
+ - uses: astral-sh/setup-uv@v6
22
+ - run: uv run pytest -q
@@ -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,6 @@
1
+ __pycache__/
2
+ .venv/
3
+ .pytest_cache/
4
+ dist/
5
+ *.elc
6
+ CLAUDE.local.md