Skip to content

Commit

Permalink
Add versioneer.py for managing BentoML version (#253)
Browse files Browse the repository at this point in the history
* install versioneer

* don't auto format versioneer code

* use version managed by versioneer and VCS

* Update setup.cfg

* updates

* remove tag_prefix

* Fix tag_prefix

* move __version__ up

* auto format

* linter updates
  • Loading branch information
parano committed Aug 7, 2019
1 parent e3fef3a commit eaac7c7
Show file tree
Hide file tree
Showing 15 changed files with 2,373 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .flake8
@@ -1,4 +1,4 @@
[flake8] [flake8]
ignore = E203, E266, W503 ignore = E203, E266, W503, E402
max-line-length = 88 max-line-length = 88
exclude = proto exclude = proto, _version.py
1 change: 1 addition & 0 deletions .gitattributes
@@ -0,0 +1 @@
bentoml/_version.py export-subst
1 change: 1 addition & 0 deletions .pep8speaks.yml
Expand Up @@ -10,6 +10,7 @@ flake8:
- W503 - W503
exclude: exclude:
- proto - proto
- bentoml/_version.py


only_mention_files_with_errors: True only_mention_files_with_errors: True


Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Expand Up @@ -30,3 +30,5 @@ global-exclude *.pyo
global-exclude .git global-exclude .git
global-exclude .ipynb_checkpoints global-exclude .ipynb_checkpoints
global-exclude __pycache__ global-exclude __pycache__
include versioneer.py
include bentoml/_version.py
5 changes: 4 additions & 1 deletion bentoml/__init__.py
Expand Up @@ -16,9 +16,12 @@
from __future__ import division from __future__ import division
from __future__ import print_function from __future__ import print_function


from ._version import get_versions
__version__ = get_versions()['version']
del get_versions

from bentoml import handlers from bentoml import handlers
from bentoml.config import config from bentoml.config import config
from bentoml.version import __version__


from bentoml.service import ( from bentoml.service import (
BentoService, BentoService,
Expand Down

0 comments on commit eaac7c7

Please sign in to comment.