Skip to content

Commit

Permalink
setup.py: remove mocking
Browse files Browse the repository at this point in the history
replace: install_requires -> setup_requires allows using streamparser
  • Loading branch information
singh-lokendra committed Jul 24, 2019
1 parent a034090 commit a3ac8da
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions setup.py
Expand Up @@ -3,7 +3,6 @@
from setuptools import find_packages, setup # noqa: I202
from setuptools.command.install import install
import sys
from unittest.mock import Mock


class PostInstallCommand(install):
Expand All @@ -13,10 +12,8 @@ def __init__(self, *args, **kwargs):

@staticmethod
def _post_install():
# mock apertium-streamparser for importing apertium
sys.modules['streamparser'] = Mock()

import apertium

apertium.installer.install_apertium()
apertium.installer.install_module('eng')
apertium.installer.install_module('en-es')
Expand All @@ -32,7 +29,7 @@ def _post_install():
long_description_content_type='text/markdown; charset=UTF-8',
url='https://github.com/apertium/apertium-python',
python_requires='>=3.4',
install_requires=[
setup_requires=[
'apertium-streamparser==5.0.2',
],
test_suite='tests',
Expand Down

0 comments on commit a3ac8da

Please sign in to comment.