-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,15 +10,17 @@ | |
from os import path | ||
from setuptools import setup | ||
|
||
from somajo import __version__ | ||
version = {} | ||
with open("somajo/version.py") as fh: | ||
exec(fh.read(), version) | ||
|
||
here = path.abspath(path.dirname(__file__)) | ||
with open(path.join(here, 'README.rst')) as fh: | ||
long_description = fh.read() | ||
|
||
setup( | ||
name='SoMaJo', | ||
version=__version__, | ||
version=version["__version__"], | ||
author='Thomas Proisl, Peter Uhrig', | ||
author_email='[email protected]', | ||
packages=[ | ||
|
@@ -42,7 +44,7 @@ | |
"tokens_with_plus_or_ampersand.txt"] | ||
}, | ||
url="https://github.com/tsproisl/SoMaJo", | ||
download_url='https://github.com/tsproisl/SoMaJo/archive/v%s.tar.gz' % __version__, | ||
download_url='https://github.com/tsproisl/SoMaJo/archive/v%s.tar.gz' % version["__version__"], | ||
license='GNU General Public License v3 or later (GPLv3+)', | ||
description='A tokenizer and sentence splitter for German and English web and social media texts.', | ||
long_description=long_description, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from somajo import tokenizer | ||
from somajo import sentence_splitter | ||
|
||
__version__ = "1.10.1" | ||
from .version import __version__ | ||
|
||
Tokenizer = tokenizer.Tokenizer | ||
SentenceSplitter = sentence_splitter.SentenceSplitter |