Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Mar 25, 2020
1 parent e7a13ce commit 55fe763
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# from importlib import import_module
from pathlib import Path
from os import path
import re
from setuptools import find_packages, setup


def get_version():
text = Path(__file__).parent.joinpath("markdown_it", "__init__.py").read_text()
text = open(path.join(path.dirname(__file__), "markdown_it", "__init__.py")).read()
match = re.compile(r"^__version__\s*\=\s*[\"\']([^\s\'\"]+)", re.M).search(text)
return match.group(1)

Expand Down

0 comments on commit 55fe763

Please sign in to comment.