Commit 334c37d
committed
docs: fix conf after _build.py changes
`docs/conf.py` tries to read version info from `src/__init__py` using
an expression match. This breaks after e439a0f ("setup.py src/ tests/:
auto-generate pymupdf.pymupdf_version and add git info.", 2025-08-08)
makes `src/__init__py` import that info from `_build.py`, which is
generated during build in the build directory.
Make the build process generate a copy of `_build.py` in `docs` and let
`docs/conf.py` import version info from there.
Alternative fixes:
- pointing `docs/conf.py` at the build directory; this may no longer
exist after a wheel build, though
- reading from the generated wheel; oh well ;-)
- installing the build and importing `_build.py` from there; this would
mean intermingling build and install steps1 parent 69c4ef8 commit 334c37d
3 files changed
+6
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 52 | + | |
| 53 | + | |
62 | 54 | | |
63 | 55 | | |
64 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
| 746 | + | |
| 747 | + | |
746 | 748 | | |
747 | 749 | | |
748 | 750 | | |
| |||
0 commit comments