Skip to content

Commit

Permalink
Merge pull request #1 from kblin/setup-fix
Browse files Browse the repository at this point in the history
setup: Can't import from deepbgc when first installing
  • Loading branch information
Microbiology authored Feb 1, 2019
2 parents 68c6576 + c46bf04 commit e3fb4db
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from setuptools import setup, find_packages
from deepbgc import VERSION

install_requires = [
'argparse',
Expand All @@ -12,9 +12,17 @@
'matplotlib'
]

def get_version():
for line in open(os.path.join('deepbgc', '__init__.py'), 'r'):
if line.startswith('VERSION'):
break

_, _, version_str = line.strip().split()
return version_str[1:-1]

setup(
name='deepbgc',
version=VERSION,
version=get_version(),
description='DeepBGC - Biosynthetic Gene Cluster detection and classification',
long_description=open('README.md', 'r').read(),
author='David Příhoda, Geoffrey Hannigan',
Expand Down

0 comments on commit e3fb4db

Please sign in to comment.