Skip to content

Commit 568ac6f

Browse files
0-thrvagg
authored andcommitted
docs: add python dag-pb implementation to readme and makefile
1 parent 7c8c9ba commit 568ac6f

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
JS_DIR=js
22
GO_DIR=go
33
RUST_DIR=rust
4+
PYTHON_DIR=python
45

5-
.PHONY: all testjs testgo testrust _build car build clean
6+
.PHONY: all testjs testgo testrust testpy _build car build clean
67

78
all: testjs testgo testrust
89

@@ -18,6 +19,9 @@ testgo:
1819
testrust:
1920
cd $(RUST_DIR) && cargo test -- --nocapture
2021

22+
testpy:
23+
cd $(PYTHON_DIR) && pytest
24+
2125
_build:
2226
cd $(JS_DIR) && npm run build
2327

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ Fixtures are tested against the [libipld](https://github.com/ipld/libipld) stack
6565
* DAG-CBOR: [libipld-cbor](https://crates.io/crates/libipld-cbor)
6666
* DAG-JSON: [libipld-json](https://crates.io/crates/libipld-json)
6767

68+
### Python
69+
70+
Fixtures are tested against the [ipld-dag-pb](https://github.com/storacha/py-ipld-dag-pb)
71+
library:
72+
73+
* DAG-PB: [ipld-dag-pb](https://pypi.org/project/ipld-dag-pb/)
74+
6875
## Running tests
6976

7077
### JavaScript
@@ -104,6 +111,18 @@ Or in the [rust](./rust/) directory, run:
104111
cargo test -- --nocapture
105112
```
106113

114+
## Python
115+
116+
```bash
117+
make testpy
118+
```
119+
120+
Or in the [python](./python/) directory, run:
121+
122+
```bash
123+
pytest
124+
```
125+
107126
## Generating testmark output for ipld.io
108127

109128
Each codec tested here has a corresponding file in the https://github.com/ipld/ipld repository which generates the https://ipld.io website containing the fixture data in [testmark](https://github.com/warpfork/go-testmark) format. The filename per codec is is `specs/codecs/<CODEC>/fixtures/cross-codec/index.md`.

0 commit comments

Comments
 (0)