Skip to content

Commit

Permalink
Bump to 1.10.0.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
psobot committed Jun 14, 2020
1 parent 1b46ebf commit ccaa95f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion keynote_parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import keynote_parser.macos_app_version

__major_version__ = 1
__patch_version__ = 0
__patch_version__ = 1
__supported_keynote_version__ = keynote_parser.macos_app_version.MacOSAppVersion(
"10.0", "6748", "1A171"
)
Expand Down
19 changes: 8 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from setuptools import setup, find_packages
import os

import keynote_parser
import codecs
import re

# io.open is needed for projects that support Python 2.7
# It ensures open() defaults to text mode with universal newlines,
Expand Down Expand Up @@ -37,18 +37,15 @@ def read(*filenames, **kwargs):
return sep.join(buf)


def find_meta(meta):
"""Extract __*meta*__ from META_FILE."""
re_str = r"^__{meta}__ = ['\"]([^'\"]*)['\"]".format(meta=meta)
meta_match = re.search(re_str, META_FILE, re.M)
if meta_match:
return meta_match.group(1)
raise RuntimeError("Unable to find __{meta}__ string.".format(meta=meta))
NAME = "keynote-parser"


NAME = "keynote-parser"
PACKAGE_NAME = "keynote_parser"
META_FILE = read(os.path.join(PACKAGE_NAME, "__init__.py"))
def find_meta(meta):
attr = getattr(keynote_parser, "__{meta}__".format(meta=meta), None)
if not attr:
raise RuntimeError("Unable to find __{meta}__ string.".format(meta=meta))
return attr


# Arguments marked as "Required" below must be included for upload to PyPI.
# Fields marked as "Optional" may be commented out.
Expand Down

0 comments on commit ccaa95f

Please sign in to comment.