Skip to content

Commit

Permalink
better v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanasco committed Apr 26, 2019
1 parent 2eb8c2a commit 894f866
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
5 changes: 4 additions & 1 deletion metadata_utils/__init__.py
@@ -1,8 +1,11 @@
import unicodedata


from xml.sax.saxutils import escape, unescape

__VERSION__ = '0.1.0'


# ==============================================================================


# https://wiki.python.org/moin/EscapingHtml
Expand Down
14 changes: 12 additions & 2 deletions setup.py
@@ -1,7 +1,7 @@
"""metadata_utils installation script.
"""
import os

import re
from setuptools import setup
from setuptools import find_packages

Expand All @@ -13,12 +13,22 @@
except:
pass

# store version in the init.py
with open(os.path.join(os.path.dirname(__file__),
'metadata_utils',
'__init__.py'
)
) as v_file:
VERSION = re.compile(
r".*__VERSION__ = '(.*?)'",
re.S).match(v_file.read()).group(1)

requires = []

setup(
name="metadata_utils",
description="Lightweight Metadata Support",
version="0.0.2",
version=VERSION,
url="https://github.com/jvanasco/metadata_utils",
author="Jonathan Vanasco",
author_email="jonathan@findmeon.com",
Expand Down

0 comments on commit 894f866

Please sign in to comment.