You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5692bb7
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: AGENTS.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,28 @@
1
1
# Repository Instructions
2
2
3
3
## Running tests
4
-
-**Julia tests**: Run from the project root with `julia --project -e 'using Pkg; Pkg.test()'`. Expect a warning about the General registry being unreachable in locked-down environments; the suite still finishes (PyCall tests are marked broken/Skipped).
4
+
-**Julia tests**: Run from the project root with `julia --project -e 'using Pkg; Pkg.test()'`. Expect a warning about the General registry being unreachable in locked-down environments; PyCall tests are marked broken/skipped. With the currently installed Julia 1.13.1, the functional tests pass but Aqua's persistent-task subprocess check may fail because its `done.log` is not created.
5
5
-**Python tests**:
6
6
- Copy `pysrc/juliacall/juliapkg-dev.json` to `pysrc/juliacall/juliapkg.json` before running (do **not** commit this copy).
7
7
- Execute with `uv run pytest -s --nbval ./pytest` (add `--cov=pysrc` when coverage is needed).
8
-
- Sometimes `juliapkg` requires Julia 1.10–1.11; `juliaup` already provides 1.11.7 in this environment.
8
+
- Sometimes `juliapkg` requires Julia 1.10–1.11. Juliaup provides Julia 1.11.9
9
+
through the `1.11` channel. JuliaPkg selecting Julia 1.13.1 under
10
+
uv's downloaded Python 3.10 fails to load `libjulia-codegen` because the Python
11
+
process has loaded a `libstdc++.so.6` that lacks `GLIBCXX_3.4.30`. Set
12
+
`PYTHON_JULIAPKG_EXE` to the absolute path of the Julia 1.11 executable when
13
+
running this combination; `JULIAUP_CHANNEL=1.11` does not affect JuliaPkg's
14
+
executable discovery here. To test Julia 1.12 or 1.13 instead, also prepend the
15
+
repository's `.CondaPkg/.pixi/envs/default/lib` directory to `LD_LIBRARY_PATH` so
16
+
the process uses its newer `libstdc++`.
17
+
-`julia --project=docs docs/make.jl` requires a valid Git `origin` so Documenter can infer
18
+
source links; it fails during `makedocs` in checkouts without one.
9
19
10
20
The majority of tests live in the Julia package; Python tests cover functionality that cannot be exercised from Julia (e.g., JuliaCall-specific behavior). Run both suites—typically Julia first—in whichever order makes sense.
11
21
12
22
## Branch and CI compatibility
13
23
- On `v1`, JuliaCall uses `jl_eval` (returning a Julia wrapper), whereas `main` uses `seval`. Adapt tests brought over from `main` accordingly.
14
24
- The benchmark suite is shared across the compared revisions: `main` uses `pydel!`, while `v1` uses `unsafe_pydel`.
25
+
-`main` does not have `@pyregion`. Benchmark region wrappers must select a plain-body fallback before macro expansion; a runtime conditional around an unavailable macro still fails when loading the suite.
15
26
- Julia CI caches can preserve Conda's build metadata without its root environment. Rebuild `Conda` before building `PyCall` or running tests to recreate that directory.
16
27
- In restricted sandboxes, both suites need approval to write to the shared caches (`~/.julia` and `~/.cache/uv`).
17
28
-`pysrc/juliacall/juliapkg.json` is tracked; restore its original contents after using the development copy for Python tests.
0 commit comments