Skip to content

Commit 255a128

Browse files
committed
Fixed backup database to be conformant JSON, #56
1 parent a01c4bb commit 255a128

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

dev_requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
pytest==7.1.2
1+
build==0.8.0
22
pyinstaller==5.2
3+
pytest==7.1.2

osxmetadata/backup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def write_backup_file(backup_file, backup_data):
3232
as returned by json.loads(OSXMetaData.to_json())"""
3333

3434
with open(backup_file, mode="w") as fp:
35-
json.dump(list(backup_data.values()), fp)
35+
json.dump(list(backup_data.values()), fp, indent=2)
3636

3737

3838
def load_backup_file(backup_file):

requirements.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
xattr>=0.9.7
2-
click>=7.0
31
bitstring==3.1.9
2+
click>=7.0
3+
py-applescript==1.0.2
44
pyobjc-core
55
pyobjc-framework-AppleScriptKit
66
pyobjc-framework-AppleScriptObjC
7-
py-applescript==1.0.2
7+
pyobjc-framework-AVFoundation
8+
pyobjc-framework-CoreMedia
9+
pyobjc-framework-Quartz
10+
twine==3.4.1
811
wheel==0.36.2
9-
twine==3.4.1
12+
xattr>=0.9.7

0 commit comments

Comments
 (0)