Skip to content

Commit d46482d

Browse files
committed
Port: Added requirements.in update
Allows integration via pip. Signed-off-by: Nicolae Dicu <[email protected]>
1 parent b37b806 commit d46482d

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ bazel_dep(name = "sphinx_rust", version = "0.0.0-dev")
7373
local_path_override(module_name = "sphinx_rust", path = "../sphinx-rust")
7474
```
7575

76+
- __docs-as-code__/docs.bzl:
77+
78+
```python
79+
def _incremental ...
80+
81+
py_binary(
82+
name = incremental_name,
83+
srcs = ["@score_docs_as_code//src:incremental.py"],
84+
deps = dependencies + ["@sphinx_rust//:sphinx_rust"],
85+
```
86+
7687
- create the dummy_crate in __score__ with the following structure and content:
7788

7889
```sh
@@ -116,4 +127,18 @@ mod tests {
116127
assert_eq!(result, 4);
117128
}
118129
}
119-
```
130+
```
131+
132+
It can be tested using requirements.in from docs-as-code as well but this is not that reliable as bazel will cache sphinx-rust:
133+
134+
- in __docs-as-code__/src/requirements.in:
135+
136+
```python
137+
sphinx-rust @ file:///mnt/d/qorix/forks/sphinx-rust
138+
```
139+
140+
- run pip packages update:
141+
142+
```sh
143+
bazel run //src:requirements.update
144+
```

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ classifiers = [
3737
"Topic :: Text Processing :: Markup",
3838
]
3939
dependencies = [
40-
"sphinx~=7.3"
40+
"sphinx>=7.3"
4141
]
4242

4343
[project.urls]

0 commit comments

Comments
 (0)