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.
- memoryfield_tool-0.0.1/.github/workflows/ci.yml +21 -0
- memoryfield_tool-0.0.1/.github/workflows/publish.yml +46 -0
- memoryfield_tool-0.0.1/.gitignore +8 -0
- memoryfield_tool-0.0.1/COPYING +661 -0
- memoryfield_tool-0.0.1/PKG-INFO +245 -0
- memoryfield_tool-0.0.1/README.md +222 -0
- memoryfield_tool-0.0.1/hatch_build.py +31 -0
- memoryfield_tool-0.0.1/pyproject.toml +72 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/__init__.py +6 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/__main__.py +3 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/assets.py +16 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/catalog.py +53 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/cli.py +1131 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/config.py +150 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/db.py +20 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/embed.py +19 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/export.py +23 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/fields.py +78 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/frontmatter.py +138 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/index.py +184 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/pages.py +201 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/reindex.py +39 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/search.py +145 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/templates/base.html +46 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/transport.py +294 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/uuid_compat.py +8 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/validate.py +149 -0
- memoryfield_tool-0.0.1/src/memoryfield_tool/web.py +208 -0
- memoryfield_tool-0.0.1/tests/conftest.py +112 -0
- memoryfield_tool-0.0.1/tests/test_catalog.py +91 -0
- memoryfield_tool-0.0.1/tests/test_cli.py +1214 -0
- memoryfield_tool-0.0.1/tests/test_config.py +221 -0
- memoryfield_tool-0.0.1/tests/test_db.py +24 -0
- memoryfield_tool-0.0.1/tests/test_edit.py +166 -0
- memoryfield_tool-0.0.1/tests/test_embed.py +39 -0
- memoryfield_tool-0.0.1/tests/test_export.py +85 -0
- memoryfield_tool-0.0.1/tests/test_fields.py +152 -0
- memoryfield_tool-0.0.1/tests/test_frontmatter.py +256 -0
- memoryfield_tool-0.0.1/tests/test_index.py +270 -0
- memoryfield_tool-0.0.1/tests/test_pages.py +346 -0
- memoryfield_tool-0.0.1/tests/test_reindex.py +107 -0
- memoryfield_tool-0.0.1/tests/test_search.py +130 -0
- memoryfield_tool-0.0.1/tests/test_transport.py +240 -0
- memoryfield_tool-0.0.1/tests/test_validate.py +149 -0
- memoryfield_tool-0.0.1/tests/test_version.py +54 -0
- memoryfield_tool-0.0.1/tests/test_web.py +246 -0
- memoryfield_tool-0.0.1/tests/test_web_write.py +212 -0
- memoryfield_tool-0.0.1/uv.lock +1241 -0
- 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
|