Skip to content

Commit 4610e56

Browse files
committed
Update docs conf.py, Readme, tests and version
1 parent b8e4edf commit 4610e56

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ extent, out_size = tiles[i]
4141

4242
## Installation:
4343

44+
#### from pip
45+
```bash
46+
pip install tiling
47+
```
48+
49+
#### from sources
4450
Package installation is very simple
4551
```bash
4652
pip install git+https://github.com/vfdev-5/ImageTilingUtils.git

docs/source/conf.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
# add these directories to sys.path here. If the directory is relative to the
1313
# documentation root, use os.path.abspath to make it absolute, like shown here.
1414
#
15-
import os
16-
import sys
17-
sys.path.insert(0, os.path.abspath('../..'))
1815
import tiling
1916
import sphinx_rtd_theme
2017
from recommonmark.parser import CommonMarkParser
@@ -27,9 +24,9 @@
2724
author = 'vfdev-5'
2825

2926
# The short X.Y version
30-
version = 'master (' + tiling.__version__ + ' )'
27+
version = tiling.__version__
3128
# The full version, including alpha/beta/rc tags
32-
release = 'master'
29+
release = tiling.__version__
3330

3431

3532
# -- General configuration ---------------------------------------------------

tests/test_const_stride.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212

1313
class TestConstStrideTiles(unittest.TestCase):
1414

15+
def test_get_version(self):
16+
from tiling import __version__
17+
self.assertTrue(isinstance(__version__, str))
18+
1519
def test_wrong_args(self):
1620

1721
with self.assertRaises(AssertionError):

tiling/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
from __future__ import absolute_import
22
from abc import ABCMeta, abstractmethod
3-
43
import numpy as np
54

65

7-
__version__ = '0.1.1'
6+
__version__ = '0.1.2'
87

98

109
class BaseTiles(object):

0 commit comments

Comments
 (0)