Skip to content

Commit

Permalink
Update docs conf.py, Readme, tests and version
Browse files Browse the repository at this point in the history
  • Loading branch information
vfdev-5 committed Jun 2, 2018
1 parent b8e4edf commit 4610e56
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 2 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ---------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions tests/test_const_stride.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
3 changes: 1 addition & 2 deletions tiling/__init__.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down

0 comments on commit 4610e56

Please sign in to comment.