Skip to content

Commit

Permalink
Release 1.1.0, remove null values from JSON file
Browse files Browse the repository at this point in the history
  • Loading branch information
RhetTbull committed Nov 11, 2022
1 parent 6e173fa commit 226679f
Show file tree
Hide file tree
Showing 9 changed files with 207 additions and 160 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.0.0
current_version = 1.1.0
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
serialize = {major}.{minor}.{patch}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ rights kMDItemRights; com.apple.metadata:kMDItemRights;
securitymethod kMDItemSecurityMethod;
com.apple.metadata:kMDItemSecurityMethod; The
security or encryption method used for the file.;
number
string
speed kMDItemSpeed; com.apple.metadata:kMDItemSpeed; The
speed of the item, in kilometers per hour.; string
starrating kMDItemStarRating;
Expand Down
12 changes: 12 additions & 0 deletions cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
""" stand alone command line script for use with pyinstaller
Note: This is *not* the cli that "python3 -m pip install osxmetadata" or "python setup.py install" would install;
it's merely a wrapper around __main__.py to allow pyinstaller to work
This script is built with `doit build_exe` and the resulting executable is zipped with `doit zip_exe`
"""

from osxmetadata.__main__ import cli

if __name__ == "__main__":
cli()
11 changes: 10 additions & 1 deletion dodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def task_gh_docs():
]
}


def task_clean_build_files():
"""Clean out old build files"""
return {
Expand All @@ -42,7 +43,15 @@ def task_build_exe():
"""Build exe with pyinstaller"""
return {
"actions": [
'pyinstaller --onefile --hidden-import="pkg_resources.py2_warn" --name osxmetadata cli.py'
'pyinstaller --onefile --hidden-import="pkg_resources.py2_warn" --name osxmetadata '
"--add-data osxmetadata/attribute_data/audio_attributes.json:osxmetadata/attribute_data "
"--add-data osxmetadata/attribute_data/common_attributes.json:osxmetadata/attribute_data "
"--add-data osxmetadata/attribute_data/filesystem_attributes.json:osxmetadata/attribute_data "
"--add-data osxmetadata/attribute_data/image_attributes.json:osxmetadata/attribute_data "
"--add-data osxmetadata/attribute_data/mdimporter_constants.json:osxmetadata/attribute_data "
"--add-data osxmetadata/attribute_data/nsurl_resource_keys.json:osxmetadata/attribute_data "
"--add-data osxmetadata/attribute_data/video_attributes.json:osxmetadata/attribute_data "
"cli.py"
]
}

Expand Down
2 changes: 1 addition & 1 deletion osxmetadata/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
""" osxmetadata version """

__version__ = "1.0.0"
__version__ = "1.1.0"
Loading

0 comments on commit 226679f

Please sign in to comment.