Skip to content

Commit 4d2028e

Browse files
v0.3.2
1 parent 1196fa2 commit 4d2028e

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

CHANGES.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGES
22
=======
33

4+
0.3.2 (2016-10-28)
5+
----------------
6+
7+
- FMIndex.search() returns list
8+
49
0.3 (2014-11-24)
510
----------------
611

setup.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
from codecs import open
23
import os
34
import re
45
from setuptools import setup, Extension
@@ -7,27 +8,28 @@
78

89
shellinford_cc = glob.glob('cpp_src/*.cc')
910
shellinford_headers = glob.glob('cpp_src/*.h')
10-
with open(os.path.join('shellinford', '__init__.py'), 'r') as f:
11+
with open(os.path.join('shellinford', '__init__.py'), 'r', encoding='utf8') as f:
1112
version = re.compile(
12-
r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)
13+
r".*__version__ = '(.*?)'", re.S).match(f.read()).group(1)
1314

14-
setup (
15-
name = 'shellinford',
16-
version = version,
17-
author = "Yukino Ikegami",
15+
setup(
16+
name='shellinford',
17+
version=version,
18+
author="Yukino Ikegami",
1819
author_email='[email protected]',
1920
url='https://github.com/ikegami-yukino/shellinford-python',
20-
description = """Wavelet Matrix/Tree succinct data structure for full text search (using shellinford C++ library)""",
21-
long_description = open('README.rst').read() + "\n" + open('CHANGES.rst').read(),
22-
keywords = ['full text search', 'FM-index', 'Wavelet Matrix'],
21+
description="""Wavelet Matrix/Tree succinct data structure for full text search (using shellinford C++ library)""",
22+
long_description='%s\n\n%s' % (open('README.rst', encoding='utf8').read(),
23+
open('CHANGES.rst', encoding='utf8').read()),
24+
keywords=['full text search', 'FM-index', 'Wavelet Matrix'],
2325

24-
ext_modules = [
26+
ext_modules=[
2527
Extension(
2628
'_shellinford',
2729
sources=['shellinford_wrap.cxx'] + shellinford_cc,
2830
include_dirs=['cpp_src'],
2931
depends=shellinford_headers,
30-
language = "c++"
32+
language="c++"
3133
),
3234
],
3335

@@ -48,5 +50,5 @@
4850
'Topic :: Scientific/Engineering :: Information Analysis',
4951
'Topic :: Text Processing :: Linguistic',
5052
'Topic :: Text Processing :: Indexing'
51-
],
53+
],
5254
)

shellinford/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from . import shellinford
22

3-
VERSION = (0, 3, 1)
4-
__version__ = '0.3.1'
3+
VERSION = (0, 3, 2)
4+
__version__ = '0.3.2'
55
__all__ = ['FMIndex', 'bit_vector', 'bwt']
66

77
FMIndex = shellinford.FMIndex

0 commit comments

Comments
 (0)