Skip to content

Commit

Permalink
Manually extract package version when concurrent.futures package prev…
Browse files Browse the repository at this point in the history
…ents importing __version__ from package
  • Loading branch information
dchevell committed Aug 26, 2018
1 parent 5331aba commit 03acb08
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Expand Up @@ -2,7 +2,13 @@
from setuptools.command.test import test
import sys

from flask_executor import __version__ as version
try:
from flask_executor import __version__ as version
except ImportError:
import re
pattern = re.compile(r"__version__ = '(.*)'")
with open('flask_executor/__init__.py') as f:
version = pattern.search(f.read()).group(1)


with open("README.md", "r") as fh:
Expand Down

0 comments on commit 03acb08

Please sign in to comment.