Skip to content

Commit

Permalink
switch to setuptools; unbundle docopt
Browse files Browse the repository at this point in the history
  • Loading branch information
kmike committed Jun 5, 2014
1 parent 9bb6d24 commit 17d2c84
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 612 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ matrix:
env: NO_COMPILER="true"

install:
- pip install -r requirements.txt
- pip install futures
- pip install coverage pytest-cov coveralls
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy' && ! $NO_COMPILER ]]; then pip install dawg; fi
Expand Down
10 changes: 3 additions & 7 deletions bench.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ deps =

[testenv]
deps=
dawg > 0.7
dawg >= 0.7.3
{[base]deps}

;setenv =
Expand All @@ -23,19 +23,18 @@ commands=
[testenv:py26]
deps=
futures
dawg > 0.7
dawg >= 0.7.3
{[base]deps}

[testenv:py27]
deps=
futures
dawg > 0.7
dawg >= 0.7.3
{[base]deps}

[testenv:pypy]
deps=
futures
dawg-python >= 0.7
{[base]deps}

commands=
Expand All @@ -46,18 +45,15 @@ commands=
basepython=python2.7
deps=
futures
dawg-python >= 0.7
{[base]deps}


[testenv:py27_no_compiler]
basepython = python2.7
deps=
dawg-python >= 0.7
{[base]deps}

[testenv:py33_no_compiler]
basepython = python3.3
deps=
dawg-python >= 0.7
{[base]deps}
17 changes: 9 additions & 8 deletions docs/user/guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@
Для установки воспользуйтесь pip::

pip install pymorphy2
pip install pymorphy2-dicts
pip install 'DAWG-Python >= 0.7'

`pymorphy2-dicts <http://pypi.python.org/pypi/pymorphy2-dicts>`_ - это
пакет со словарями OpenCorpora_, скомпилированными в формат pymorphy2.

Если вы используете CPython (не PyPy), и в системе есть компилятор и т.д.,
то вместо `DAWG-Python`_ можно установить библиотеку DAWG_, которая
позволит pymorphy2 работать быстрее::
то можно установить pymorphy2 с дополнительными зависимостями (библиотекой
DAWG_ вместо `DAWG-Python`_), что позволит pymorphy2 работать быстрее::

pip install pymorphy2[fast]

Словари обновляются время от времени; чтоб обновить словари, используйте

pip install -U pymorphy2-dicts

pip install 'DAWG >= 0.7'
Для установки требуются более-менее современные версии pip и setuptools.

.. _DAWG: https://github.com/kmike/DAWG
.. _DAWG-Python: https://github.com/kmike/DAWG-Python
Expand Down
2 changes: 1 addition & 1 deletion pymorphy2/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import pymorphy2
from pymorphy2 import opencorpora_dict, test_suite_generator
from pymorphy2.vendor.docopt import docopt
from pymorphy2.utils import download_bz2, get_mem_usage, json_read, json_write

logger = logging.getLogger('pymorphy2')
Expand Down Expand Up @@ -177,6 +176,7 @@ def main():
"""
Pymorphy CLI interface dispatcher
"""
from docopt import docopt
args = docopt(DOC, version=pymorphy2.__version__)

if args['--verbose']:
Expand Down
2 changes: 0 additions & 2 deletions pymorphy2/vendor/__init__.py

This file was deleted.

0 comments on commit 17d2c84

Please sign in to comment.