memoryfield-tool 0.0.1__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 (49) hide show
  1. memoryfield_tool-0.0.1/.github/workflows/ci.yml +21 -0
  2. memoryfield_tool-0.0.1/.github/workflows/publish.yml +46 -0
  3. memoryfield_tool-0.0.1/.gitignore +8 -0
  4. memoryfield_tool-0.0.1/COPYING +661 -0
  5. memoryfield_tool-0.0.1/PKG-INFO +245 -0
  6. memoryfield_tool-0.0.1/README.md +222 -0
  7. memoryfield_tool-0.0.1/hatch_build.py +31 -0
  8. memoryfield_tool-0.0.1/pyproject.toml +72 -0
  9. memoryfield_tool-0.0.1/src/memoryfield_tool/__init__.py +6 -0
  10. memoryfield_tool-0.0.1/src/memoryfield_tool/__main__.py +3 -0
  11. memoryfield_tool-0.0.1/src/memoryfield_tool/assets.py +16 -0
  12. memoryfield_tool-0.0.1/src/memoryfield_tool/catalog.py +53 -0
  13. memoryfield_tool-0.0.1/src/memoryfield_tool/cli.py +1131 -0
  14. memoryfield_tool-0.0.1/src/memoryfield_tool/config.py +150 -0
  15. memoryfield_tool-0.0.1/src/memoryfield_tool/db.py +20 -0
  16. memoryfield_tool-0.0.1/src/memoryfield_tool/embed.py +19 -0
  17. memoryfield_tool-0.0.1/src/memoryfield_tool/export.py +23 -0
  18. memoryfield_tool-0.0.1/src/memoryfield_tool/fields.py +78 -0
  19. memoryfield_tool-0.0.1/src/memoryfield_tool/frontmatter.py +138 -0
  20. memoryfield_tool-0.0.1/src/memoryfield_tool/index.py +184 -0
  21. memoryfield_tool-0.0.1/src/memoryfield_tool/pages.py +201 -0
  22. memoryfield_tool-0.0.1/src/memoryfield_tool/reindex.py +39 -0
  23. memoryfield_tool-0.0.1/src/memoryfield_tool/search.py +145 -0
  24. memoryfield_tool-0.0.1/src/memoryfield_tool/templates/base.html +46 -0
  25. memoryfield_tool-0.0.1/src/memoryfield_tool/transport.py +294 -0
  26. memoryfield_tool-0.0.1/src/memoryfield_tool/uuid_compat.py +8 -0
  27. memoryfield_tool-0.0.1/src/memoryfield_tool/validate.py +149 -0
  28. memoryfield_tool-0.0.1/src/memoryfield_tool/web.py +208 -0
  29. memoryfield_tool-0.0.1/tests/conftest.py +112 -0
  30. memoryfield_tool-0.0.1/tests/test_catalog.py +91 -0
  31. memoryfield_tool-0.0.1/tests/test_cli.py +1214 -0
  32. memoryfield_tool-0.0.1/tests/test_config.py +221 -0
  33. memoryfield_tool-0.0.1/tests/test_db.py +24 -0
  34. memoryfield_tool-0.0.1/tests/test_edit.py +166 -0
  35. memoryfield_tool-0.0.1/tests/test_embed.py +39 -0
  36. memoryfield_tool-0.0.1/tests/test_export.py +85 -0
  37. memoryfield_tool-0.0.1/tests/test_fields.py +152 -0
  38. memoryfield_tool-0.0.1/tests/test_frontmatter.py +256 -0
  39. memoryfield_tool-0.0.1/tests/test_index.py +270 -0
  40. memoryfield_tool-0.0.1/tests/test_pages.py +346 -0
  41. memoryfield_tool-0.0.1/tests/test_reindex.py +107 -0
  42. memoryfield_tool-0.0.1/tests/test_search.py +130 -0
  43. memoryfield_tool-0.0.1/tests/test_transport.py +240 -0
  44. memoryfield_tool-0.0.1/tests/test_validate.py +149 -0
  45. memoryfield_tool-0.0.1/tests/test_version.py +54 -0
  46. memoryfield_tool-0.0.1/tests/test_web.py +246 -0
  47. memoryfield_tool-0.0.1/tests/test_web_write.py +212 -0
  48. memoryfield_tool-0.0.1/uv.lock +1241 -0
  49. memoryfield_tool-0.0.1/version.py +76 -0
@@ -0,0 +1,21 @@
1
+ name: ci
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+
7
+ jobs:
8
+ ci:
9
+ runs-on: ubuntu-latest
10
+ strategy:
11
+ matrix:
12
+ python: ["3.12", "3.13", "3.14"]
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: astral-sh/setup-uv@v5
16
+ - run: uv python install ${{ matrix.python }} && uv sync
17
+ - run: uv run ruff check .
18
+ - run: uv run ruff format --check .
19
+ - run: uv run mypy
20
+ - run: uv run pytest
21
+ - run: uv build
@@ -0,0 +1,46 @@
1
+ name: publish
2
+
3
+ on:
4
+ push:
5
+ tags: ["v*"]
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ with:
13
+ fetch-depth: 0
14
+ - uses: astral-sh/setup-uv@v5
15
+ - run: uv python install 3.12 && uv sync
16
+ - run: uv run ruff check .
17
+ - run: uv run ruff format --check .
18
+ - run: uv run mypy
19
+ - run: uv run pytest
20
+ - run: uv build
21
+ - run: uvx twine check dist/*
22
+ - name: Smoke-test the wheel against the tag
23
+ run: |
24
+ expected="${GITHUB_REF_NAME#v}"
25
+ uv venv /tmp/smoke
26
+ uv pip install --python /tmp/smoke/bin/python dist/*.whl
27
+ actual="$(/tmp/smoke/bin/python -c 'import memoryfield_tool; print(memoryfield_tool.__version__)')"
28
+ echo "expected=$expected actual=$actual"
29
+ test "$actual" = "$expected"
30
+ - uses: actions/upload-artifact@v4
31
+ with:
32
+ name: dist
33
+ path: dist/
34
+
35
+ publish:
36
+ needs: build
37
+ runs-on: ubuntu-latest
38
+ environment: pypi
39
+ permissions:
40
+ id-token: write
41
+ steps:
42
+ - uses: actions/download-artifact@v4
43
+ with:
44
+ name: dist
45
+ path: dist/
46
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,8 @@
1
+ __pycache__/
2
+ .venv/
3
+ dist/
4
+ *.egg-info/
5
+ .ruff_cache/
6
+ .mypy_cache/
7
+ .pytest_cache/
8
+ src/memoryfield_tool/static/