Skip to content
Permalink
Browse files

Add versioneer.py for managing BentoML version (#253)

* 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 eaac7c7404aef8d0fcf7765ba22ccb6255554ab5
Showing with 2,373 additions and 29 deletions.
  1. +2 −2 .flake8
  2. +1 −0 .gitattributes
  3. +1 −0 .pep8speaks.yml
  4. +2 −0 MANIFEST.in
  5. +4 −1 bentoml/__init__.py
  6. +520 −0 bentoml/_version.py
  7. +1 −1 bentoml/archive/config.py
  8. +1 −1 bentoml/deployment/operator.py
  9. +1 −1 bentoml/service_env.py
  10. +0 −15 bentoml/version.py
  11. +1 −1 pylintrc
  12. +2 −0 pyproject.toml
  13. +12 −0 setup.cfg
  14. +3 −7 setup.py
  15. +1,822 −0 versioneer.py
@@ -1,4 +1,4 @@
[flake8]
ignore = E203, E266, W503
ignore = E203, E266, W503, E402
max-line-length = 88
exclude = proto
exclude = proto, _version.py
@@ -0,0 +1 @@
bentoml/_version.py export-subst
@@ -10,6 +10,7 @@ flake8:
- W503
exclude:
- proto
- bentoml/_version.py

only_mention_files_with_errors: True

@@ -30,3 +30,5 @@ global-exclude *.pyo
global-exclude .git
global-exclude .ipynb_checkpoints
global-exclude __pycache__
include versioneer.py
include bentoml/_version.py
@@ -16,9 +16,12 @@
from __future__ import division
from __future__ import print_function

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

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

from bentoml.service import (
BentoService,

0 comments on commit eaac7c7

Please sign in to comment.
You can’t perform that action at this time.