Skip to content

Commit

Permalink
release/0.7.1: Remove package import with further dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nok committed Jan 20, 2019
1 parent 031ebae commit bc8b12e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sklearn_porter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from os.path import join
from json import load

from sklearn_porter.Porter import Porter


def _load_meta(path):
"""
Expand All @@ -19,6 +17,8 @@ def _load_meta(path):
meta = {k: v.decode('utf-8') if isinstance(v, bytes) else v
for k, v in meta.items()}

src_dir = abspath(dirname(path))

if 'requirements' in meta and \
str(meta['requirements']).startswith('file://'):
req_path = str(meta['requirements'])[7:]
Expand All @@ -37,8 +37,7 @@ def _load_meta(path):
return meta


src_dir = abspath(dirname(__file__))
package = join(src_dir, 'package.json')
package = join(abspath(dirname(__file__)), 'package.json')
meta = _load_meta(package)

__author__ = meta.get('author')
Expand Down

0 comments on commit bc8b12e

Please sign in to comment.