diff --git a/README.md b/README.md index 87a906b..df8dfe0 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,12 @@ extent, out_size = tiles[i] ## Installation: +#### from pip +```bash +pip install tiling +``` + +#### from sources Package installation is very simple ```bash pip install git+https://github.com/vfdev-5/ImageTilingUtils.git diff --git a/docs/source/conf.py b/docs/source/conf.py index cc05ff7..60624f8 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -12,9 +12,6 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # -import os -import sys -sys.path.insert(0, os.path.abspath('../..')) import tiling import sphinx_rtd_theme from recommonmark.parser import CommonMarkParser @@ -27,9 +24,9 @@ author = 'vfdev-5' # The short X.Y version -version = 'master (' + tiling.__version__ + ' )' +version = tiling.__version__ # The full version, including alpha/beta/rc tags -release = 'master' +release = tiling.__version__ # -- General configuration --------------------------------------------------- diff --git a/tests/test_const_stride.py b/tests/test_const_stride.py index dc47523..9cc4070 100644 --- a/tests/test_const_stride.py +++ b/tests/test_const_stride.py @@ -12,6 +12,10 @@ class TestConstStrideTiles(unittest.TestCase): + def test_get_version(self): + from tiling import __version__ + self.assertTrue(isinstance(__version__, str)) + def test_wrong_args(self): with self.assertRaises(AssertionError): diff --git a/tiling/__init__.py b/tiling/__init__.py index 66c6473..da1cdb4 100644 --- a/tiling/__init__.py +++ b/tiling/__init__.py @@ -1,10 +1,9 @@ from __future__ import absolute_import from abc import ABCMeta, abstractmethod - import numpy as np -__version__ = '0.1.1' +__version__ = '0.1.2' class BaseTiles(object):