Skip to content

Commit

Permalink
Various fixes and deployment of v 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nbarraille committed Mar 14, 2019
1 parent 211454d commit 79b914e
Show file tree
Hide file tree
Showing 10 changed files with 225 additions and 39 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ __pycache__/
# C extensions
*.so

# Env
.env

# Distribution / packaging
.Python
build/
Expand Down
24 changes: 24 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Release History

## dev

### Improvements

- Allow to set host and api key through environment variables

## 0.1.1 (2019-04-14)

### Bug Fixes

- Include numpy as dependency

## 0.1.0 (2019-04-14)

### Features

- Initial Release with support for Scikit Learn models and pipeline
- Deploy models
- Get single predictions from deployed models
- Get batch predictions from deployed models
- Rename models
- Delete models
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.PHONY: build

clean:
rm -rf build
rm -rf dist

build:
$(MAKE) clean
pipenv run python3 setup.py sdist bdist_wheel

dist_pypi:
$(MAKE) build
pipenv run twine upload dist/*

test:
env $(cat .env | xargs) pipenv run pytest -s tests
3 changes: 3 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ autopep8 = "*"
pytest = "*"
pylint = "*"
ipython = "*"
setuptools = "*"
wheel = "*"
twine = "*"

[packages]
requests = "*"
Expand Down
136 changes: 115 additions & 21 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions blazee/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
# Or predict a batch
>>> preds = model.batch_predict(X)
"""
__version__ = '0.1.1'

from .client import Client as Blazee
from .model import BlazeeModel
from .prediction import Prediction

__all__ = ["Blazee", "BlazeeModel", "Prediction", "__version__"]

0 comments on commit 79b914e

Please sign in to comment.