octavo-kit 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.
- octavo_kit-0.1.0/.gitignore +6 -0
- octavo_kit-0.1.0/CONTRIBUTING.md +43 -0
- octavo_kit-0.1.0/LICENSE +21 -0
- octavo_kit-0.1.0/PKG-INFO +1322 -0
- octavo_kit-0.1.0/README.ja.md +1197 -0
- octavo_kit-0.1.0/README.md +1275 -0
- octavo_kit-0.1.0/bin/octavo +20 -0
- octavo_kit-0.1.0/config.example.ja.py +203 -0
- octavo_kit-0.1.0/config.example.py +216 -0
- octavo_kit-0.1.0/octavo/__init__.py +11 -0
- octavo_kit-0.1.0/octavo/analysis.py +323 -0
- octavo_kit-0.1.0/octavo/audit.py +327 -0
- octavo_kit-0.1.0/octavo/backends/__init__.py +55 -0
- octavo_kit-0.1.0/octavo/backends/base.py +321 -0
- octavo_kit-0.1.0/octavo/backends/beamer.py +132 -0
- octavo_kit-0.1.0/octavo/backends/docx.py +98 -0
- octavo_kit-0.1.0/octavo/backends/latex.py +306 -0
- octavo_kit-0.1.0/octavo/backends/typst.py +237 -0
- octavo_kit-0.1.0/octavo/backends/typst_notes.py +79 -0
- octavo_kit-0.1.0/octavo/backends/typst_slides.py +178 -0
- octavo_kit-0.1.0/octavo/bib.py +223 -0
- octavo_kit-0.1.0/octavo/build.py +378 -0
- octavo_kit-0.1.0/octavo/bundle.py +356 -0
- octavo_kit-0.1.0/octavo/check.py +217 -0
- octavo_kit-0.1.0/octavo/cli.py +932 -0
- octavo_kit-0.1.0/octavo/confedit.py +192 -0
- octavo_kit-0.1.0/octavo/config.py +473 -0
- octavo_kit-0.1.0/octavo/csl.py +174 -0
- octavo_kit-0.1.0/octavo/dataset.py +163 -0
- octavo_kit-0.1.0/octavo/doctor.py +379 -0
- octavo_kit-0.1.0/octavo/ghrelease.py +196 -0
- octavo_kit-0.1.0/octavo/i18n.py +103 -0
- octavo_kit-0.1.0/octavo/lang_ja.py +680 -0
- octavo_kit-0.1.0/octavo/lint.py +223 -0
- octavo_kit-0.1.0/octavo/md.py +681 -0
- octavo_kit-0.1.0/octavo/pandocrun.py +139 -0
- octavo_kit-0.1.0/octavo/paths.py +57 -0
- octavo_kit-0.1.0/octavo/review.py +190 -0
- octavo_kit-0.1.0/octavo/scaffold.py +345 -0
- octavo_kit-0.1.0/octavo/selftest.py +258 -0
- octavo_kit-0.1.0/octavo/tmpl.py +124 -0
- octavo_kit-0.1.0/octavo/values.py +344 -0
- octavo_kit-0.1.0/octavo/zotero.py +229 -0
- octavo_kit-0.1.0/pyproject.toml +79 -0
- octavo_kit-0.1.0/setup.sh +334 -0
- octavo_kit-0.1.0/templates/README.md +50 -0
- octavo_kit-0.1.0/templates/handout/handout-header.tex +51 -0
- octavo_kit-0.1.0/templates/manuscripts/en/appendix.md +21 -0
- octavo_kit-0.1.0/templates/manuscripts/en/lecture.md +64 -0
- octavo_kit-0.1.0/templates/manuscripts/en/paper.md +62 -0
- octavo_kit-0.1.0/templates/manuscripts/en/slides.md +44 -0
- octavo_kit-0.1.0/templates/manuscripts/ja/appendix.md +21 -0
- octavo_kit-0.1.0/templates/manuscripts/ja/lecture.md +63 -0
- octavo_kit-0.1.0/templates/manuscripts/ja/paper.md +63 -0
- octavo_kit-0.1.0/templates/manuscripts/ja/slides.md +44 -0
- octavo_kit-0.1.0/templates/paper/csl-preamble.tex +37 -0
- octavo_kit-0.1.0/templates/paper/en/main.tex +136 -0
- octavo_kit-0.1.0/templates/paper/en/main.typ +77 -0
- octavo_kit-0.1.0/templates/paper/ja/main.tex +139 -0
- octavo_kit-0.1.0/templates/paper/ja/main.typ +73 -0
- octavo_kit-0.1.0/templates/project/common/analysis/octavo.R +418 -0
- octavo_kit-0.1.0/templates/project/en/CLAUDE.md +427 -0
- octavo_kit-0.1.0/templates/project/en/README.md +141 -0
- octavo_kit-0.1.0/templates/project/en/analysis/analysis.qmd +95 -0
- octavo_kit-0.1.0/templates/project/en/data/raw/README.md +18 -0
- octavo_kit-0.1.0/templates/project/en/gitignore +45 -0
- octavo_kit-0.1.0/templates/project/en/literature.bib +24 -0
- octavo_kit-0.1.0/templates/project/en/notes/README.md +13 -0
- octavo_kit-0.1.0/templates/project/en/octavo.config.py.tmpl +45 -0
- octavo_kit-0.1.0/templates/project/en/refs/README.md +26 -0
- octavo_kit-0.1.0/templates/project/en/requirements.txt +12 -0
- octavo_kit-0.1.0/templates/project/en/results/analysis.json +8 -0
- octavo_kit-0.1.0/templates/project/ja/CLAUDE.md +406 -0
- octavo_kit-0.1.0/templates/project/ja/README.md +137 -0
- octavo_kit-0.1.0/templates/project/ja/analysis/analysis.qmd +93 -0
- octavo_kit-0.1.0/templates/project/ja/data/raw/README.md +18 -0
- octavo_kit-0.1.0/templates/project/ja/gitignore +43 -0
- octavo_kit-0.1.0/templates/project/ja/literature.bib +24 -0
- octavo_kit-0.1.0/templates/project/ja/notes/README.md +12 -0
- octavo_kit-0.1.0/templates/project/ja/octavo.config.py.tmpl +42 -0
- octavo_kit-0.1.0/templates/project/ja/refs/README.md +23 -0
- octavo_kit-0.1.0/templates/project/ja/requirements.txt +12 -0
- octavo_kit-0.1.0/templates/project/ja/results/analysis.json +8 -0
- octavo_kit-0.1.0/templates/replication/en/README.md +33 -0
- octavo_kit-0.1.0/templates/replication/ja/README.md +33 -0
- octavo_kit-0.1.0/templates/slides/beamer-header-en.tex +34 -0
- octavo_kit-0.1.0/templates/slides/beamer-header-ja.tex +45 -0
- octavo_kit-0.1.0/templates/slides/typst-notes.typ +139 -0
- octavo_kit-0.1.0/templates/slides/typst-slides.typ +178 -0
- octavo_kit-0.1.0/tests/test_octavo.py +3967 -0
- octavo_kit-0.1.0/vscode-extension/LICENSE +21 -0
- octavo_kit-0.1.0/vscode-extension/README.ja.md +162 -0
- octavo_kit-0.1.0/vscode-extension/README.md +178 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Issues and pull requests are welcome, in English or Japanese.
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
No install step beyond Python itself — `octavo` is intentionally
|
|
8
|
+
stdlib-only (see [README.md](README.md)). For the full toolchain
|
|
9
|
+
(pandoc/Typst) needed to actually build output, run `bash setup.sh`
|
|
10
|
+
(add `--with-tex` for LaTeX/Beamer).
|
|
11
|
+
|
|
12
|
+
## Running tests
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
python3 tests/test_octavo.py
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Tests run with citations off and skip anything that needs a pandoc/TeX/Typst
|
|
19
|
+
version newer than what's installed — a skip is expected in a minimal
|
|
20
|
+
environment, not a failure. CI (`.github/workflows/tests.yml`) runs the same
|
|
21
|
+
suite across Python 3.9–3.14 on every push and pull request.
|
|
22
|
+
|
|
23
|
+
## Before opening a PR
|
|
24
|
+
|
|
25
|
+
- Keep new dependencies out of `octavo/` — the stdlib-only constraint is
|
|
26
|
+
deliberate (it's what keeps `setup.sh` simple on the WSL2/Ubuntu deploy
|
|
27
|
+
target this tool is built for).
|
|
28
|
+
- Adding a new output format? `octavo/backends/base.py` documents the
|
|
29
|
+
`Backend` interface; `build.py` and `cli.py` should never need to branch
|
|
30
|
+
on format name — add a new file under `backends/` and register it in
|
|
31
|
+
`backends/__init__.py::REGISTRY` instead. `octavo/config.py::BACKENDS`
|
|
32
|
+
needs the new name too.
|
|
33
|
+
- Run the test suite before pushing; a red CI run on a PR is expected to be
|
|
34
|
+
fixed before it's merged.
|
|
35
|
+
- Small, focused PRs are easier to review than large ones that mix
|
|
36
|
+
refactors with behavior changes.
|
|
37
|
+
|
|
38
|
+
## Reporting a bug
|
|
39
|
+
|
|
40
|
+
Please include: the command you ran, the full error/output, `octavo doctor`
|
|
41
|
+
output, and your pandoc/TeX/Typst versions (`pandoc --version`, etc.) — §10
|
|
42
|
+
of the README ("What is tested, and what to check yourself") says which parts
|
|
43
|
+
are covered by the test suite and which aren't.
|
octavo_kit-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Takahiro Yoshida
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|