Skip to content

Commit 4fe7f97

Browse files
authored
Version 1.1.1 (#29)
Add deep test object Add storage root tests for E072, E072, E003d, E004a, E004b, + test cases Fix broken status extraction
1 parent 25e4381 commit 4fe7f97

22 files changed

+289
-117
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# ocfl-py changelog
22

3+
## 2020-09-22 v1.1.1
4+
5+
* Add deeply nested text object (`extra_fixtures/good-objects/ten_level_deep_directories.zip`)
6+
* Fix broken extraction of status of support for validation conditions
7+
38
## 2020-08-03 v1.1.0
49

510
* Change to use [PyFilesystem2](https://docs.pyfilesystem.org/en/latest/) for filesystem access which allows use of local filesystem, zip files, and S3. The S3 support is preliminary because it has a number of work-arounds to avoid PyFilesystem2's expectation that there are empty directrory objects

docs/demo_build_spec_examples.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ WARNING:ocfl.object:### Inventory for v1
9191
"type": "https://ocfl.io/1.0/spec/#inventory",
9292
"versions": {
9393
"v1": {
94-
"created": "2020-08-03T14:10:44.056484Z",
94+
"created": "2020-09-22T17:11:53.521490Z",
9595
"state": {
9696
"7dcc352f96c56dc...c31": [
9797
"foo/bar.xml"
@@ -158,7 +158,7 @@ WARNING:ocfl.object:### Inventory for v2
158158
"type": "https://ocfl.io/1.0/spec/#inventory",
159159
"versions": {
160160
"v1": {
161-
"created": "2020-08-03T14:10:44.056484Z",
161+
"created": "2020-09-22T17:11:53.521490Z",
162162
"state": {
163163
"7dcc352f96c56dc...c31": [
164164
"foo/bar.xml"
@@ -172,7 +172,7 @@ WARNING:ocfl.object:### Inventory for v2
172172
}
173173
},
174174
"v2": {
175-
"created": "2020-08-03T14:10:44.062561Z",
175+
"created": "2020-09-22T17:11:53.523211Z",
176176
"state": {
177177
"4d27c86b026ff70...b53": [
178178
"foo/bar.xml"
@@ -237,7 +237,7 @@ WARNING:ocfl.object:### Inventory for v3
237237
"type": "https://ocfl.io/1.0/spec/#inventory",
238238
"versions": {
239239
"v1": {
240-
"created": "2020-08-03T14:10:44.056484Z",
240+
"created": "2020-09-22T17:11:53.521490Z",
241241
"state": {
242242
"7dcc352f96c56dc...c31": [
243243
"foo/bar.xml"
@@ -251,7 +251,7 @@ WARNING:ocfl.object:### Inventory for v3
251251
}
252252
},
253253
"v2": {
254-
"created": "2020-08-03T14:10:44.062561Z",
254+
"created": "2020-09-22T17:11:53.523211Z",
255255
"state": {
256256
"4d27c86b026ff70...b53": [
257257
"foo/bar.xml"
@@ -263,7 +263,7 @@ WARNING:ocfl.object:### Inventory for v3
263263
}
264264
},
265265
"v3": {
266-
"created": "2020-08-03T14:10:44.065381Z",
266+
"created": "2020-09-22T17:11:53.524550Z",
267267
"state": {
268268
"4d27c86b026ff70...b53": [
269269
"foo/bar.xml"

docs/demo_ocfl_object_script.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The `--version` argument will show version number and exit
1010

1111
```
1212
> python ocfl-object.py --version
13-
ocfl-object.py is part of ocfl-py version 1.1.0
13+
ocfl-object.py is part of ocfl-py version 1.1.1
1414
```
1515

1616

@@ -35,7 +35,7 @@ WARNING:ocfl.object:### Inventory for v1
3535
"type": "https://ocfl.io/1.0/spec/#inventory",
3636
"versions": {
3737
"v1": {
38-
"created": "2020-08-03T14:10:46.870153Z",
38+
"created": "2020-09-22T17:11:54.810738Z",
3939
"state": {
4040
"43a43fe8a8a082d3b5343dfaf2fd0c8b8e370675b1f376e92e9994612c33ea255b11298269d72f797399ebb94edeefe53df243643676548f584fb8603ca53a0f": [
4141
"a_file.txt"
@@ -66,7 +66,7 @@ WARNING:ocfl.object:### Inventory for v1
6666
"type": "https://ocfl.io/1.0/spec/#inventory",
6767
"versions": {
6868
"v1": {
69-
"created": "2020-08-03T14:10:47.751210Z",
69+
"created": "2020-09-22T17:11:55.208197Z",
7070
"state": {
7171
"43a43fe8a8a082d3b5343dfaf2fd0c8b8e370675b1f376e92e9994612c33ea255b11298269d72f797399ebb94edeefe53df243643676548f584fb8603ca53a0f": [
7272
"a_file.txt"
@@ -91,15 +91,15 @@ WARNING:ocfl.object:### Inventory for v2
9191
"type": "https://ocfl.io/1.0/spec/#inventory",
9292
"versions": {
9393
"v1": {
94-
"created": "2020-08-03T14:10:47.751210Z",
94+
"created": "2020-09-22T17:11:55.208197Z",
9595
"state": {
9696
"43a43fe8a8a082d3b5343dfaf2fd0c8b8e370675b1f376e92e9994612c33ea255b11298269d72f797399ebb94edeefe53df243643676548f584fb8603ca53a0f": [
9797
"a_file.txt"
9898
]
9999
}
100100
},
101101
"v2": {
102-
"created": "2020-08-03T14:10:47.752348Z",
102+
"created": "2020-09-22T17:11:55.209107Z",
103103
"state": {
104104
"296e72b8fd5f7f0ac1473993600ae34953d5dab646f17e7b182b8648aff830d7bf01b56490777cb3e72b33fcc1ae520506badea1032252d1a55fd7362e269975": [
105105
"a_file.txt"
@@ -124,23 +124,23 @@ WARNING:ocfl.object:### Inventory for v3
124124
"type": "https://ocfl.io/1.0/spec/#inventory",
125125
"versions": {
126126
"v1": {
127-
"created": "2020-08-03T14:10:47.751210Z",
127+
"created": "2020-09-22T17:11:55.208197Z",
128128
"state": {
129129
"43a43fe8a8a082d3b5343dfaf2fd0c8b8e370675b1f376e92e9994612c33ea255b11298269d72f797399ebb94edeefe53df243643676548f584fb8603ca53a0f": [
130130
"a_file.txt"
131131
]
132132
}
133133
},
134134
"v2": {
135-
"created": "2020-08-03T14:10:47.752348Z",
135+
"created": "2020-09-22T17:11:55.209107Z",
136136
"state": {
137137
"296e72b8fd5f7f0ac1473993600ae34953d5dab646f17e7b182b8648aff830d7bf01b56490777cb3e72b33fcc1ae520506badea1032252d1a55fd7362e269975": [
138138
"a_file.txt"
139139
]
140140
}
141141
},
142142
"v3": {
143-
"created": "2020-08-03T14:10:47.753066Z",
143+
"created": "2020-09-22T17:11:55.210083Z",
144144
"state": {
145145
"43a43fe8a8a082d3b5343dfaf2fd0c8b8e370675b1f376e92e9994612c33ea255b11298269d72f797399ebb94edeefe53df243643676548f584fb8603ca53a0f": [
146146
"a_file.txt"

docs/demo_ocfl_sidecar_script.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The `--version` argument will show version number and exit
1010

1111
```
1212
> python ocfl-sidecar.py --version
13-
ocfl-sidecar.py is part of ocfl-py version 1.1.0
13+
ocfl-sidecar.py is part of ocfl-py version 1.1.1
1414
```
1515

1616

docs/demo_ocfl_store_script.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The `--version` argument will show version number and exit (but we still tave to
1010

1111
```
1212
> python ocfl-store.py --version --root=tmp/root --list
13-
ocfl-store.py is part of ocfl-py version 1.1.0
13+
ocfl-store.py is part of ocfl-py version 1.1.1
1414
```
1515

1616

docs/demo_using_bagit_bags.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ Taking the newly created OCFL object `/tmp/obj` we can `--extract` the `v4` cont
161161
INFO:ocfl.object:Extracted v4 into tmp/extracted_v4
162162
INFO:bagit:Creating bag for directory tmp/extracted_v4
163163
INFO:bagit:Creating data directory
164-
INFO:bagit:Moving my_content to /privatetmp/extracted_v4/tmp884jy6bw/my_content
165-
INFO:bagit:Moving /privatetmp/extracted_v4/tmp884jy6bw to data
164+
INFO:bagit:Moving my_content to /privatetmp/extracted_v4/tmpzk79a0t6/my_content
165+
INFO:bagit:Moving /privatetmp/extracted_v4/tmpzk79a0t6 to data
166166
INFO:bagit:Using 1 processes to generate manifests: sha512
167167
INFO:bagit:Generating manifest lines for file data/my_content/dracula.txt
168168
INFO:bagit:Generating manifest lines for file data/my_content/dunwich.txt
@@ -183,13 +183,13 @@ We note that the OCFL object had only one `content` file in `v4` but the extract
183183
> diff -r tmp/extracted_v4 tests/testdata/bags/uaa_v4
184184
diff -r tmp/extracted_v4/bag-info.txt tests/testdata/bags/uaa_v4/bag-info.txt
185185
1,2c1
186-
< Bag-Software-Agent: bagit.py v1.7.1.dev15+g6e14a50 <https://github.com/LibraryOfCongress/bagit-python>
187-
< Bagging-Date: 2020-08-03
186+
< Bag-Software-Agent: bagit.py v1.7.0 <https://github.com/LibraryOfCongress/bagit-python>
187+
< Bagging-Date: 2020-09-22
188188
---
189189
> Bagging-Date: 2020-01-04
190190
diff -r tmp/extracted_v4/tagmanifest-sha512.txt tests/testdata/bags/uaa_v4/tagmanifest-sha512.txt
191191
2c2
192-
< ad006054af3b49947954d7d9a70279a6aa65e6ee3a5a909a1f08ef5fbbedda434f35f915c18e1bdecbfc0558e0c08a7725882162193804d0fb99dc908cd6decc bag-info.txt
192+
< 095d7cac097882aa2d6d63a34ff1bad13bef794796e4dad3f5474fffcaaf144b8f28e78665cca7c6aadfa9f7212a936060703d9428ef43b17425e1447eab01b6 bag-info.txt
193193
---
194194
> 10624e6d45462def7af66d1a0d977606c7b073b01809c1d42258cfab5c34a275480943cbe78044416aee1f23822cc3762f92247b8f39b5c6ddc5ae32a8f94ce5 bag-info.txt
195195
```

0 commit comments

Comments
 (0)