sourceledger 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sourceledger-0.3.0 → sourceledger-0.3.1}/PKG-INFO +21 -5
- {sourceledger-0.3.0 → sourceledger-0.3.1}/README.md +20 -4
- {sourceledger-0.3.0 → sourceledger-0.3.1}/pyproject.toml +1 -1
- {sourceledger-0.3.0 → sourceledger-0.3.1}/pyproject.toml.orig +1 -1
- {sourceledger-0.3.0 → sourceledger-0.3.1}/src/sourceledger/ledger.py +6 -2
- {sourceledger-0.3.0 → sourceledger-0.3.1}/LICENSE +0 -0
- {sourceledger-0.3.0 → sourceledger-0.3.1}/src/sourceledger/__init__.py +0 -0
- {sourceledger-0.3.0 → sourceledger-0.3.1}/src/sourceledger/cli.py +0 -0
- {sourceledger-0.3.0 → sourceledger-0.3.1}/src/sourceledger/py.typed +0 -0
- {sourceledger-0.3.0 → sourceledger-0.3.1}/src/sourceledger/sources.schema.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sourceledger
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Fetch, verify and validate the public sources a dataset is built from, with a provenance record for every download
|
|
5
5
|
Keywords: provenance,data pipeline,reproducibility,open data,research software,FAIR
|
|
6
6
|
Author: Simon van Lierde
|
|
@@ -72,16 +72,31 @@ pass its path:
|
|
|
72
72
|
|
|
73
73
|
```sh
|
|
74
74
|
uvx pypi-attestations verify pypi --repository https://github.com/simonvanlierde/sourceledger \
|
|
75
|
-
sourceledger-0.3.
|
|
75
|
+
sourceledger-0.3.1-py3-none-any.whl
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
From 0.2.0, GitHub also keeps a signed build-provenance attestation for each file:
|
|
79
79
|
|
|
80
80
|
```sh
|
|
81
|
-
gh attestation verify sourceledger-0.3.
|
|
81
|
+
gh attestation verify sourceledger-0.3.1-py3-none-any.whl --repo simonvanlierde/sourceledger
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
Both fail unless the file is byte for byte the one this repository's workflow built.
|
|
85
|
+
From 0.3.1, the same provenance is also attached to each GitHub release as
|
|
86
|
+
`sourceledger-<version>.sigstore.json`.
|
|
87
|
+
|
|
88
|
+
You can also rebuild a release from its tag and compare. Built with the uv version the
|
|
89
|
+
release workflow pins (0.13.1 for 0.3.1), the wheel and sdist match the ones on PyPI byte
|
|
90
|
+
for byte:
|
|
91
|
+
|
|
92
|
+
```sh
|
|
93
|
+
git clone https://github.com/simonvanlierde/sourceledger && cd sourceledger
|
|
94
|
+
mkdir sl-0.3.1 && git archive v0.3.1 | tar -x -C sl-0.3.1
|
|
95
|
+
uvx --from uv==0.13.1 uv build sl-0.3.1 -o dist
|
|
96
|
+
sha256sum dist/*
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Compare the hashes with the ones under "Download files" on PyPI.
|
|
85
100
|
|
|
86
101
|
## Quick start
|
|
87
102
|
|
|
@@ -145,10 +160,11 @@ Each `[[source]]` table takes these keys:
|
|
|
145
160
|
keys are checked when the manifest loads. Keys not listed here are kept for your own reader.
|
|
146
161
|
|
|
147
162
|
For checks in an editor with a TOML language server (Tombi, Taplo), put this line at the
|
|
148
|
-
top of `sources.toml
|
|
163
|
+
top of `sources.toml`. `init` writes it, with the version you have installed in place of
|
|
164
|
+
`v0.3.1`:
|
|
149
165
|
|
|
150
166
|
```toml
|
|
151
|
-
#:schema https://raw.githubusercontent.com/simonvanlierde/sourceledger/
|
|
167
|
+
#:schema https://raw.githubusercontent.com/simonvanlierde/sourceledger/v0.3.1/src/sourceledger/sources.schema.json
|
|
152
168
|
```
|
|
153
169
|
|
|
154
170
|
The schema accepts exactly what sourceledger accepts. A test keeps the two in step.
|
|
@@ -46,16 +46,31 @@ pass its path:
|
|
|
46
46
|
|
|
47
47
|
```sh
|
|
48
48
|
uvx pypi-attestations verify pypi --repository https://github.com/simonvanlierde/sourceledger \
|
|
49
|
-
sourceledger-0.3.
|
|
49
|
+
sourceledger-0.3.1-py3-none-any.whl
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
From 0.2.0, GitHub also keeps a signed build-provenance attestation for each file:
|
|
53
53
|
|
|
54
54
|
```sh
|
|
55
|
-
gh attestation verify sourceledger-0.3.
|
|
55
|
+
gh attestation verify sourceledger-0.3.1-py3-none-any.whl --repo simonvanlierde/sourceledger
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
Both fail unless the file is byte for byte the one this repository's workflow built.
|
|
59
|
+
From 0.3.1, the same provenance is also attached to each GitHub release as
|
|
60
|
+
`sourceledger-<version>.sigstore.json`.
|
|
61
|
+
|
|
62
|
+
You can also rebuild a release from its tag and compare. Built with the uv version the
|
|
63
|
+
release workflow pins (0.13.1 for 0.3.1), the wheel and sdist match the ones on PyPI byte
|
|
64
|
+
for byte:
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
git clone https://github.com/simonvanlierde/sourceledger && cd sourceledger
|
|
68
|
+
mkdir sl-0.3.1 && git archive v0.3.1 | tar -x -C sl-0.3.1
|
|
69
|
+
uvx --from uv==0.13.1 uv build sl-0.3.1 -o dist
|
|
70
|
+
sha256sum dist/*
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Compare the hashes with the ones under "Download files" on PyPI.
|
|
59
74
|
|
|
60
75
|
## Quick start
|
|
61
76
|
|
|
@@ -119,10 +134,11 @@ Each `[[source]]` table takes these keys:
|
|
|
119
134
|
keys are checked when the manifest loads. Keys not listed here are kept for your own reader.
|
|
120
135
|
|
|
121
136
|
For checks in an editor with a TOML language server (Tombi, Taplo), put this line at the
|
|
122
|
-
top of `sources.toml
|
|
137
|
+
top of `sources.toml`. `init` writes it, with the version you have installed in place of
|
|
138
|
+
`v0.3.1`:
|
|
123
139
|
|
|
124
140
|
```toml
|
|
125
|
-
#:schema https://raw.githubusercontent.com/simonvanlierde/sourceledger/
|
|
141
|
+
#:schema https://raw.githubusercontent.com/simonvanlierde/sourceledger/v0.3.1/src/sourceledger/sources.schema.json
|
|
126
142
|
```
|
|
127
143
|
|
|
128
144
|
The schema accepts exactly what sourceledger accepts. A test keeps the two in step.
|
|
@@ -62,8 +62,12 @@ FETCH_LOG = Path("data/fetches.jsonl")
|
|
|
62
62
|
# Written by build beside the outputs.
|
|
63
63
|
DATAPACKAGE = "datapackage.json"
|
|
64
64
|
_DATAPACKAGE_PROFILE = "https://datapackage.org/profiles/2.0/datapackage.json"
|
|
65
|
-
#
|
|
66
|
-
|
|
65
|
+
# A manifest's first line names it, for an editor to check the file. The copy at this
|
|
66
|
+
# version's tag, not the $id on main: main can accept or refuse keys this version doesn't.
|
|
67
|
+
_SCHEMA_URL = (
|
|
68
|
+
f"https://raw.githubusercontent.com/simonvanlierde/sourceledger/v{version('sourceledger')}"
|
|
69
|
+
"/src/sourceledger/sources.schema.json"
|
|
70
|
+
)
|
|
67
71
|
_STARTER = f"""#:schema {_SCHEMA_URL}
|
|
68
72
|
|
|
69
73
|
# One [[source]] table per input. Uncomment the example and point it at your own source.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|