Skip to content

Commit 0985a8a

Browse files
author
Nolan Woods
committed
Fix dependency loop when loading version
1 parent 94ed139 commit 0985a8a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env python
22
from setuptools import setup, find_packages
3-
from biopython_convert.__version import __versionstr__
3+
4+
import re
5+
with open('biopython_convert/__version.py') as version_file:
6+
__versionstr__ = '.'.join(re.search(r"__version__ = \[(\d+), (\d+), (\d+)\]", version_file.read(), re.M).group()[1:])
47

58
with open('README.rst') as readme:
69
setup(

0 commit comments

Comments
 (0)