Skip to content

Commit

Permalink
Setup entry_points to work with MLBlocks>=0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
csala committed Jan 10, 2019
1 parent 97343c2 commit bf7a4f5
Show file tree
Hide file tree
Showing 101 changed files with 5 additions and 10 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ include CONTRIBUTING.rst
include HISTORY.md
include LICENSE
include README.md
include mlprimitives/jsons/*.json

recursive-include tests *
recursive-exclude * __pycache__
Expand Down
1 change: 1 addition & 0 deletions mlprimitives/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

from mlprimitives.evaluation import score_pipeline

MLPRIMITIVES_JSONS_PATH = os.path.join(os.path.dirname(__file__), 'jsons')
LOGGER = logging.getLogger(__name__)


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 3 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,6 @@
}


json_primitives = glob.glob('mlblocks_primitives/**/*.json', recursive=True)
data_files = defaultdict(list)
for primitive_path in json_primitives:
parts = primitive_path.split('/')
dir_path = parts[1:-1]
install_path = os.path.join('mlblocks_primitives', *dir_path)
data_files[install_path].append(primitive_path)


setup(
author="MIT Data To AI Lab",
author_email='[email protected]',
Expand All @@ -105,12 +96,14 @@
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
data_files = list(data_files.items()),
description="MLBlocks Primitives",
entry_points = {
'console_scripts': [
'mlprimitives=mlprimitives:_main'
],
'mlprimitives': [
'jsons_path=mlprimitives:MLPRIMITIVES_JSONS_PATH'
]
},
extras_require=extras_require,
install_requires=install_requires,
Expand Down

0 comments on commit bf7a4f5

Please sign in to comment.