Commit 68e236e
Fix RTD build (#540)
* Fix RTD build: add setuptools dep and guard assets copy
The RTD build fails because pybtex imports pkg_resources, which requires
setuptools. Modern Python virtualenvs no longer include setuptools by
default. Add it as an explicit dependency.
Also guard the assets directory copy in conf.py with an existence check
to prevent the "cp: cannot stat 'assets'" error.
https://claude.ai/code/session_01T2FE3KjNU3yk8fjoc1WZvt
* Pin setuptools<72 to retain pkg_resources module
setuptools 72+ removed pkg_resources as a bundled module. RTD upgrades
setuptools to 82.0.0 before installing our requirements, so the
>=69.0.0 constraint was already satisfied. Pinning <72 forces a
downgrade to a version that still includes pkg_resources, which pybtex
requires.
https://claude.ai/code/session_01T2FE3KjNU3yk8fjoc1WZvt
* Remove dead assets copy block per review feedback
Delete the on_rtd branch that tried to copy a nonexistent assets
directory, and simplify to just `if not on_rtd`. Also remove the
now-unused subprocess import.
https://claude.ai/code/session_01T2FE3KjNU3yk8fjoc1WZvt
* Bump sphinxcontrib-bibtex to 2.6.5 and regenerate requirements.txt
Replace the setuptools<72 pin with a sphinxcontrib-bibtex upgrade per
review feedback. Version 2.6.5 pulls in pybtex 0.26.0 which no longer
depends on pkg_resources, fixing the RTD build without needing to pin
setuptools.
https://claude.ai/code/session_01T2FE3KjNU3yk8fjoc1WZvt
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent d1e77c4 commit 68e236e
3 files changed
Lines changed: 14 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
207 | 206 | | |
208 | 207 | | |
209 | 208 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 209 | + | |
216 | 210 | | |
217 | 211 | | |
218 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
| 51 | + | |
53 | 52 | | |
54 | 53 | | |
55 | | - | |
| 54 | + | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
72 | | - | |
73 | | - | |
74 | | - | |
| 71 | + | |
75 | 72 | | |
76 | 73 | | |
77 | 74 | | |
78 | 75 | | |
79 | 76 | | |
80 | 77 | | |
81 | | - | |
| 78 | + | |
82 | 79 | | |
83 | 80 | | |
84 | 81 | | |
| |||
91 | 88 | | |
92 | 89 | | |
93 | 90 | | |
94 | | - | |
| 91 | + | |
95 | 92 | | |
96 | | - | |
| 93 | + | |
97 | 94 | | |
98 | 95 | | |
99 | | - | |
100 | | - | |
| 96 | + | |
| 97 | + | |
101 | 98 | | |
102 | 99 | | |
103 | 100 | | |
| |||
0 commit comments